@charset "utf-8";
/*---------------------------------------------------
Dark Tibia Fun — nowoczesny mroczno-czerwony motyw
Bazowany na strukturze oryginalnego szablonu (Gesior AAC)
Zachowuje wszystkie oryginalne ID/klasy, więc PHP nie wymaga zmian
(z wyjątkiem nagłówków modułów, które teraz to ikona+tekst, nie obrazek).
---------------------------------------------------*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
	--dtf-bg: #0a0505;
	--dtf-bg-alt: #120808;
	--dtf-panel: #170a0a;
	--dtf-panel-light: #1e0d0d;
	--dtf-border: #3a1414;
	--dtf-border-light: #521c1c;
	--dtf-red: #c1272d;
	--dtf-red-bright: #e63946;
	--dtf-red-glow: #ff4d5a;
	--dtf-gold: #d4a24c;
	--dtf-text: #cbb9b9;
	--dtf-text-dim: #8a7373;
	--dtf-text-bright: #f5e9e9;
	--dtf-online-green: #3ddc71;
	--dtf-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);

	/* akcenty per kategoria modułów (jak we wzorze - kolorowe boxy) */
	--dtf-accent-news: #e63946;
	--dtf-accent-account: #d4a24c;
	--dtf-accent-community: #4cafa0;
	--dtf-accent-library: #6a8fd4;
	--dtf-accent-donate: #b25ce0;
}

body {
	font-family: 'Inter', Verdana, Arial, sans-serif;
	font-size: 13px;
	color: var(--dtf-text);
	margin: 0px;
	padding: 0px;
	background-color: var(--dtf-bg);
	background-image:
		radial-gradient(ellipse at top, rgba(193, 39, 45, 0.12) 0%, rgba(10, 5, 5, 0) 55%),
		url(../images/bg.jpg);
	background-position: center top;
	background-attachment: fixed;
	line-height: 1.5;
}

#wrapper {
	width: 100%;
	min-width: 1024px;
	background-position: center top;
	background-repeat: no-repeat;
	margin-bottom: 0px;
	background-image: linear-gradient(180deg, rgba(20, 8, 8, 0.9) 0%, rgba(10, 5, 5, 0.4) 320px, rgba(10, 5, 5, 0) 600px);
}

#bg_up {
	margin: 0 auto;
	width: 100%;
	background-position: center top;
	background-color: transparent;
	background-repeat: no-repeat;
}

/* -------- HERO / MASTHEAD -------- */
#masthead_container {
	height: 360px;
	width: 100%;
	background-color: transparent;
	background-image:
		radial-gradient(ellipse at center, rgba(193,39,45,0.10) 0%, rgba(10,5,5,0) 60%),
		linear-gradient(180deg, #140909 0%, #0a0505 100%);
	margin: auto;
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--dtf-border-light);
	box-shadow: 0 10px 40px rgba(0,0,0,0.65);
}
#masthead {
	height: 320px;
	width: auto;
	aspect-ratio: 4 / 3;
	max-width: 92%;
	margin: 20px auto 0 auto;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	background-color: #0d0606;
	background-image: url(../images/darktibia.png);
	position: relative;
	border-radius: 14px;
	border: 2px solid var(--dtf-border-light);
	box-shadow:
		0 0 0 1px rgba(212,162,76,0.25),
		0 14px 40px rgba(0,0,0,0.6),
		0 0 60px rgba(193,39,45,0.22);
	overflow: hidden;
	z-index: 2;
}
#masthead::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10,5,5,0) 0%, rgba(10,5,5,0) 55%, rgba(10,5,5,0.35) 85%, rgba(10,5,5,0.7) 100%);
	pointer-events: none;
}

