/* L2DV forum theme override - match main site */
:root {
	--b-bg: #0b0f14;
	--b-panel: rgba(13,16,22,.84);
	--b-panel-solid: #0d1016;
	--b-border: rgba(255,210,140,.16);
	--b-gold: #ffd78a;
	--b-gold-dark: #c9922e;
	--b-text: #e8dcc2;
	--b-text-muted: #9f9278;
	--b-link: #ffd78a;
	--b-link-hover: #fff3c4;
	--b-input-bg: #0f1218;
	--b-radius: 8px;
}

html {
	background: var(--b-bg) !important;
}

body {
	background-color: #0b0f14 !important;
	background-image: url('https://l2dv.ru/templates/main/themes/main/images/hero/bg.jpg') !important;
	background-position: center top !important;
	background-repeat: no-repeat !important;
	background-attachment: fixed !important;
	background-size: cover !important;
	color: var(--b-text) !important;
	font-family: Intro, Arial, sans-serif !important;
	font-size: 14px;
	line-height: 1.5;
	min-height: 100vh;
}

a, a:visited {
	color: var(--b-link);
	text-decoration: none;
}
a:hover {
	color: var(--b-link-hover);
	text-decoration: underline;
}

#top_section, #header, #wrapper, #footer {
	width: 96%;
	max-width: 1680px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

/* Top section */
#top_section {
	background: linear-gradient(180deg, rgba(8,10,14,.92), rgba(8,10,14,.55)) !important;
	border: 1px solid var(--b-border);
	border-top: 0;
	border-radius: 0 0 var(--b-radius) var(--b-radius);
	box-shadow: 0 10px 30px rgba(0,0,0,.35);
	padding: 0;
	margin-bottom: 0;
}
#top_section .inner_wrap {
	background: transparent !important;
	padding: 10px 16px;
}
#top_info > li > a, #top_info > li > a.open, #top_info > li > a:hover {
	color: var(--b-text) !important;
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,210,140,.12);
	border-radius: 4px;
}
#top_info > li > a:hover {
	background: rgba(255,215,138,.1);
	color: #fff !important;
}
#top_section .user time, #top_section .user { color: var(--b-text-muted); }

/* Header / logo */
#header {
	background: transparent !important;
	padding: 28px 12px 10px;
	border: 0;
	min-height: 0;
}
h1.forumtitle {
	font-family: "Trajan Pro 3", Trajan, "Times New Roman", serif !important;
	font-size: 42px !important;
	font-weight: 700;
	letter-spacing: .04em;
	margin: 0;
	padding: 0;
	text-shadow: 0 3px 20px rgba(0,0,0,.7);
}
h1.forumtitle a {
	background: linear-gradient(180deg,#fff7d6 0%,#ffd78a 45%,#c9922e 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent !important;
	text-decoration: none !important;
}
h1.forumtitle a:hover { filter: brightness(1.08); }
#siteslogan, #smflogo { display: none !important; }

/* Main wrapper */
#wrapper {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 0 20px;
}
#upper_section {
	background: transparent !important;
	border: 0 !important;
	padding: 0;
}
#inner_section {
	background: transparent !important;
	padding: 0;
}
#inner_wrap { background: transparent !important; border: 0 !important; }

#content_section {
	background: var(--b-panel) !important;
	border: 1px solid var(--b-border) !important;
	border-radius: var(--b-radius);
	box-shadow: 0 10px 30px rgba(0,0,0,.35);
	padding: 18px 22px;
	margin-bottom: 20px;
}
#main_content_section { padding: 0; }

