/* ==========================================================================
   Zeny RO theme for FluxCP — dark navy + gold (matches the Thor patcher skin)
   Base: stock FluxCP "default" theme templates. All stock template classes
   (horizontal-table, vertical-table, generic-form-table, menuitem, etc.)
   are styled here so every module page renders in the theme.
   ========================================================================== */

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	background: #0b1120;
	color: #dfe6f2;
	font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.55;
}

a { color: #e8c15a; text-decoration: none; }
a:hover { color: #f5d67a; text-decoration: underline; }

h2 {
	color: #f0cd6e;
	font-size: 22px;
	margin: 0 0 10px 0;
	padding-bottom: 6px;
	border-bottom: 1px solid #2a3550;
}
h3 { color: #e8c15a; font-size: 17px; margin: 18px 0 8px 0; }
h4 { color: #dfe6f2; font-size: 15px; margin: 14px 0 6px 0; }
p { margin: 8px 0; }

/* --- Page frame ---------------------------------------------------------- */
.zenyro-page { max-width: 1180px; margin: 0 auto; padding: 0 12px 24px 12px; }

.zenyro-header { margin: 0 0 14px 0; }
.zenyro-banner {
	display: block;
	width: 100%;
	height: 190px;
	object-fit: cover;
	object-position: center 28%;
	border: 1px solid #2a3550;
	border-bottom: 3px solid #d4af37;
	border-radius: 0 0 8px 8px;
}
.zenyro-tagline {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-top: 10px;
	font-size: 13px;
	color: #9aa7c2;
}
.zenyro-tagline .rates { color: #e8c15a; font-weight: bold; }
.zenyro-chip {
	display: inline-block;
	background: #182238;
	border: 1px solid #2a3550;
	border-radius: 20px;
	padding: 2px 10px;
	color: #dfe6f2;
	white-space: nowrap;
}
.zenyro-chip b { color: #e8c15a; }

.zenyro-layout { display: flex; gap: 16px; align-items: flex-start; }
.zenyro-sidebar { flex: 0 0 210px; min-width: 0; }
.zenyro-content { flex: 1 1 auto; min-width: 0; }
.zenyro-content-box {
	background: #121a2e;
	border: 1px solid #2a3550;
	border-radius: 8px;
	padding: 18px 20px;
}

.zenyro-footer {
	margin-top: 18px;
	padding-top: 12px;
	border-top: 1px solid #2a3550;
	color: #9aa7c2;
	font-size: 12.5px;
	text-align: center;
}
.zenyro-footer select {
	background: #182238;
	color: #dfe6f2;
	border: 1px solid #2a3550;
	border-radius: 4px;
	padding: 2px 4px;
}

/* --- Sidebar menu -------------------------------------------------------- */
#sidebar, #admin_sidebar { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
#sidebar th.menuitem, #admin_sidebar th.menuitem {
	background: linear-gradient(180deg, #1d2a47, #16213a);
	color: #f0cd6e;
	text-align: left;
	padding: 8px 12px;
	border: 1px solid #2a3550;
	border-bottom: 2px solid #d4af37;
	font-size: 13px;
	letter-spacing: 0.4px;
}
#sidebar td.menuitem, #admin_sidebar td.menuitem {
	background: #141d33;
	border: 1px solid #2a3550;
	border-top: none;
	padding: 0;
}
#sidebar td.menuitem a, #admin_sidebar td.menuitem a {
	display: block;
	padding: 7px 12px;
	color: #dfe6f2;
}
#sidebar td.menuitem a:hover, #admin_sidebar td.menuitem a:hover {
	background: #1d2a47;
	color: #f5d67a;
	text-decoration: none;
}

/* --- Login box ----------------------------------------------------------- */
#loginbox {
	width: 100%;
	background: #182238;
	border: 1px solid #2a3550;
	border-left: 3px solid #d4af37;
	border-radius: 6px;
	padding: 10px 14px;
	margin-bottom: 14px;
	font-size: 13.5px;
}
#loginbox a { font-weight: bold; }
.loginbox-admin-menu { color: #9aa7c2; }

/* --- Tables -------------------------------------------------------------- */
table.horizontal-table, table.vertical-table, table.generic-form-table {
	width: 100%;
	border-collapse: collapse;
	margin: 10px 0;
	background: #0f1729;
}
table.horizontal-table th, table.vertical-table th, table.generic-form-table th {
	background: #1d2a47;
	color: #f0cd6e;
	text-align: left;
	padding: 8px 10px;
	border: 1px solid #2a3550;
	font-size: 13px;
}
table.horizontal-table td, table.vertical-table td, table.generic-form-table td {
	padding: 7px 10px;
	border: 1px solid #26314d;
	vertical-align: middle;
}
table.horizontal-table tr:nth-child(even) td { background: #121a2e; }
table.horizontal-table tr:hover td { background: #1a2540; }
tr.top-ranked td { background: #2a2113 !important; }
tr.top-ranked td:first-child { color: #f0cd6e; font-weight: bold; }
tr.empty-row td { background: transparent; }
td .not-applicable, span.not-applicable { color: #67718a; font-style: italic; }
.important { color: #f0cd6e; font-weight: bold; }
.green { color: #7ec98a; }
.red { color: #e07878; }

/* --- Forms --------------------------------------------------------------- */
input[type=text], input[type=password], input[type=file], input[type=email],
select, textarea {
	background: #0f1729;
	border: 1px solid #2a3550;
	color: #dfe6f2;
	border-radius: 4px;
	padding: 7px 9px;
	font-size: 14px;
	max-width: 100%;
}
input[type=text]:focus, input[type=password]:focus, select:focus, textarea:focus {
	border-color: #d4af37;
	outline: none;
}
input[type=submit], input[type=button], button, .zenyro-btn {
	background: linear-gradient(180deg, #e8c15a, #c9a227);
	border: 1px solid #8a6d1f;
	color: #241c05;
	font-weight: bold;
	border-radius: 5px;
	padding: 8px 16px;
	cursor: pointer;
	font-size: 14px;
	text-decoration: none;
	display: inline-block;
}
input[type=submit]:hover, input[type=button]:hover, button:hover, .zenyro-btn:hover {
	background: linear-gradient(180deg, #f5d67a, #d4af37);
	color: #241c05;
	text-decoration: none;
}
.zenyro-btn-secondary {
	background: #1d2a47;
	border: 1px solid #2a3550;
	color: #dfe6f2;
}
.zenyro-btn-secondary:hover { background: #26355c; color: #f5d67a; }
label { color: #c6d0e4; }
.generic-form-div { margin: 8px 0; }

/* --- Messages ------------------------------------------------------------ */
p.message {
	background: #1d2f1d;
	border: 1px solid #3d6b3d;
	color: #a5dba5;
	border-radius: 5px;
	padding: 10px 12px;
}
p.notice, p.error {
	background: #331d1d;
	border: 1px solid #6b3d3d;
	color: #e8a5a5;
	border-radius: 5px;
	padding: 10px 12px;
}
ul.error { color: #e8a5a5; }

/* --- Home page hero + features ------------------------------------------- */
.zenyro-hero {
	background: linear-gradient(135deg, #16213a 0%, #1d2a47 55%, #2a2113 100%);
	border: 1px solid #2a3550;
	border-radius: 8px;
	padding: 20px 22px;
	margin-bottom: 16px;
}
.zenyro-hero h2 { border: none; margin: 0 0 6px 0; font-size: 26px; }
.zenyro-hero p { color: #c6d0e4; margin: 6px 0; }
.zenyro-hero .zenyro-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.zenyro-features {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 12px;
	margin: 12px 0;
}
.zenyro-feature {
	background: #0f1729;
	border: 1px solid #2a3550;
	border-radius: 8px;
	padding: 12px 14px;
}
.zenyro-feature h4 { margin: 0 0 4px 0; color: #f0cd6e; }
.zenyro-feature p { margin: 0; color: #c6d0e4; font-size: 13.5px; }
.zenyro-steps { margin: 8px 0 8px 18px; color: #c6d0e4; }
.zenyro-steps li { margin: 4px 0; }

/* --- News ---------------------------------------------------------------- */
.newsDiv { margin: 10px 0; }
.newsCont {
	background: #0f1729;
	border: 1px solid #2a3550;
	border-left: 3px solid #d4af37;
	border-radius: 5px;
	padding: 10px 14px;
	margin-bottom: 10px;
}
.newsDate { color: #9aa7c2; font-size: 12.5px; }
.news_link { font-size: 13px; }
.clear { clear: both; }

/* --- Rankings ------------------------------------------------------------ */
.rank-nav { margin: 6px 0 12px 0; color: #9aa7c2; font-size: 13.5px; }
.rank-nav a { margin: 0 4px; }
.rank-nav strong { color: #f0cd6e; }
td.rank-num { text-align: right; color: #e8c15a; font-weight: bold; }
tr.rank-1 td { background: #2a2113; }
tr.rank-2 td { background: #232a3d; }
tr.rank-3 td { background: #1d2436; }

/* --- Misc stock classes --------------------------------------------------- */
.status, .online { color: #7ec98a; font-weight: bold; }
.offline { color: #e07878; font-weight: bold; }
.search-form, .search-form2 { margin: 10px 0; }
.search-form2 label { margin-right: 6px; }
span.time { color: #9aa7c2; font-size: 12.5px; }
#info, #copyright { color: #67718a; font-size: 12px; }
#info p, #copyright p { margin: 4px 0; }
img { max-width: 100%; }
pre, code { background: #0f1729; border: 1px solid #2a3550; border-radius: 4px; padding: 2px 6px; }
hr { border: none; border-top: 1px solid #2a3550; margin: 16px 0; }

@media (max-width: 760px) {
	.zenyro-layout { flex-direction: column; }
	.zenyro-sidebar { flex: 1 1 auto; width: 100%; }
	.zenyro-banner { height: 120px; }
	.zenyro-content-box { padding: 12px; }
}