/* -------- unoszące się iskry/żar wokół hero (czysty CSS, bez JS) -------- */
#masthead_container::before,
#masthead_container::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 4;
}
#masthead_container::before {
	background-image:
		radial-gradient(2px 2px at 6% 92%, var(--dtf-red-glow), transparent 60%),
		radial-gradient(2px 2px at 18% 88%, var(--dtf-gold), transparent 60%),
		radial-gradient(1.5px 1.5px at 32% 95%, var(--dtf-red-glow), transparent 60%),
		radial-gradient(2px 2px at 47% 90%, var(--dtf-gold), transparent 60%),
		radial-gradient(1.5px 1.5px at 61% 94%, var(--dtf-red-glow), transparent 60%),
		radial-gradient(2px 2px at 74% 89%, var(--dtf-gold), transparent 60%),
		radial-gradient(1.5px 1.5px at 88% 93%, var(--dtf-red-glow), transparent 60%),
		radial-gradient(2px 2px at 95% 87%, var(--dtf-gold), transparent 60%);
	opacity: 0.85;
	animation: dtf-embers-rise-a 7s linear infinite;
}
#masthead_container::after {
	background-image:
		radial-gradient(1.5px 1.5px at 12% 96%, var(--dtf-gold), transparent 60%),
		radial-gradient(2px 2px at 27% 91%, var(--dtf-red-glow), transparent 60%),
		radial-gradient(1.5px 1.5px at 40% 97%, var(--dtf-gold), transparent 60%),
		radial-gradient(2px 2px at 55% 92%, var(--dtf-red-glow), transparent 60%),
		radial-gradient(1.5px 1.5px at 69% 96%, var(--dtf-gold), transparent 60%),
		radial-gradient(2px 2px at 82% 90%, var(--dtf-red-glow), transparent 60%),
		radial-gradient(1.5px 1.5px at 91% 95%, var(--dtf-gold), transparent 60%);
	opacity: 0.6;
	animation: dtf-embers-rise-b 10s linear infinite;
	animation-delay: -3s;
}

@keyframes dtf-embers-rise-a {
	0%   { transform: translateY(0) translateX(0); opacity: 0; }
	8%   { opacity: 0.85; }
	80%  { opacity: 0.5; }
	100% { transform: translateY(-360px) translateX(12px); opacity: 0; }
}
@keyframes dtf-embers-rise-b {
	0%   { transform: translateY(0) translateX(0); opacity: 0; }
	10%  { opacity: 0.6; }
	85%  { opacity: 0.35; }
	100% { transform: translateY(-380px) translateX(-16px); opacity: 0; }
}

#masthead_online {
	width: 170px;
	min-height: 68px;
	position: absolute;
	top: 20px;
	right: 20px;
	left: auto;
	margin: 0;
	background: linear-gradient(160deg, rgba(23,10,10,0.55), rgba(15,7,7,0.55));
	backdrop-filter: blur(3px);
	border: 1px solid var(--dtf-border-light);
	border-radius: 10px;
	box-shadow: var(--dtf-shadow), inset 0 0 20px rgba(193,39,45,0.06);
	z-index: 5;
}
#masthead_online .flash_content,
#masthead_online .dragonmain {
	display: none;
}
#masthead_online .text {
	height: auto;
	width: 100%;
	margin: 0;
	top: 0;
	right: 0;
	color: var(--dtf-text-bright);
	line-height: 1.4;
	text-align: center;
	position: relative;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	padding: 11px 8px;
}
#PlayersOnline {
	cursor: pointer;
}
#players {
	font-family: 'Cinzel', serif;
	font-size: 22px;
	font-weight: 700;
	color: var(--dtf-online-green);
	text-shadow: 0 0 12px rgba(61,220,113,0.55);
	letter-spacing: 1px;
}

/* -------- tekst na hero (tytuł + tagline) -------- */
.dtf-hero-text {
	position: absolute;
	left: 0;
	right: 0;
	top: 18px;
	text-align: center;
	z-index: 3;
	pointer-events: none;
}
.dtf-hero-title {
	display: block;
	font-family: 'Cinzel', serif;
	font-weight: 700;
	font-size: 26px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--dtf-red-bright);
	animation: dtf-pulse-glow-red 2.6s ease-in-out infinite;
}
.dtf-hero-tagline {
	display: block;
	margin-top: 6px;
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: var(--dtf-gold);
	animation: dtf-pulse-glow-gold 2.6s ease-in-out infinite;
}
@keyframes dtf-pulse-glow-red {
	0%, 100% { text-shadow: 0 0 10px rgba(230,57,70,0.35), 0 2px 6px rgba(0,0,0,0.85); }
	50% { text-shadow: 0 0 24px rgba(230,57,70,0.85), 0 2px 6px rgba(0,0,0,0.85); }
}
@keyframes dtf-pulse-glow-gold {
	0%, 100% { text-shadow: 0 0 6px rgba(212,162,76,0.3), 0 1px 4px rgba(0,0,0,0.85); opacity: 0.85; }
	50% { text-shadow: 0 0 16px rgba(212,162,76,0.75), 0 1px 4px rgba(0,0,0,0.85); opacity: 1; }
}

