/* ==========================================================
   Silkroad private server - "Modern" template
   Colors / sizes live in :root, change them to re-skin the site
   ========================================================== */

:root {
	--bg: #08090d;
	--bg-2: #0d0f15;
	--card: #12141c;
	--card-2: #171a25;
	--line: #252a39;
	--text: #d7d4cd;
	--text-strong: #f3efe6;
	--muted: #8b90a0;
	--gold: #d9a94f;
	--gold-2: #f3d58b;
	--red: #b8323a;
	--green: #3fbf6a;
	--radius: 12px;
	--shadow: 0 10px 30px rgba(0, 0, 0, .45);
	--font-head: "Cinzel", Georgia, "Times New Roman", serif;
	--font-body: "Inter", "Segoe UI", Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 15px/1.6 var(--font-body);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--gold); text-decoration: none; transition: color .15s, background .15s, border-color .15s; }
a:hover { color: var(--gold-2); }
h1, h2, h3 { font-family: var(--font-head); color: var(--text-strong); margin: 0; line-height: 1.2; }
p { margin: 0 0 12px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 20px; border-radius: 8px; border: 1px solid transparent;
	font: 600 14px/1 var(--font-body); cursor: pointer; text-align: center; white-space: nowrap;
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 15px 28px; font-size: 15px; letter-spacing: .02em; }
.btn-block { display: flex; width: 100%; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1306; }
.btn-gold:hover { color: #1a1306; filter: brightness(1.08); transform: translateY(-1px); }
.btn-outline { border-color: var(--gold); color: var(--gold-2); background: rgba(217, 169, 79, .08); }
.btn-outline:hover { background: rgba(217, 169, 79, .18); color: var(--gold-2); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: #3a4054; color: var(--text-strong); background: rgba(255, 255, 255, .07); }

/* ---------- Top bar ---------- */
.topbar {
	position: sticky; top: 0; z-index: 50;
	background: rgba(8, 9, 13, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text-strong); }
.brand:hover { color: var(--gold-2); }
.brand-mark { width: 30px; height: 30px; color: var(--gold); }
.brand-name { font: 700 20px var(--font-head); letter-spacing: .06em; text-transform: uppercase; }

.mainnav { display: flex; align-items: center; gap: 4px; }
.mainnav > a, .dropdown-toggle {
	display: block; padding: 8px 14px; border-radius: 8px;
	color: var(--text); font-weight: 500; font-size: 14px;
}
.mainnav > a:hover, .dropdown-toggle:hover, .dropdown:hover .dropdown-toggle { color: var(--text-strong); background: rgba(255, 255, 255, .05); }
.mainnav a.active { color: var(--gold-2); background: rgba(217, 169, 79, .1); }
.nav-account { display: flex; gap: 8px; margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line); }
.nav-account .btn { color: inherit; }
.nav-account .btn-gold { color: #1a1306; }

.dropdown { position: relative; }
.caret { display: inline-block; border: 4px solid transparent; border-top-color: currentColor; margin-left: 4px; vertical-align: -2px; }
.dropdown-menu {
	display: none; position: absolute; top: 100%; left: 0; min-width: 170px; padding: 6px;
	background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--text); font-size: 14px; }
.dropdown-menu a:hover { background: rgba(217, 169, 79, .12); color: var(--gold-2); }

.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; border-radius: 8px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; text-align: center;
	padding: 90px 0 70px;
	background:
		radial-gradient(ellipse at 50% 120%, rgba(184, 50, 58, .25), transparent 60%),
		linear-gradient(180deg, rgba(8, 9, 13, .55) 0%, rgba(8, 9, 13, .35) 40%, var(--bg) 100%),
		url("../img/hero.jpg") center 30% / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, rgba(8, 9, 13, .75) 100%); pointer-events: none; }