/* Navigation / menu */
#main_menu { background: transparent !important; padding: 0; margin: 10px 0 16px; }
.dropmenu, .dropmenu ul { background: transparent; }
.dropmenu > li > a, #main_menu .dropmenu > li > a {
	color: #f1e4c6 !important;
	background: rgba(255,255,255,.03) !important;
	border: 1px solid rgba(255,210,140,.12) !important;
	border-radius: 4px;
	margin: 2px 4px 2px 0;
	padding: 8px 14px !important;
	font-family: Intro, Arial, sans-serif;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.dropmenu > li > a:hover, .dropmenu > li:hover > a, .dropmenu > li > a.active {
	background: rgba(255,215,138,.12) !important;
	color: #fff !important;
	border-color: rgba(255,210,140,.28) !important;
}
.dropmenu li ul, .top_menu, .popup_window {
	background: #141922 !important;
	border: 1px solid var(--b-border) !important;
	border-radius: 6px;
	box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.dropmenu li li a, .dropmenu li li a:hover, .popup_window li a {
	color: var(--b-text) !important;
	background: transparent !important;
	border: 0 !important;
}
.dropmenu li li a:hover, .dropmenu li li:hover > a, .popup_window li a:hover {
	background: rgba(255,215,138,.1) !important;
	color: #fff !important;
}
.dropmenu li li { border-bottom: 1px solid rgba(255,255,255,.05); }
.dropmenu li li:last-child { border-bottom: 0; }

/* Generic panels / categories */
.cat_bar, .title_bar {
	background: linear-gradient(180deg, rgba(201,146,46,.28), rgba(80,52,12,.35)) !important;
	border: 1px solid rgba(255,210,140,.22) !important;
	border-radius: 6px 6px 0 0;
	color: #fff !important;
	padding: 0;
	box-shadow: none;
}
.cat_bar h3, .cat_bar h3 a, .title_bar h3, .title_bar h4, .title_bar h3 a {
	color: #fff !important;
	font-family: "Trajan Pro 3", Trajan, "Times New Roman", serif;
	font-weight: 600;
	letter-spacing: .03em;
}
.cat_bar .desc, .cat_bar .desc a { color: var(--b-text-muted) !important; }

.roundframe, .windowbg, .windowbg:nth-of-type(even), .windowbg:nth-of-type(odd),
.information, .generic_list_wrapper, .approvebg, .approvebg2, .approvetopicbg, .approvetopicbg2 {
	background: rgba(20,24,32,.7) !important;
	border: 1px solid rgba(255,210,140,.1) !important;
	border-radius: 6px;
	color: var(--b-text) !important;
	box-shadow: none !important;
}
.windowbg.locked { background: rgba(40,24,24,.55) !important; }
.windowbg.sticky { background: rgba(35,32,20,.65) !important; }

/* Buttons */
.button, a.button, input[type="submit"], input[type="button"], button {
	background: linear-gradient(180deg,#cfa558,#8b6326) !important;
	color: #1b1206 !important;
	border: 1px solid rgba(255,230,170,.25) !important;
	border-radius: 4px !important;
	font-family: Intro, Arial, sans-serif !important;
	font-weight: 700;
	box-shadow: none !important;
	text-shadow: none !important;
	cursor: pointer;
}
.button:hover, a.button:hover, input[type="submit"]:hover, input[type="button"]:hover, button:hover {
	background: linear-gradient(180deg,#ddb86a,#9a7030) !important;
	color: #1b1206 !important;
	text-decoration: none;
}
.button.active { background: linear-gradient(180deg,#e0c07a,#a8803a) !important; }
a.button_strip_markread, a.button_strip_notify, .button_strip_mark_unread, .button_strip_print { color: #1b1206 !important; }

/* Inputs */
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], input[type="url"], select, textarea {
	background: var(--b-input-bg) !important;
	color: #fff !important;
	border: 1px solid rgba(255,210,140,.18) !important;
	border-radius: 4px !important;
	box-shadow: none !important;
	font-family: Intro, Arial, sans-serif;
}
input:focus, textarea:focus, select:focus {
	border-color: rgba(255,215,138,.45) !important;
	outline: none !important;
	background: #131821 !important;
}
input::placeholder, textarea::placeholder { color: #7f7663; }
select option { background: #141922; color: #fff; }

/* Linktree */
.navigate_section { background: transparent !important; border: 0 !important; padding: 8px 0; margin-bottom: 10px; }
.navigate_section ul { background: rgba(20,24,32,.45) !important; border: 1px solid rgba(255,210,140,.1); border-radius: 6px; padding: 8px 12px; }
.navigate_section ul li, .navigate_section ul li a { color: var(--b-text-muted) !important; }
.navigate_section ul li a:hover { color: var(--b-gold) !important; }
.navigate_section ul li:last-child a { color: var(--b-gold) !important; }

/* Tables */
.table_grid tr td, .table_grid tr th { border-color: rgba(255,255,255,.06) !important; }
.table_grid thead tr th, .table_grid .title_bar th {
	background: rgba(201,146,46,.15) !important;
	color: #fff !important;
}
table.table_grid { border-color: rgba(255,210,140,.12) !important; }

/* Posts */
.post_wrapper { background: transparent !important; }
.post, .inner { color: var(--b-text); }
.postarea, .post { background: transparent !important; }
.poster { background: rgba(255,255,255,.02); border-radius: 6px; }
.poster h4, .poster h4 a, .poster li.poster_online a { color: var(--b-gold) !important; }
.postinfo a, .postinfo .smalltext { color: var(--b-text-muted) !important; }
.signature { border-top: 1px solid rgba(255,210,140,.12) !important; color: var(--b-text-muted); }
.bbc_standard_quote, blockquote, .quoteheader {
	background: rgba(255,215,138,.05) !important;
	border-color: rgba(255,210,140,.2) !important;
	color: var(--b-text) !important;
}
.quoteheader { color: var(--b-gold) !important; }
.bbc_code, code.bbc_code { background: rgba(0,0,0,.25) !important; border-color: rgba(255,210,140,.15) !important; color: #dcd0b8 !important; }

/* Footer */
#footer {
	background: rgba(8,10,14,.8) !important;
	border: 1px solid var(--b-border) !important;
	border-radius: var(--b-radius);
	color: var(--b-text-muted) !important;
	margin-bottom: 24px;
	box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
#footer a { color: var(--b-gold) !important; }
#footer .inner_wrap { background: transparent !important; padding: 16px 20px; }
#footer li, #footer p { color: var(--b-text-muted) !important; }

/* Pagination */
.pagelinks .navPages { color: var(--b-text) !important; background: rgba(255,255,255,.04); border: 1px solid rgba(255,210,140,.12); border-radius: 4px; padding: 2px 8px; }
.pagelinks .navPages:hover, .pagelinks .current_page { background: rgba(255,215,138,.18) !important; color: #fff !important; border-color: rgba(255,210,140,.3); }

/* Misc */
#top_section_notice { color: var(--b-text-muted); }
.noticebox, .infobox { background: rgba(255,215,138,.08) !important; border: 1px solid rgba(255,210,140,.2) !important; color: var(--b-text) !important; }
.errorbox { background: rgba(180,50,50,.15) !important; border: 1px solid rgba(255,100,100,.25) !important; color: #ffb4b4 !important; }
.alert { color: #ffcf7a; }
.new_posts { color: #1b1206; background: var(--b-gold); }
div.cat_bar { margin-bottom: 0; }
.sub_bar { background: rgba(255,215,138,.08) !important; border-color: rgba(255,210,140,.12) !important; color: var(--b-text) !important; }
.board_stats { color: var(--b-text-muted) !important; }
.info .subject a, .info a.subject { color: #fff !important; font-weight: 600; }
.board_description, .moderators, .children, .lastpost { color: var(--b-text-muted) !important; }
#ajax_in_progress { background: var(--b-bg) !important; color: var(--b-gold) !important; border-bottom: 1px solid var(--b-border); }

@media (max-width: 720px) {
	#top_section, #header, #wrapper, #footer { width: 100%; border-radius: 0; }
	#content_section { padding: 14px; border-radius: 0; }
	h1.forumtitle { font-size: 32px !important; }
}

/* Board index / category rows */
.main_container { background: transparent !important; border: 0 !important; }
.up_contain {
	background: rgba(20,24,32,.72) !important;
	border: 1px solid rgba(255,210,140,.1) !important;
	border-radius: 6px;
	margin: 0 0 6px 0 !important;
	box-shadow: none !important;
	color: var(--b-text) !important;
}
.up_contain:hover { background: rgba(30,36,48,.78) !important; }
.board_icon, .info, .board_stats, .lastpost { background: transparent !important; color: var(--b-text) !important; }
.info .subject a, .info a.subject, .board_name a { color: #fff !important; }
.board_description, .board_stats p, .lastpost p, .moderators, .moderators a { color: var(--b-text-muted) !important; }
.children { background: rgba(255,255,255,.02) !important; border-top: 1px solid rgba(255,210,140,.1) !important; color: var(--b-text-muted) !important; }
.children a { color: var(--b-gold) !important; }
.boardindex_table { background: transparent !important; }
#boardindex_table .up_contain, .boardindex_table .up_contain { background: rgba(20,24,32,.72) !important; }

/* Message index / topic rows */
#messageindex .windowbg, #unread .windowbg, #unreadreplies .windowbg { background: rgba(20,24,32,.72) !important; }
#topic_container .windowbg, .topic_container .windowbg { background: rgba(20,24,32,.72) !important; }

/* Generic dark fallback for white blocks */
div.windowbg, div.roundframe, div.information, div.generic_list_wrapper { background: rgba(20,24,32,.72) !important; color: var(--b-text) !important; }
#ic_recentposts td, #ic_recentposts th { border-color: rgba(255,255,255,.06) !important; color: var(--b-text-muted) !important; }
#ic_recentposts .recentpost strong, #ic_recentposts .recenttime strong { color: var(--b-text) !important; }
/* Tooltips and popups */
.tooltip {
	background: #141922 !important;
	color: var(--b-text) !important;
	border: 1px solid var(--b-border) !important;
	box-shadow: 0 8px 24px rgba(0,0,0,.45) !important;
}
.tooltip a { color: var(--b-gold) !important; }
.popup_window { background: #141922 !important; color: var(--b-text) !important; border-color: var(--b-border) !important; }
.popup_content { background: transparent !important; color: var(--b-text) !important; border-color: rgba(255,210,140,.12) !important; box-shadow: none !important; }
.popup_heading { color: var(--b-gold) !important; }
.popup_heading a { color: var(--b-text-muted) !important; }
#popup_mask { background: rgba(0,0,0,.55) !important; }
/* Dropmenu submenu hover fix */
.dropmenu li li, .dropmenu li li:hover { background: transparent !important; }
.dropmenu li li a, .dropmenu li li a:link, .dropmenu li li a:visited {
	background: transparent !important;
	color: var(--b-text) !important;
	border: 1px solid transparent !important;
}
.dropmenu li li a:hover, .dropmenu li li:hover > a, .dropmenu li li a:focus,
#main_menu .dropmenu li li a:hover, #main_menu .dropmenu li li:hover > a,
.top_menu li a:hover, .admin_menu li a:hover {
	background: rgba(255,215,138,.12) !important;
	color: #fff !important;
	border-color: rgba(255,210,140,.2) !important;
	text-decoration: none !important;
}
.dropmenu li ul, .dropmenu li li ul { background: #141922 !important; }
/* SCEditor toolbar */
.sceditor-container {
	background: #141922 !important;
	border: 1px solid rgba(255,210,140,.18) !important;
	border-radius: 6px !important;
}
.sceditor-toolbar {
	background: linear-gradient(180deg, rgba(40,46,58,.95), rgba(20,25,34,.95)) !important;
	border-bottom: 1px solid rgba(255,210,140,.14) !important;
}
.sceditor-group {
	background: rgba(255,255,255,.04) !important;
	border: 1px solid rgba(255,210,140,.12) !important;
	border-radius: 4px !important;
}
.sceditor-button {
	color: var(--b-text) !important;
}
.sceditor-button:hover, .sceditor-button.active, .sceditor-button.hover {
	background: rgba(255,215,138,.14) !important;
	border-color: rgba(255,210,140,.2) !important;
}
.sceditor-button svg { fill: var(--b-text) !important; }
.sceditor-button.disabled svg { fill: rgba(232,220,194,.35) !important; }
div.sceditor-dropdown {
	background: #141922 !important;
	color: var(--b-text) !important;
	border: 1px solid var(--b-border) !important;
}
div.sceditor-dropdown .button { color: #1b1206 !important; }
/* Admin/generic menu */
.generic_menu .dropmenu > li > a,
#genericmenu .dropmenu > li > a,
#adm_submenus .dropmenu > li > a,
.generic_menu .dropmenu > li > a:link,
.generic_menu .dropmenu > li > a:visited {
	background: rgba(255,255,255,.04) !important;
	color: #f1e4c6 !important;
	border: 1px solid rgba(255,210,140,.14) !important;
	border-radius: 4px !important;
	text-shadow: none !important;
}
.generic_menu .dropmenu > li > a:hover,
.generic_menu .dropmenu > li:hover > a,
.generic_menu .dropmenu > li > a.active,
#genericmenu .dropmenu > li > a:hover,
#genericmenu .dropmenu > li > a.active,
#adm_submenus .dropmenu > li > a:hover,
#adm_submenus .dropmenu > li > a.active {
	background: rgba(255,215,138,.14) !important;
	color: #fff !important;
	border-color: rgba(255,210,140,.28) !important;
}
.generic_menu { background: transparent !important; }
/* Admin home groups */
fieldset.admin_group { background: rgba(20,24,32,.72) !important; border-color: rgba(255,210,140,.14) !important; color: var(--b-text) !important; }
fieldset.admin_group legend {
	background: rgba(40,46,58,.95) !important;
	border: 1px solid rgba(255,210,140,.22) !important;
	color: #fff !important;
	border-radius: 4px !important;
	padding: 2px 10px !important;
}
fieldset.admin_group a { color: var(--b-text) !important; }
fieldset.admin_group a:hover { color: var(--b-gold) !important; }
#admin_main_section .windowbg, #admin_main_section .windowbg.nopadding { background: rgba(20,24,32,.72) !important; }
#footerfix, #top_section .inner_wrap, #header, #inner_section, #upper_section { background: transparent !important; }