/* -------- licznik na hero (tylko kafelki) -------- */
.dtf-hero-countdown {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	pointer-events: none;
}
.dtf-hc-start-label {
	font-family: 'Cinzel', serif;
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--dtf-gold);
	text-shadow: 0 1px 4px rgba(0,0,0,0.85);
}
.dtf-hc-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.dtf-hc-date {
	font-family: 'Inter', sans-serif;
	font-size: 10px;
	letter-spacing: 1.5px;
	color: rgba(245,233,222,0.8);
	text-shadow: 0 1px 4px rgba(0,0,0,0.85);
}
.dtf-hc-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 50px;
	padding: 7px 6px 6px 6px;
	border-radius: 8px;
	background: rgba(10,5,3,0.55);
	backdrop-filter: blur(2px);
	border: 1px solid rgba(212,162,76,0.4);
	box-shadow: 0 4px 14px rgba(0,0,0,0.5), inset 0 0 10px rgba(212,162,76,0.08);
}
.dtf-hc-unit-sec {
	border-color: rgba(230,57,70,0.5);
	box-shadow: 0 4px 14px rgba(0,0,0,0.5), inset 0 0 10px rgba(230,57,70,0.14);
}
.dtf-hc-num {
	display: block;
	font-family: 'Cinzel', serif;
	font-weight: 700;
	font-size: 19px;
	line-height: 1;
	color: #f5e3ae;
	text-shadow: 0 0 10px rgba(212,162,76,0.6), 0 1px 3px rgba(0,0,0,0.8);
}
.dtf-hc-unit-sec .dtf-hc-num {
	color: var(--dtf-red-glow);
	text-shadow: 0 0 10px rgba(255,77,90,0.65), 0 1px 3px rgba(0,0,0,0.8);
}
.dtf-hc-label {
	display: block;
	font-family: 'Inter', sans-serif;
	font-size: 7.5px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: rgba(245,233,222,0.75);
	margin-top: 3px;
}
.dtf-hc-sep {
	font-family: 'Cinzel', serif;
	font-size: 16px;
	font-weight: 700;
	color: rgba(212,162,76,0.55);
	text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.dtf-hc-live {
	font-family: 'Cinzel', serif;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--dtf-online-green);
	text-shadow: 0 0 14px rgba(61,220,113,0.6), 0 2px 6px rgba(0,0,0,0.85);
	padding: 8px 20px;
	border-radius: 8px;
	background: rgba(10,5,3,0.55);
	border: 1px solid rgba(61,220,113,0.4);
	animation: dtf-pulse-glow-green 2s ease-in-out infinite;
}
@keyframes dtf-pulse-glow-green {
	0%, 100% { text-shadow: 0 0 8px rgba(61,220,113,0.4), 0 2px 6px rgba(0,0,0,0.85); }
	50% { text-shadow: 0 0 20px rgba(61,220,113,0.85), 0 2px 6px rgba(0,0,0,0.85); }
}