.hero-inner { position: relative; }
.eyebrow {
	display: inline-block; padding: 6px 14px; border: 1px solid rgba(217, 169, 79, .4); border-radius: 999px;
	background: rgba(8, 9, 13, .6); color: var(--gold-2); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.hero-title {
	margin: 22px 0 14px; font-size: clamp(26px, 8.5vw, 72px); font-weight: 900; letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere;
	background: linear-gradient(180deg, #fff6dc 10%, var(--gold) 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
	filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .8));
}
.hero-text { max-width: 720px; margin: 0 auto 8px; font-size: 18px; color: var(--text-strong); text-shadow: 0 2px 10px #000; }
.hero-sub { color: var(--muted); letter-spacing: .08em; font-size: 13px; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 30px 0 26px; }
.hero-status { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: rgba(8, 9, 13, .7); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.pill-on { color: var(--green); border-color: rgba(63, 191, 106, .35); }
.pill-off { color: #ee5560; border-color: rgba(238, 85, 96, .35); }
.pill-off i { box-shadow: none; }
.pill-plain { color: var(--text); }

/* ---------- Stats ribbon ---------- */
.ribbon { margin-top: -28px; position: relative; z-index: 2; }
.ribbon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ribbon-item {
	text-align: center; padding: 20px 10px; border-radius: var(--radius);
	background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.ribbon-item strong { display: block; font: 700 30px var(--font-head); color: var(--gold-2); }
.ribbon-item span { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Inner page header ---------- */
.page-head { padding: 44px 0 30px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #0f1119, var(--bg)); }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: .04em; }
.page-head p { color: var(--muted); margin: 8px 0 0; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs span { margin: 0 6px; opacity: .5; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding-top: 36px; padding-bottom: 60px; align-items: start; }
.is-home .layout { padding-top: 50px; }
.block { margin-bottom: 44px; }
.block-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.block-head h2 { font-size: 24px; letter-spacing: .04em; }
.block-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

.card, .widget { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.page-card { padding: 28px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.feature:hover { transform: translateY(-3px); border-color: rgba(217, 169, 79, .5); }
.feature-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; background: rgba(217, 169, 79, .12); color: var(--gold); margin-bottom: 14px; }
.feature-icon svg { width: 24px; height: 24px; fill: currentColor; }
.feature h3 { font-size: 16px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; display: block; padding: 22px 22px 22px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: var(--text); }
.step:hover { border-color: rgba(217, 169, 79, .5); color: var(--text); }
.step b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1306; font: 700 16px var(--font-head); margin-bottom: 12px; }
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- News ---------- */
.news-list { display: grid; gap: 14px; }
.news-item { padding: 22px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold); }
.news-item h3 { font-size: 18px; margin-bottom: 4px; }
.news-date { display: block; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.news-body { color: var(--text); overflow-wrap: anywhere; }
.news-body img { height: auto; border-radius: 8px; }
.empty { padding: 34px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Sidebar widgets ---------- */
.sidebar { display: grid; gap: 18px; position: sticky; top: 86px; }
.widget { overflow: hidden; }
.widget-title {
	margin: 0; padding: 13px 18px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2);
	background: linear-gradient(180deg, var(--card-2), var(--card)); border-bottom: 1px solid var(--line);
}
.widget-body { padding: 18px; }
.widget-flush { padding: 0; }
.links-list { display: grid; gap: 10px; }

.status-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.status-count { font: 700 18px var(--font-head); color: var(--text-strong); }
.meter { height: 8px; border-radius: 999px; background: #0a0b10; border: 1px solid var(--line); overflow: hidden; }
.meter div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.meter-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

.toplist { list-style: none; margin: 0; padding: 0; }
.toplist li { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.toplist .name { flex: 1; color: var(--text-strong); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toplist .lvl { color: var(--muted); font-size: 13px; }
.rank { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #1d2130; color: var(--muted); font: 700 12px var(--font-body); }
.rank-1 { background: linear-gradient(180deg, #ffe08a, #d9a94f); color: #1a1306; }
.rank-2 { background: linear-gradient(180deg, #e6e9ef, #a4abba); color: #14161d; }
.rank-3 { background: linear-gradient(180deg, #e0a36c, #a6672f); color: #1a1006; }
.widget-link { display: block; padding: 12px 18px; text-align: center; font-size: 13px; font-weight: 600; }

/* ---------- Login form & account ---------- */
.field { margin-bottom: 12px; }
.field label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
input[type=text], input[type=password], input[type=email], select, textarea {
	width: 100%; padding: 11px 13px; border-radius: 8px; border: 1px solid var(--line); background: #0a0b10; color: var(--text-strong);
	font: 15px var(--font-body); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 169, 79, .18); }
.form-links { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; }
.account-name { font: 700 18px var(--font-head); color: var(--text-strong); margin-bottom: 4px; }
.account-silk { display: flex; align-items: center; justify-content: space-between; margin: 14px 0; padding: 12px 14px; border-radius: 8px; background: #0a0b10; border: 1px solid var(--line); }
.account-silk span { color: var(--muted); font-size: 13px; }
.account-silk strong { color: var(--gold-2); font: 700 20px var(--font-head); }
.account-actions { display: grid; gap: 8px; }

.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; border: 1px solid; }
.alert.error, .error { background: rgba(184, 50, 58, .12); border-color: rgba(238, 85, 96, .4); color: #ff9aa2; }
.alert.ok, .ok { background: rgba(63, 191, 106, .1); border-color: rgba(63, 191, 106, .4); color: #8ee0a8; }
div.error, div.ok { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; border: 1px solid; }

/* ---------- Inner pages content ---------- */
.page-card h2 { font-size: 22px; margin-bottom: 14px; }
.page-card h3 { font-size: 17px; margin-bottom: 10px; }
.page-card .lead { color: var(--muted); margin-bottom: 22px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 13px 16px; background: var(--card-2); color: var(--gold-2); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: rgba(255, 255, 255, .025); }
.data-table .num { text-align: right; white-space: nowrap; }
.price { color: var(--gold-2); font-weight: 700; white-space: nowrap; }

.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tab { padding: 9px 18px; border-radius: 8px; border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 14px; }
.tab:hover { border-color: #3a4054; color: var(--text-strong); }
.tab.active { background: rgba(217, 169, 79, .14); border-color: var(--gold); color: var(--gold-2); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat { padding: 16px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); }
.stat span { display: block; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.stat strong { font: 700 22px var(--font-head); color: var(--gold-2); }

.rule-list { list-style: none; margin: 0; padding: 0; counter-reset: rule; display: grid; gap: 10px; }
.rule-list li { counter-increment: rule; display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); }
.rule-list li::before { content: counter(rule); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(217, 169, 79, .15); color: var(--gold-2); font-weight: 700; font-size: 13px; }

.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 26px; }
.download-card { padding: 22px; border-radius: var(--radius); background: var(--card-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.download-card p { color: var(--muted); font-size: 14px; flex: 1; margin: 0; }
.install-steps { margin: 0; padding-left: 20px; color: var(--text); }
.install-steps li { margin-bottom: 6px; }

.form-table { width: 100%; max-width: 560px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 6px; margin-bottom: 16px; }
.form-row label { font-size: 13px; font-weight: 600; color: var(--text-strong); }
.form-row .hint { font-size: 12px; color: var(--muted); }
.captcha-row { display: flex; gap: 12px; align-items: center; }
.captcha-row input { flex: 1; }
.captcha-row img { height: 44px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }

.contact-line { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); margin-top: 18px; }
.note { margin-top: 18px; color: var(--muted); font-size: 14px; }

/* long legal text (terms) */
.prose { line-height: 1.75; }
.prose h3 { margin: 26px 0 10px; color: var(--gold-2); }
.prose h3:first-child { margin-top: 0; }
.prose b { color: var(--text-strong); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 34px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 18px 30px; align-items: center; }
.footer-brand strong { display: block; font: 700 16px var(--font-head); color: var(--text-strong); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.footer-brand span { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; font-size: 14px; }
.footer-links a { color: var(--text); }
.footer-links a:hover { color: var(--gold-2); }
.footer-translate { grid-column: 1 / -1; }
.footer-translate .goog-te-gadget { font-size: 12px !important; color: var(--muted) !important; }
.footer-translate .goog-te-gadget a { color: var(--muted) !important; }
.footer-translate select { width: auto; padding: 6px 10px; font-size: 13px; }
.statcounter { display: none; }

.to-top {
	position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
	background: var(--card-2); border: 1px solid var(--gold); color: var(--gold-2); font-size: 20px; box-shadow: var(--shadow);
	opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s, transform .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.layout { grid-template-columns: minmax(0, 1fr); }
	.sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
	.sidebar #login { grid-column: 1 / -1; }
	.features, .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.mainnav {
		display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
		padding: 12px 20px 18px; background: rgba(8, 9, 13, .98); border-bottom: 1px solid var(--line);
	}
	.mainnav.open { display: flex; }
	.dropdown-menu { display: block; position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 14px; }
	.dropdown-toggle .caret { display: none; }
	.nav-account { margin: 10px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); }
	.nav-account .btn { flex: 1; }
	.nav-toggle[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-toggle[aria-expanded=true] span:nth-child(2) { opacity: 0; }
	.nav-toggle[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.hero { padding: 60px 0 56px; }
	.ribbon-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-inner { grid-template-columns: 1fr; }
	.footer-links { justify-content: flex-start; }
}

@media (max-width: 600px) {
	.features, .steps, .sidebar { grid-template-columns: 1fr; }
	.hero-actions .btn { width: 100%; }
	.page-card { padding: 18px; }
	.brand-name { font-size: 17px; }
}

/* ==========================================================
   Admin panel
   ========================================================== */
.layout-wide { grid-template-columns: minmax(0, 1fr); }
.layout-wide .page-card { max-width: 1100px; margin: 0 auto; }
.btn-danger { background: rgba(184, 50, 58, .15); border-color: rgba(238, 85, 96, .5); color: #ff9aa2; }
.btn-danger:hover { background: rgba(184, 50, 58, .32); color: #ffd0d4; }
textarea { resize: vertical; min-height: 90px; }
code { padding: 1px 6px; border-radius: 5px; background: #0a0b10; border: 1px solid var(--line); font-size: 12px; color: var(--gold-2); }
h2 small, h3 small { font: 400 12px var(--font-body); color: var(--muted); letter-spacing: 0; text-transform: none; margin-left: 6px; }
.page-card h3 { margin-top: 26px; }
.page-card h2 + h3 { margin-top: 18px; }

.adm-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.adm-bar .tabs { margin: 0; }
.adm-logout { display: flex; align-items: center; gap: 10px; }
.adm-who { color: var(--muted); font-size: 13px; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.adm-box { padding: 20px; border-radius: var(--radius); background: var(--card-2); border: 1px solid var(--line); }
.adm-box h4 { margin: 0 0 14px; font: 700 15px var(--font-head); color: var(--gold-2); letter-spacing: .04em; }
.adm-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 18px; }
.adm-search { display: flex; gap: 10px; max-width: 520px; margin-bottom: 22px; }
.adm-save { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.adm-account { padding: 22px; border-radius: var(--radius); background: var(--card-2); border: 1px solid var(--line); }
.adm-account-head h3 { margin: 0 0 6px; font-size: 22px; }
.adm-meta { color: var(--muted); font-size: 13px; margin-bottom: 18px; overflow-wrap: anywhere; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font: 700 11px var(--font-body); letter-spacing: .08em; vertical-align: middle; background: rgba(217, 169, 79, .18); color: var(--gold-2); border: 1px solid rgba(217, 169, 79, .45); }
.badge-red { background: rgba(184, 50, 58, .2); color: #ff9aa2; border-color: rgba(238, 85, 96, .5); }
.ok-mark { color: var(--green); font-weight: 700; }
.bad-mark { color: #ee5560; font-weight: 700; }

.repeater { margin-bottom: 8px; }
.repeater-rows { display: grid; gap: 8px; margin-bottom: 10px; }
.repeater-row { display: flex; gap: 8px; align-items: center; }
.repeater-row input[type=text], .repeater-row select { min-width: 0; }
.repeater-del { flex: none; width: 38px; padding: 8px 0; font-size: 18px; line-height: 1; }
.repeater-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); white-space: nowrap; cursor: pointer; }
.repeater-check input { width: auto; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.presets span { color: var(--muted); font-size: 13px; }

@media (max-width: 700px) {
	.repeater-row { flex-wrap: wrap; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
	.repeater-row > * { flex: 1 1 100% !important; }
	.repeater-del { flex: 0 0 auto !important; width: auto; padding: 8px 14px; }
	.adm-search { flex-direction: column; }
}
/* ---------- Home slider ---------- */
.slider-nav { order: 3; display: flex; gap: 8px; }
.slider-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card-2); color: var(--gold-2); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 0 3px; }
.slider-btn:hover { border-color: var(--gold); background: rgba(217, 169, 79, .12); }
.slider-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; padding: 4px 2px; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track .feature { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; }
@media (max-width: 1024px) { .slider-track .feature { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 600px) { .slider-track .feature { flex-basis: 100%; } }

/* ---------- Background music button ---------- */
.bgm-toggle {
	position: fixed; left: 18px; bottom: 18px; z-index: 40; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
	background: var(--card-2); border: 1px solid var(--gold); color: var(--gold-2); cursor: pointer; box-shadow: var(--shadow); padding: 0;
}
.bgm-toggle:hover { background: rgba(217, 169, 79, .18); }
.bgm-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bgm-toggle .bgm-off { display: none; }
.bgm-toggle.off { border-color: var(--line); color: var(--muted); }
.bgm-toggle.off .bgm-off { display: block; }
.bgm-toggle.playing { animation: bgm-pulse 2.4s ease-in-out infinite; }
@keyframes bgm-pulse { 0%, 100% { box-shadow: var(--shadow), 0 0 0 0 rgba(217, 169, 79, .35); } 50% { box-shadow: var(--shadow), 0 0 0 8px rgba(217, 169, 79, 0); } }
@media (prefers-reduced-motion: reduce) { .bgm-toggle.playing { animation: none; } .slider-track { scroll-behavior: auto; } }
/* ---------- Database structure editor ---------- */
.schema-card { margin-bottom: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--card-2); border: 1px solid var(--line); }
.schema-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.schema-used { color: var(--muted); font-size: 12px; margin-left: 8px; }
.schema-grid { display: grid; gap: 8px; }
.schema-row { display: grid; grid-template-columns: 200px minmax(160px, 280px) 1fr; gap: 12px; align-items: center; }
.schema-row label { font-size: 13px; color: var(--text); }
.schema-row select { padding: 8px 10px; font-size: 14px; }
.schema-table { padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px dashed var(--line); }
.schema-table label { font-weight: 700; color: var(--gold-2); }
.schema-state { font-size: 13px; }
.muted { color: var(--muted); }
.guess-mark { color: var(--gold-2); font-weight: 600; }
@media (max-width: 800px) { .schema-row { grid-template-columns: 1fr; gap: 4px; } }
/* ---------- News editor ---------- */
.editor { border: 1px solid var(--line); border-radius: var(--radius); background: #0a0b10; overflow: hidden; max-width: 760px; }
.editor-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; background: var(--card-2); border-bottom: 1px solid var(--line); }
.editor-bar button { min-width: 36px; height: 34px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text-strong); font: 600 14px var(--font-body); cursor: pointer; }
.editor-bar button:hover { border-color: var(--gold); background: rgba(217, 169, 79, .12); }
.editor-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.editor textarea { display: block; width: 100%; border: 0; border-radius: 0; background: #0a0b10; min-height: 150px; box-shadow: none; }
.editor textarea:focus { box-shadow: inset 0 0 0 2px rgba(217, 169, 79, .35); }
.editor-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--card-2); }
.editor-count { color: var(--muted); font-size: 13px; }
.editor-count.over { color: #ff8b94; font-weight: 700; }
.editor-preview-title { padding: 8px 12px 0; color: var(--gold-2); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.editor-preview { padding: 10px 14px 16px; min-height: 60px; }
.news-body img { max-width: 100%; }
.editor-status { font-size: 13px; color: var(--muted); flex: 1; text-align: center; }
.editor-status.bad { color: #ff8b94; font-weight: 600; }

/* ---------- Visual news editor ---------- */
.editor .editor-area { display: none; }
.editor.js .editor-area { display: block; min-height: 220px; max-height: 520px; overflow-y: auto; padding: 14px 16px; background: #0a0b10; color: var(--text); outline: none; line-height: 1.6; }
.editor.js textarea { display: none; }
.editor.js.source textarea { display: block; min-height: 220px; font-family: Consolas, "Courier New", monospace; font-size: 14px; }
.editor.js.source .editor-area { display: none; }
.editor-area:empty::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; }
.editor-area:focus { box-shadow: inset 0 0 0 2px rgba(217, 169, 79, .35); }
.editor-area img { max-width: 100%; height: auto; border-radius: 8px; cursor: pointer; vertical-align: middle; }
.editor-area img.sel { outline: 2px solid var(--gold); outline-offset: 2px; }
.editor-area a { color: var(--gold); text-decoration: underline; }