/* -------- galeria obrazków w newsach -------- */
.dtf-news-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin: 16px 0;
}
.dtf-news-gallery-item {
	position: relative;
	border-radius: 10px;
	border: 1px solid rgba(212,162,76,0.4);
	background: linear-gradient(160deg, rgba(23,10,10,0.9), rgba(14,7,7,0.94));
	padding: 12px;
	text-align: center;
	box-shadow: 0 4px 14px rgba(0,0,0,0.5), inset 0 0 14px rgba(212,162,76,0.06);
	animation: dtf-news-pulse 3s ease-in-out infinite;
	transition: transform 0.2s ease, border-color 0.2s ease;
}
.dtf-news-gallery-item:hover {
	transform: scale(1.045);
	border-color: rgba(230,57,70,0.6);
}
.dtf-news-gallery-item img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	display: block;
	margin: 0 auto;
}
.dtf-news-gallery-item span {
	display: block;
	margin-top: 10px;
	font-family: 'Cinzel', serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	color: var(--dtf-gold);
}
@keyframes dtf-news-pulse {
	0%, 100% { box-shadow: 0 4px 14px rgba(0,0,0,0.5), inset 0 0 14px rgba(212,162,76,0.06), 0 0 0 rgba(212,162,76,0); }
	50% { box-shadow: 0 4px 18px rgba(0,0,0,0.55), inset 0 0 18px rgba(212,162,76,0.12), 0 0 20px rgba(212,162,76,0.3); }
}
@media (max-width: 700px) {
	.dtf-news-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* -------- duże screeny w newsach -------- */
.dtf-news-screens {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin: 20px 0;
}
.dtf-news-screens .dtf-news-gallery-item {
	padding: 10px;
}
.dtf-news-screens .dtf-news-gallery-item img {
	display: block;
	width: 78%;
	max-width: 480px;
	margin: 0 auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.dtf-news-screens .dtf-news-gallery-item span {
	font-size: 15px;
	margin-top: 12px;
}

/* -------- mniejsza galeria itemów (o polowe) -------- */
.dtf-news-gallery-sm {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 10px;
	margin: 16px 0;
}
.dtf-news-gallery-sm .dtf-news-gallery-item {
	padding: 6px;
}
.dtf-news-gallery-sm .dtf-news-gallery-item span {
	font-size: 10px;
	margin-top: 5px;
}
@media (max-width: 700px) {
	.dtf-news-gallery-sm { grid-template-columns: repeat(3, 1fr); }
}

/* -------- CONTAINER -------- */
#container {
	text-align: left;
	width: 1100px;
	max-width: 96%;
	padding: 0;
	margin: -50px auto 0 auto;
	position: relative;
	z-index: 10;
	background: none;
}

#navigation {
	background: linear-gradient(180deg, rgba(23,10,10,0.97), rgba(15,7,7,0.97));
	border: 1px solid var(--dtf-border-light);
	border-radius: 10px;
	overflow: hidden;
	height: 46px;
	margin: 0 auto 18px auto;
	text-align: center;
	padding: 0;
	box-shadow: var(--dtf-shadow);
	position: relative;
}
#navigation a.dtf-discord-icon {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 19px;
	color: #7289da;
	transition: color 0.2s ease, transform 0.2s ease;
	z-index: 5;
	animation: dtf-discord-pulse 2.4s ease-in-out infinite;
}
.dtf-discord-label {
	font-family: 'Cinzel', serif;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
}
#navigation a.dtf-discord-icon:hover {
	color: #99aaf5;
	transform: translateY(-50%) scale(1.1);
	text-decoration: none;
}
@keyframes dtf-discord-pulse {
	0%, 100% { text-shadow: 0 0 4px rgba(114,137,218,0.3); }
	50% { text-shadow: 0 0 14px rgba(114,137,218,0.85); }
}

#page_content {
	padding: 0px;
	margin: 0px;
	width: 100%;
	padding-bottom: 10px;
	background-color: transparent;
}

#sidebar_left {
	position: relative;
	float: left;
	width: 210px;
	background-color: transparent;
	padding: 0;
	margin: 0 0 0 0;
}
#sidebar_right {
	position: relative;
	float: right;
	width: 210px;
	background-color: transparent;
	padding: 0;
	margin: 0 0 0 0;
}

#content_outmiddle {
	margin: 0 230px 0 230px;
}

#content {
	float: left;
	padding: 22px;
	padding-bottom: 30px;
	min-height: 400px;
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--dtf-border-light);
	border-radius: 12px;
	background: linear-gradient(160deg, rgba(23,10,10,0.9), rgba(14,7,7,0.94));
	box-shadow: var(--dtf-shadow), inset 0 0 40px rgba(193,39,45,0.05);
	background-position: center top;
}

#content_up,
#content_up_left,
#content_up_right,
#content_down,
#content_down_left,
#content_down_right {
	background: none;
	height: 4px;
}

.clr {
	clear: both;
}

/* -------- FOOTER -------- */
#footer {
	color: var(--dtf-text-dim);
	clear: both;
	width: 100%;
	overflow: hidden;
	padding: 22px 0 22px 0;
	background-color: var(--dtf-bg-alt);
	text-align: center;
	background-image: none;
	border-top: 1px solid var(--dtf-border-light);
	margin-top: 30px;
}
#footer p {
	font-size: 11px;
}
#footer a {
	border: none;
	color: var(--dtf-red-bright);
	text-decoration: none;
}
#footer a:hover {
	text-decoration: underline;
	color: var(--dtf-gold);
}
#copyright_info {
	clear: both;
	font-size: 11px;
	padding: 0;
	margin: 0;
	text-align: center;
}
#copyright_info p {
	font-size: 11px;
	padding: 5px 20px 5px 20px;
	margin: 0;
	text-align: center;
	color: var(--dtf-text-dim);
}
#designed_by {
	display: none;
}

#date {
	text-align: center;
	font-size: 11px;
	width: auto;
	background-color: transparent;
	height: 30px;
	line-height: 30px;
	overflow: hidden;
}
#date p {
	color: var(--dtf-text);
	font-size: 10px;
	background-color: var(--dtf-panel);
	width: 200px;
	height: 22px;
	line-height: 22px;
	margin: 0 auto;
	margin-top: 8px;
	border: 1px solid var(--dtf-border-light);
	border-radius: 6px;
}

/* -------- TYPOGRAFIA -------- */
h1, h2, h3, h4, h5, h6 {
	font-family: 'Cinzel', 'Arial', serif;
	color: var(--dtf-gold);
	letter-spacing: 0.5px;
}
h1 { font-weight: 700; font-size: 26px; line-height: 30px; }
h2 { font-size: 21px; line-height: 25px; font-weight: 600; }
h3 { font-size: 18px; line-height: 22px; font-weight: 600; }
h4 { font-size: 16px; line-height: 19px; font-weight: 600; }
h5 { font-size: 14px; line-height: 17px; font-weight: 600; }
h6 { font-size: 12px; line-height: 15px; font-weight: 600; }

td {
	text-align: left;
	margin: 0;
	padding: 0;
}

a, a:link, a:visited, a:active, a:focus {
	color: var(--dtf-red-bright);
	outline: none;
	text-decoration: none;
	transition: color 0.15s ease;
}
a:hover {
	color: var(--dtf-gold);
	text-decoration: underline;
}

/* -------- MODUŁY / SIDEBAR MENU (kolorowe karty jak we wzorze) -------- */
.module_menu {
	width: 210px;
	overflow: hidden;
	margin-bottom: 14px;
	border-radius: 10px;
	background: linear-gradient(160deg, rgba(23,10,10,0.92), rgba(14,7,7,0.94));
	border: 1px solid var(--dtf-border-light);
	box-shadow: var(--dtf-shadow);
	border-left: 3px solid var(--dtf-red);
}
div.module_menu,
div.module_menu div,
div.module_menu div div,
div.module_menu div div div,
div.module,
div.module_text,
div.module div,
div.module_text div,
div.module div div,
div.module_text div div {
	background: none !important;
}

/* nowy nagłówek modułu: ikona + tekst (zamiast obrazka) */
.dtf-module-title {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	margin: 0;
	border-bottom: 1px solid var(--dtf-border-light);
	background: linear-gradient(90deg, rgba(193,39,45,0.16), transparent);
	color: var(--dtf-gold);
	font-family: 'Cinzel', serif;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.dtf-module-title i {
	font-size: 15px;
	color: var(--dtf-red-bright);
	filter: drop-shadow(0 0 4px rgba(230,57,70,0.5));
}

/* kolorowe akcenty per kategoria - dopasowane wg kolejności modułów w layout.php */
#sidebar_left .module_menu:nth-of-type(1) { border-left-color: var(--dtf-accent-news); }
#sidebar_left .module_menu:nth-of-type(1) .dtf-module-title,
#sidebar_left .module_menu:nth-of-type(1) .dtf-module-title i { color: var(--dtf-accent-news); }
#sidebar_left .module_menu:nth-of-type(1) .dtf-module-title { background: linear-gradient(90deg, rgba(230,57,70,0.16), transparent); }

#sidebar_left .module_menu:nth-of-type(2) { border-left-color: var(--dtf-accent-account); }
#sidebar_left .module_menu:nth-of-type(2) .dtf-module-title,
#sidebar_left .module_menu:nth-of-type(2) .dtf-module-title i { color: var(--dtf-accent-account); }
#sidebar_left .module_menu:nth-of-type(2) .dtf-module-title { background: linear-gradient(90deg, rgba(212,162,76,0.16), transparent); }

#sidebar_left .module_menu:nth-of-type(3) { border-left-color: var(--dtf-accent-community); }
#sidebar_left .module_menu:nth-of-type(3) .dtf-module-title,
#sidebar_left .module_menu:nth-of-type(3) .dtf-module-title i { color: var(--dtf-accent-community); }
#sidebar_left .module_menu:nth-of-type(3) .dtf-module-title { background: linear-gradient(90deg, rgba(76,175,160,0.16), transparent); }

#sidebar_left .module_menu:nth-of-type(4) { border-left-color: var(--dtf-accent-library); }
#sidebar_left .module_menu:nth-of-type(4) .dtf-module-title,
#sidebar_left .module_menu:nth-of-type(4) .dtf-module-title i { color: var(--dtf-accent-library); }
#sidebar_left .module_menu:nth-of-type(4) .dtf-module-title { background: linear-gradient(90deg, rgba(106,143,212,0.16), transparent); }

#sidebar_right .module_menu { border-left-color: var(--dtf-accent-donate); }
#sidebar_right .module_menu .dtf-module-title,
#sidebar_right .module_menu .dtf-module-title i { color: var(--dtf-accent-donate); }
#sidebar_right .module_menu .dtf-module-title { background: linear-gradient(90deg, rgba(178,92,224,0.16), transparent); }

/* fallback: gdyby moduły nie były bezpośrednio w sidebar_left/right (stara struktura layout.php) */
.module_menu:nth-of-type(1):not(#sidebar_right *) { border-left-color: var(--dtf-accent-news); }
.module_menu:nth-of-type(2):not(#sidebar_right *) { border-left-color: var(--dtf-accent-account); }
.module_menu:nth-of-type(3):not(#sidebar_right *) { border-left-color: var(--dtf-accent-community); }
.module_menu:nth-of-type(4):not(#sidebar_right *) { border-left-color: var(--dtf-accent-library); }

.module_menu .Title {
	display: none; /* stare obrazkowe nagłówki - schowane, zastąpione przez .dtf-module-title */
}

.module_menu h3,
#top div.moduletable h3,
#user1 div.moduletable h3,
#user2 div.moduletable h3,
#sidebar_left div.module h3,
#sidebar_right div.module h3 {
	background: linear-gradient(90deg, rgba(193,39,45,0.18), transparent);
	color: var(--dtf-gold);
	text-align: left;
	height: auto;
	line-height: 1.4;
	padding: 8px 0 8px 16px;
	margin: 0;
	overflow: hidden;
	font-weight: 600;
	border: none;
	border-bottom: 1px solid var(--dtf-border-light);
	font-size: 13px;
	font-variant: small-caps;
	letter-spacing: 1px;
	text-decoration: none;
}

.module_menu ul.menu {
	padding: 8px;
	list-style: none;
	background: none;
	margin: 0;
}
.module_menu ul.menu li {
	margin: 0 0 3px 0;
	padding: 0;
	list-style: none;
	background: none;
}
.module_menu ul.menu li a {
	display: block;
	color: var(--dtf-text);
	vertical-align: middle;
	font-size: 12px;
	text-align: left;
	height: auto;
	line-height: 30px;
	text-decoration: none;
	padding: 0 12px;
	margin: 0;
	background: rgba(255,255,255,0.02);
	border: 1px solid transparent;
	border-radius: 6px;
	transition: all 0.15s ease;
}
.module_menu ul.menu li a span {
	background: none;
}
.module_menu ul.menu li a:hover,
.module_menu ul.menu li a:active,
.module_menu ul.menu li a:focus,
.module_menu ul.menu li.active a {
	text-decoration: none;
	color: var(--dtf-text-bright);
	text-align: left;
	background: linear-gradient(90deg, rgba(193,39,45,0.35), rgba(193,39,45,0.06));
	border-color: var(--dtf-border-light);
	padding-left: 16px;
}
.module_menu ul.menu li li a {
	vertical-align: middle;
	font-size: 12px;
	text-align: left;
	text-decoration: none;
	height: auto;
	line-height: 26px;
	padding-left: 24px;
	overflow: hidden;
}
.module_menu ul.menu li li a:hover,
.module_menu ul.menu li li a:active,
.module_menu ul.menu li li a:focus,
.module_menu ul.menu li li.active a {
	background: rgba(193,39,45,0.18);
	text-decoration: none;
}

/* -------- NAWIGACJA GÓRNA -------- */
ul#mainlevel-nav {
	list-style: none;
	padding: 0;
	margin: 0 auto;
	font-size: 12px;
	display: flex;
	justify-content: center;
	height: 100%;
}
ul#mainlevel-nav li {
	text-align: center;
	background-image: none;
	font-weight: 600;
	float: none;
	margin: 0;
	padding: 0;
	font-size: 12px;
	height: 46px;
	line-height: 46px;
	white-space: nowrap;
	background-color: transparent;
}
ul#mainlevel-nav li a {
	color: var(--dtf-text);
	text-align: center;
	font-weight: 600;
	font-size: 12px;
	display: block;
	height: 46px;
	padding-left: 16px;
	padding-right: 16px;
	text-decoration: none;
	text-transform: uppercase;
	border: none;
	letter-spacing: 1px;
	margin-right: 0;
	background-color: transparent;
	background-repeat: no-repeat;
	transition: all 0.15s ease;
	border-bottom: 3px solid transparent;
}
ul#mainlevel-nav li a:hover {
	text-decoration: none;
	color: var(--dtf-text-bright);
	background-color: rgba(193,39,45,0.14);
	border-bottom-color: var(--dtf-red-bright);
}
ul#mainlevel-nav li a#active_menu-nav {
	font-size: 12px;
	text-decoration: none;
	color: var(--dtf-red-bright);
	border-bottom-color: var(--dtf-red-bright);
}
ul#mainlevel-nav li a#active_menu-nav:hover {
	text-decoration: none;
}

/* -------- PRZYCISKI I FORMULARZE -------- */
.button {
	color: var(--dtf-text-bright);
	background: linear-gradient(180deg, #7d1f24, #4a1013);
	background-position: center top;
	text-align: center;
	font-size: 12px;
	border: 1px solid var(--dtf-border-light);
	border-radius: 6px;
	padding: 6px 14px;
	margin: 2px 3px;
	cursor: pointer;
	transition: all 0.15s ease;
}
.button:hover {
	color: var(--dtf-text-bright);
	background: linear-gradient(180deg, #9c2830, #5c1418);
	box-shadow: 0 0 12px rgba(230,57,70,0.4);
}

.inputbox,
input,
textarea,
select {
	border: 1px solid var(--dtf-border);
	background-color: var(--dtf-panel);
	color: var(--dtf-text-bright);
	font-size: 12px;
	border-radius: 5px;
	padding: 6px 8px;
}
.inputbox:hover,
input:hover,
textarea:hover,
select:hover {
	border-color: var(--dtf-red);
}
#page_body input {
	border: 1px solid var(--dtf-border);
	background-color: var(--dtf-panel);
	padding: 6px;
	color: var(--dtf-text-bright);
	font-size: 12px;
	border-radius: 5px;
}
#page_body input:hover {
	border: 1px solid var(--dtf-red);
}
#page_body select {
	border: 1px solid var(--dtf-border);
	background-color: var(--dtf-panel);
	padding: 4px;
	height: auto;
	color: var(--dtf-text-bright);
	font-size: 12px;
}

/* -------- TABELE / LISTY -------- */
.sectiontableheader {
	border: 1px solid var(--dtf-border-light);
	background-color: var(--dtf-panel-light);
	text-align: left;
	margin: 0;
	padding: 8px;
	height: auto;
	color: var(--dtf-gold);
}
.sectiontablefooter {
	padding: 6px;
	margin: 0;
	text-align: left;
	background-color: var(--dtf-panel);
}
.sectiontableentry0,
.sectiontableentry2 {
	border-bottom: 1px solid var(--dtf-border);
	background-color: var(--dtf-panel);
	text-align: left;
}
.sectiontableentry1 {
	border-bottom: 1px solid var(--dtf-border);
	background-color: var(--dtf-panel-light);
	text-align: left;
}
.sectiontableentry0 td,
.sectiontableentry1 td,
.sectiontableentry2 td {
	padding: 6px 8px;
	margin: 1px;
}

.componentheading {
	background: linear-gradient(90deg, rgba(193,39,45,0.25), transparent);
	height: auto;
	line-height: 1.6;
	padding: 10px 0;
	color: var(--dtf-gold);
	font-size: 17px;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 2px;
	border-bottom: 1px solid var(--dtf-border-light);
	font-family: 'Cinzel', serif;
}
.contentheading {
	font-size: 17px;
	height: auto;
	line-height: 1.4;
	color: var(--dtf-red-bright);
	font-variant: small-caps;
	font-family: 'Cinzel', serif;
}

.pagenav {
	text-transform: uppercase;
	text-align: center;
	font-size: 12px;
	padding: 5px 10px;
	margin: 5px 1px;
	color: var(--dtf-text-bright);
	background-color: var(--dtf-panel);
	border: 1px solid var(--dtf-border);
	border-radius: 5px;
}
a.pagenav {
	color: var(--dtf-text-bright);
	background-color: var(--dtf-panel);
}
.pagenav a:hover {
	color: var(--dtf-gold);
	text-decoration: none;
}

/* -------- MISC -------- */
img {
	border: none;
	padding: 2px 5px;
}
.highlight {
	background-color: rgba(193,39,45,0.18);
	color: var(--dtf-red-glow);
	padding: 0 3px;
	border-radius: 3px;
}
.error {
	font-style: italic;
	text-transform: uppercase;
	padding: 8px;
	color: var(--dtf-red-bright);
	font-size: 12px;
}
div.message {
	font-weight: 600;
	font-size: 12px;
	color: var(--dtf-text-bright);
	text-align: center;
	width: auto;
	background-color: var(--dtf-panel);
	border: 1px solid var(--dtf-border-light);
	border-radius: 6px;
	margin: 8px 0;
	padding: 8px 20px;
}

@import url(https://fonts.googleapis.com/css?family=Lato:100,400);
#the-final-countdown {
	background: var(--dtf-panel);
	font-family: 'Lato', sans-serif;
	text-align: center;
	color: var(--dtf-text-bright);
	text-shadow: 1px 1px 5px black;
	padding: 1rem 0;
	font-size: 3rem;
	border: 1px solid var(--dtf-border-light);
	border-radius: 10px;
}

#clock {
	border: 0px;
	top: 25%;
	margin: 0px auto;
	position: relative;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 700;
	color: var(--dtf-text-bright);
}

/* -------- countdown "starts in" na latestnews - premium gold style -------- */
.dtf-countdown-box {
	display: inline-block;
	position: relative;
	margin: 14px auto;
	padding: 26px 34px 20px 34px;
	border-radius: 14px;
	border: 1px solid rgba(212,162,76,0.35);
	background: linear-gradient(160deg, rgba(20,10,6,0.94), rgba(9,5,3,0.97));
	box-shadow:
		0 0 0 1px rgba(212,162,76,0.12),
		0 14px 34px rgba(0,0,0,0.65),
		0 0 46px rgba(212,162,76,0.14);
	text-align: center;
}
.dtf-countdown-box::before {
	content: "";
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(245,211,139,0.9), transparent);
}
.dtf-countdown-title {
	display: block;
	font-family: 'Cinzel', serif;
	font-weight: 700;
	font-size: 23px;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	background: linear-gradient(90deg, #d4a24c, #f5e3ae, #d4a24c, #f5e3ae, #d4a24c);
	background-size: 300% auto;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: dtf-shine 4s linear infinite;
	filter: drop-shadow(0 0 10px rgba(212,162,76,0.35));
}
@keyframes dtf-shine {
	0% { background-position: 0% center; }
	100% { background-position: 300% center; }
}
.dtf-countdown-subtitle {
	display: block;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: var(--dtf-text-dim);
	margin: 3px 0 18px 0;
}
.dtf-countdown-grid {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.dtf-countdown-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 62px;
	padding: 10px 8px 8px 8px;
	border-radius: 9px;
	background: linear-gradient(160deg, rgba(212,162,76,0.12), rgba(212,162,76,0.02));
	border: 1px solid rgba(212,162,76,0.3);
	box-shadow: inset 0 0 14px rgba(212,162,76,0.08);
}
.dtf-countdown-unit-sec {
	border-color: rgba(230,57,70,0.45);
	background: linear-gradient(160deg, rgba(230,57,70,0.14), rgba(230,57,70,0.02));
	box-shadow: inset 0 0 14px rgba(230,57,70,0.12);
}
.dtf-countdown-num {
	display: block;
	font-family: 'Cinzel', serif;
	font-weight: 700;
	font-size: 26px;
	line-height: 1;
	color: #f5e3ae;
	text-shadow: 0 0 14px rgba(212,162,76,0.55);
}
.dtf-countdown-unit-sec .dtf-countdown-num {
	color: var(--dtf-red-glow);
	text-shadow: 0 0 14px rgba(255,77,90,0.6);
}
.dtf-countdown-unit-label {
	display: block;
	font-family: 'Inter', sans-serif;
	font-size: 9px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--dtf-text-dim);
	margin-top: 5px;
}
.dtf-countdown-sep {
	font-family: 'Cinzel', serif;
	font-size: 22px;
	font-weight: 700;
	color: rgba(212,162,76,0.45);
	align-self: center;
	padding-bottom: 14px;
}
.dtf-countdown-date {
	display: block;
	margin-top: 16px;
	font-size: 11px;
	letter-spacing: 1.5px;
	color: var(--dtf-text-dim);
	opacity: 0.85;
}

/* responsywne dopasowanie na mniejszych szerokościach */
@media (max-width: 1180px) {
	#container { width: 96%; }
}