/* Moderní vrstva designu – načítá se po new_custom.css a přepisuje jeho vzhled */

:root {
	--cb-bg: #f3f5fa;
	--cb-surface: rgba(255, 255, 255, 0.82);
	--cb-surface-solid: #ffffff;
	--cb-surface-2: rgba(246, 248, 252, 0.9);
	--cb-text: #1d2433;
	--cb-muted: #6b7488;
	--cb-border: rgba(20, 30, 60, 0.08);
	--cb-accent: #4f7cff;
	--cb-accent-2: #7a5cff;
	--cb-accent-text: #ffffff;
	--cb-radius: 16px;
	--cb-radius-sm: 10px;
	--cb-shadow: 0 1px 2px rgba(20, 30, 60, 0.04), 0 8px 24px rgba(20, 30, 60, 0.06);
	--cb-shadow-hover: 0 2px 4px rgba(20, 30, 60, 0.06), 0 12px 32px rgba(20, 30, 60, 0.12);
	--cb-font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--cb-font);
	color: var(--cb-text);
	background: linear-gradient(180deg, rgba(243, 245, 250, 0.35), rgba(243, 245, 250, 0.1)),
		url('../images/bg.webp') center / cover no-repeat fixed;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--cb-font);
	font-weight: 700;
	letter-spacing: -0.01em;
}

a {
	color: var(--cb-accent);
	transition: color .15s ease;
}

a:hover, a:focus {
	color: var(--cb-accent-2);
	text-decoration: none;
}

::selection {
	background: rgba(79, 124, 255, 0.25);
}

/* ---------- Navigace ---------- */
.navbar-default,
.navbar-static-top {
	position: sticky;
	top: 0;
	z-index: 1030;
	background: rgba(255, 255, 255, 0.78);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border: 0;
	border-bottom: 1px solid var(--cb-border);
	box-shadow: 0 1px 0 rgba(20, 30, 60, 0.02), 0 8px 24px rgba(20, 30, 60, 0.05);
	border-radius: 0;
}

.navbar-default .navbar-nav > li > a {
	color: var(--cb-text);
	font-weight: 500;
	border-radius: var(--cb-radius-sm);
	margin: 6px 2px;
	padding: 9px 14px;
	transition: background .15s ease, color .15s ease;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
	color: var(--cb-accent);
	background: rgba(79, 124, 255, 0.1);
}

.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
	background: rgba(79, 124, 255, 0.12);
	color: var(--cb-accent);
}

.navbar-default .navbar-nav > li > a.btn {
	background: linear-gradient(135deg, var(--cb-accent), var(--cb-accent-2));
	color: var(--cb-accent-text);
	border: 0;
	box-shadow: 0 4px 14px rgba(79, 124, 255, 0.35);
}

.navbar-default .navbar-nav > li > a.btn:hover {
	color: var(--cb-accent-text);
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.navbar-default .navbar-toggle {
	border-color: var(--cb-border);
	border-radius: var(--cb-radius-sm);
}

.navbar-default .navbar-toggle .icon-bar {
	background-color: var(--cb-text);
}

.dropdown-menu {
	background: var(--cb-surface-solid);
	border: 1px solid var(--cb-border);
	border-radius: 14px;
	padding: 8px;
	margin-top: 6px;
	box-shadow: var(--cb-shadow-hover);
}

.dropdown-menu > li > a {
	color: var(--cb-text);
	border-radius: 8px;
	padding: 9px 14px;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
	color: var(--cb-accent);
	background: rgba(79, 124, 255, 0.1);
}

.li_hr {
	margin: 6px 0;
	border-top: 1px solid var(--cb-border);
}

/* ---------- Karty a panely ---------- */
.panel-white,
.panel-side,
.panel-server {
	background: var(--cb-surface);
	-webkit-backdrop-filter: blur(12px) saturate(140%);
	backdrop-filter: blur(12px) saturate(140%);
	color: var(--cb-text);
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-bottom: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: var(--cb-radius);
	box-shadow: var(--cb-shadow);
}

/* Karta serveru v seznamu */
.panel-white .panel-server {
	position: relative;
	margin-bottom: 14px;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.panel-white .panel-server:hover {
	transform: translateY(-3px);
	box-shadow: var(--cb-shadow-hover);
	border-color: rgba(79, 124, 255, 0.45);
}

.panel-server .new-gif {
	border-radius: var(--cb-radius-sm);
	box-shadow: 0 4px 14px rgba(20, 30, 60, 0.18);
}

/* Čipy (IP, hráči, verze, kategorie) */
.btn-gray-blue,
.btn-gray-blue:hover {
	background: rgba(79, 124, 255, 0.12);
	color: var(--cb-accent);
	border: 1px solid rgba(79, 124, 255, 0.22);
	border-radius: 999px;
	font-weight: 600;
	margin: 0 2px 4px 0;
}

.btn-gray-blue:hover {
	background: rgba(79, 124, 255, 0.2);
}

.btn-gray {
	background: var(--cb-surface-2) !important;
	color: var(--cb-text);
	border: 1px solid var(--cb-border);
	border-radius: var(--cb-radius-sm);
}

.btn-servers {
	border-radius: 999px;
}

.panel-white {
	margin-bottom: 16px;
}

/* Vnořený panel v bílém panelu už nepotřebuje druhý rámeček */
.panel-white > .panel,
.panel-white > .panel-server {
	box-shadow: none;
	border: 0;
	background: transparent;
	margin-bottom: 0;
}

.panel {
	background: var(--cb-surface);
	color: var(--cb-text);
	border-radius: var(--cb-radius);
	box-shadow: var(--cb-shadow);
	border: 1px solid rgba(255, 255, 255, 0.55);
}

.panel-default {
	border-color: var(--cb-border);
}

.panel-heading {
	background: transparent;
	border-bottom: 1px solid var(--cb-border);
	border-radius: var(--cb-radius) var(--cb-radius) 0 0;
	text-transform: none;
	letter-spacing: -0.01em;
	font-weight: 700;
	text-align: left;
}

.panel-h {
	text-transform: none;
}

.panel-body-des {
	background: var(--cb-surface-2);
	color: var(--cb-text);
	border-radius: var(--cb-radius-sm);
}

.welcome-h1 {
	font-size: 2.2rem;
	background: linear-gradient(135deg, var(--cb-accent), var(--cb-accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* ---------- Seznam serverů ---------- */
.server td,
.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
	border-color: var(--cb-border);
}

.table > tbody > tr {
	transition: background .15s ease;
}

.table-hover > tbody > tr:hover {
	background: rgba(79, 124, 255, 0.05);
}

.server .banner {
	border-radius: var(--cb-radius-sm);
}

.new-slidebar,
.new-servers {
	border-radius: var(--cb-radius);
	transition: transform .2s ease, box-shadow .2s ease;
}

.new-slidebar:hover {
	transform: translateY(-2px);
	box-shadow: var(--cb-shadow-hover);
}

.vip-shadow {
	border-radius: var(--cb-radius);
}

/* ---------- Vyhledávání, formuláře ---------- */
.search-server {
	max-width: 100%;
	border-radius: 999px;
	border: 1px solid var(--cb-border);
	background: var(--cb-surface);
	color: var(--cb-text);
	box-shadow: var(--cb-shadow);
	text-align: left;
	padding: 6px 22px;
	font-family: var(--cb-font);
}

.search-server:focus {
	outline: 0;
	border-color: var(--cb-accent);
	box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.18);
}

.form-control {
	border-radius: var(--cb-radius-sm);
	border: 1px solid rgba(20, 30, 60, 0.15);
	box-shadow: none;
	background: var(--cb-surface);
	color: var(--cb-text);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus {
	border-color: var(--cb-accent);
	box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.18);
}

/* ---------- Tlačítka ---------- */
.btn {
	border-radius: var(--cb-radius-sm);
	font-weight: 600;
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background .15s ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn-default {
	background: var(--cb-surface);
	color: var(--cb-text);
	border: 1px solid var(--cb-border);
	box-shadow: 0 1px 2px rgba(20, 30, 60, 0.05);
}

.btn-default:hover,
.btn-default:focus {
	background: var(--cb-surface-2);
	color: var(--cb-accent);
	border-color: rgba(79, 124, 255, 0.4);
}

.btn-primary,
.btn-success {
	background: linear-gradient(135deg, var(--cb-accent), var(--cb-accent-2));
	border: 0;
	color: var(--cb-accent-text);
	box-shadow: 0 4px 14px rgba(79, 124, 255, 0.35);
}

.btn-primary:hover,
.btn-success:hover {
	filter: brightness(1.08);
	color: var(--cb-accent-text);
}

.btn-server-option {
	background: var(--cb-surface);
	color: var(--cb-text);
	border: 1px solid var(--cb-border);
	border-radius: var(--cb-radius-sm);
	margin-bottom: 8px;
	box-shadow: 0 1px 2px rgba(20, 30, 60, 0.05);
}

.btn-server-option:hover {
	background: var(--cb-surface-2);
	color: var(--cb-accent);
}

.badge {
	border-radius: 999px;
	padding: .3em .7em;
}

/* ---------- Seznamy, stránkování, modaly ---------- */
.list-group-item,
.list-group,
a.list-group-item:hover {
	background: var(--cb-surface);
	color: var(--cb-text);
	border-color: var(--cb-border);
}

.new-pagination li a,
.pagination > li > a,
.pagination > li > span {
	border-radius: var(--cb-radius-sm);
	border: 1px solid var(--cb-border);
	margin: 0 2px;
	color: var(--cb-text);
}

.new-pagination li.active a,
.new-pagination li a:hover,
.pagination > .active > a,
.pagination > .active > span {
	background: var(--cb-accent);
	border-color: var(--cb-accent);
	color: #fff;
}

.modal-content {
	border: 0;
	border-radius: 20px;
	background: var(--cb-surface-solid);
	color: var(--cb-text);
	box-shadow: 0 24px 64px rgba(10, 20, 50, 0.25);
}

.modal-header,
.modal-body,
.modal-footer {
	border-color: var(--cb-border);
	color: var(--cb-text);
}

/* ---------- Úvodní karta ---------- */
.hero-card {
	overflow: hidden;
	background-image: linear-gradient(135deg, rgba(79, 124, 255, 0.1), rgba(122, 92, 255, 0.08));
}

.hero-text {
	font-size: 1.15rem;
	line-height: 1.7;
	color: var(--cb-muted);
	max-width: 900px;
}

.hero-card .welcome-h1 {
	font-size: 2.4rem;
	padding-left: 0;
	margin-top: 10px;
}

/* ---------- Patička ---------- */
.footer-modern {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
}

.footer-brand {
	max-width: 420px;
}

.footer-brand strong {
	color: var(--cb-text);
	font-size: 1.1rem;
}

.footer-brand p {
	margin: 4px 0 0;
	font-size: 13px;
	line-height: 1.5;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
}

.footer-chip {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(79, 124, 255, 0.12);
	color: var(--cb-accent);
	font-weight: 600;
	font-size: 13px;
	margin-left: 6px;
}

.footer-copy {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--cb-border);
	font-size: 12px;
}

/* ---------- Postranní panel a tabulky ---------- */
.panel-side .panel-heading,
.panel-server > .panel-heading {
	padding: 14px 20px;
	font-size: 1.05rem;
}

.panel-body {
	padding: 18px 20px;
}

.table {
	background: transparent;
}

.table > thead > tr > th {
	color: var(--cb-muted);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .05em;
	border-bottom: 2px solid var(--cb-border);
}

.table-striped > tbody > tr:nth-of-type(odd) {
	background: rgba(79, 124, 255, 0.04);
}

/* ---------- Upozornění ---------- */
.alert2-warning,
.alert2-success,
.alert2-info,
.alert2-error {
	border-radius: var(--cb-radius-sm);
	box-shadow: var(--cb-shadow);
}

/* ---------- Přihlášení / registrace ---------- */
.panel-white.panel-white--bare {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}

.panel-white--bare > .panel-body {
	padding: 0;
}
.auth-wrap {
	display: flex;
	justify-content: center;
	padding: 24px 0 12px;
}

.auth-card {
	width: 100%;
	max-width: 440px;
	background: var(--cb-surface);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 22px;
	box-shadow: var(--cb-shadow-hover);
	padding: 32px 30px 28px;
}

.auth-wrap-wide .auth-card {
	max-width: 760px;
}

.auth-head h2 {
	margin: 0 0 22px;
	text-align: center;
	font-size: 1.7rem;
}

.auth-form .input-group {
	width: 100%;
	margin-bottom: 14px;
}

.auth-wrap .input-group {
	margin-bottom: 4px;
}

.input-group-addon {
	background: var(--cb-surface-2);
	border: 1px solid rgba(20, 30, 60, 0.15);
	border-right: 0;
	border-radius: var(--cb-radius-sm) 0 0 var(--cb-radius-sm);
	color: var(--cb-muted);
}

.input-group .form-control:last-child {
	border-radius: 0 var(--cb-radius-sm) var(--cb-radius-sm) 0;
}

.auth-form .form-control,
.auth-wrap .form-control {
	height: 46px;
}

.auth-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 4px 0 18px;
	font-size: 14px;
}

.auth-check {
	font-weight: 500;
	margin: 0;
	cursor: pointer;
}

.auth-btn {
	display: block;
	width: 100%;
	padding: 12px 16px;
	font-size: 15px;
	text-align: center;
	border-radius: var(--cb-radius-sm);
}

.auth-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.auth-actions .auth-btn {
	flex: 1 1 240px;
}

.auth-discord {
	background: #5865f2;
	color: #fff;
	border: 0;
	box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
}

.auth-discord:hover {
	background: #4752c4;
	color: #fff;
}

.auth-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 18px 0;
	color: var(--cb-muted);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.auth-divider::before,
.auth-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--cb-border);
}

/* ---------- Detail serveru ---------- */
.panel-side .table > tbody > tr > td:first-child {
	color: var(--cb-muted);
}

.panel-side .table > tbody > tr > td {
	padding: 11px 14px;
	vertical-align: middle;
}

.panel-side .table > tbody > tr:last-child > td {
	border-bottom: 0;
}

/* Inline barva odkazů ze starých šablon sjednocená s novým akcentem */
a[style*="#FD6C6C"],
a[style*="#fd6c6c"] {
	color: var(--cb-accent) !important;
	font-weight: 600;
}

#server_options {
	background: transparent;
	border: 0;
	box-shadow: none;
	min-height: 0;
	position: static;
}

#server_options .navbar-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
	padding: 0;
	float: none;
}

#server_options .btn-group {
	float: none;
}

.btn-server-op,
li.btn-server-op {
	background: var(--cb-surface);
	border: 1px solid var(--cb-border);
	border-radius: 999px;
	box-shadow: 0 1px 2px rgba(20, 30, 60, 0.06);
	color: var(--cb-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	padding: 9px 18px;
	transition: all .15s ease;
}

.btn-server-op:hover,
.btn-server-op:focus,
.btn-server-op.active {
	background: linear-gradient(135deg, var(--cb-accent), var(--cb-accent-2));
	border-color: transparent;
	color: #fff;
	box-shadow: 0 4px 14px rgba(79, 124, 255, 0.35);
}

.btn-server-op-mobile {
	display: block;
	border-radius: var(--cb-radius-sm);
	background: linear-gradient(135deg, var(--cb-accent), var(--cb-accent-2)) !important;
}

.intro-banner-vdo-play-btn {
	box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.18);
}

/* Tlačítka v detailu serveru */
#server_options .btn-server-op {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	list-style: none;
}

#server_options .btn-server-op svg {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
}

#server_options .btn-server-op--primary {
	background: linear-gradient(135deg, var(--cb-accent), var(--cb-accent-2));
	border-color: transparent;
	color: #fff;
	box-shadow: 0 4px 14px rgba(79, 124, 255, 0.35);
}

#server_options .btn-server-op--primary:hover {
	filter: brightness(1.1);
	transform: translateY(-1px);
}

#server_options .btn-server-op:not(.btn-server-op--primary):hover,
#server_options .btn-server-op.active {
	transform: translateY(-1px);
}

/* Záložka statistik */
.stats-tabs {
	margin: 0 0 18px !important;
	left: 0 !important;
}

.stats-tabs .navbar-nav {
	margin: 0 !important;
}

.stats-tabs a {
	text-decoration: none;
}

.panel-side > .panel-heading {
	font-size: 17px;
	font-weight: 700;
	padding: 14px 18px;
}

.panel-side .panel-body .tab-content {
	padding: 14px;
	border-radius: var(--cb-radius-sm);
	background: var(--cb-surface-2);
	border: 1px solid var(--cb-border);
}

.panel-side .tab-content p b {
	display: block;
	margin: 6px 0 10px;
	font-size: 15px;
}

.panel-side .tab-content canvas,
.panel-side .tab-content iframe,
.panel-side .tab-content svg {
	max-width: 100%;
}

/* Základní informace */
.sd-info {
	margin: 0;
	background: transparent;
}

.sd-info > tbody > tr > td {
	padding: 11px 18px;
	border-top: 1px solid var(--cb-border);
	vertical-align: middle;
}

.sd-info > tbody > tr:first-child > td {
	border-top: 0;
}

.sd-info > tbody > tr > td:first-child {
	color: var(--cb-muted);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.sd-info > tbody > tr > td:first-child strong {
	font-weight: 700;
}

.sd-info > tbody > tr > td:last-child {
	text-align: right;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.sd-info td.copyIP {
	cursor: pointer;
	color: var(--cb-accent);
}

.sd-info td.copyIP svg {
	width: 14px;
	height: 14px;
	margin-right: 6px;
	vertical-align: -2px;
}

/* Top 5 hlasujících */
.top-voters-wrap {
	padding: 10px 12px 14px;
}

.top-voters {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.top-voters__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 12px;
	background: var(--cb-surface-2);
	border: 1px solid var(--cb-border);
	transition: transform 0.15s, box-shadow 0.15s;
}

.top-voters__item:hover {
	transform: translateY(-1px);
	box-shadow: var(--cb-shadow);
}

.top-voters__pos {
	flex: 0 0 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--cb-border);
	font-size: 12px;
	font-weight: 800;
}

.top-voters__item--1 .top-voters__pos {
	background: #f5b800;
	color: #3a2b00;
}

.top-voters__item--2 .top-voters__pos {
	background: #b8c0cc;
	color: #26303d;
}

.top-voters__item--3 .top-voters__pos {
	background: #d08a4e;
	color: #3a1f06;
}

.top-voters__avatar {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	image-rendering: pixelated;
}

.top-voters__info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
	line-height: 1.25;
}

.top-voters__info strong {
	font-size: 14px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.top-voters__info small {
	color: var(--cb-muted);
	font-size: 11px;
}

.top-voters__votes {
	flex: 0 0 auto;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(79, 124, 255, 0.14);
	color: var(--cb-accent);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.top-voters__flag {
	flex: 0 0 20px;
	border-radius: 2px;
}

.top-voters__empty,
.top-voters__loading {
	padding: 14px;
	text-align: center;
	color: var(--cb-muted);
}

/* Statistiky: přepínač a grafy */
.stats-tabs .navbar-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.stats-tabs .btn-server-op {
	margin: 0;
	cursor: pointer;
}

.panel-side .tab-content {
	min-height: 220px;
}

.panel-side .tab-content .tab-pane > p:first-child b {
	margin-top: 0;
}

.panel-side .tab-content .alert2-info,
.panel-side .tab-content .alert2-error {
	margin-bottom: 12px;
	border-radius: var(--cb-radius-sm);
}

.nav-tabs {
	border-bottom: 1px solid var(--cb-border);
}

.nav-tabs > li > a {
	border-radius: var(--cb-radius-sm) var(--cb-radius-sm) 0 0;
	border: 0;
	color: var(--cb-muted);
	font-weight: 600;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
	background: var(--cb-surface-2);
	color: var(--cb-accent);
	border: 0;
	border-bottom: 2px solid var(--cb-accent);
}

/* ---------- Formuláře a obsah stránek ---------- */
label {
	font-weight: 600;
}

select.form-control {
	height: auto;
	min-height: 38px;
}

textarea.form-control {
	min-height: 120px;
}

.checkbox label {
	font-weight: 500;
}

blockquote {
	border-left: 4px solid var(--cb-accent);
	background: var(--cb-surface-2);
	border-radius: 0 var(--cb-radius-sm) var(--cb-radius-sm) 0;
}

.media {
	padding: 12px;
	border-radius: var(--cb-radius-sm);
	transition: background .15s ease;
}

.media:hover {
	background: rgba(79, 124, 255, 0.05);
}

/* ---------- Profil ---------- */
.panel-server .panel-body > span.pull-left,
.panel-server .panel-body > span.pull-right {
	line-height: 2.2;
}

.panel-server hr {
	border-top: 1px solid var(--cb-border);
}

.panel-server .pull-right a {
	font-weight: 600;
}

.media-object,
.img-circle,
.img-rounded {
	box-shadow: 0 2px 8px rgba(20, 30, 60, 0.15);
}

.alert {
	border: 0;
	border-radius: var(--cb-radius-sm);
}

.title-web {
	padding: 18px 0;
}

.title-web img {
	max-width: 100%;
	height: auto;
}

.image-page {
	border-radius: var(--cb-radius);
}

/* ---------- Patička ---------- */
.footer-sticky {
	height: auto;
	margin-top: 32px !important;
	padding-top: 1.25rem !important;
	padding-bottom: 1.25rem !important;
	background: var(--cb-surface);
	color: var(--cb-muted);
	border-top: 1px solid var(--cb-border);
	font-size: 14px;
}

.footer-sticky a {
	color: var(--cb-muted);
	font-weight: 500;
}

.footer-sticky a:hover {
	color: var(--cb-accent);
}

/* ---------- Přístupnost a mobil ---------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
	outline: 3px solid rgba(79, 124, 255, 0.5);
	outline-offset: 2px;
}

/* ---------- Přidání serveru: průvodce kroky ---------- */
.stepwizard {
	display: table;
	width: 100%;
	position: relative;
	margin-bottom: 24px;
}

.stepwizard-row {
	display: table-row;
}

.stepwizard-step {
	display: table-cell;
	text-align: center;
	position: relative;
	float: none;
}

.stepwizard-row:before {
	content: "";
	position: absolute;
	top: 20px;
	left: 12%;
	right: 12%;
	height: 2px;
	background: var(--cb-border);
	z-index: 0;
}

.stepwizard-step p {
	margin-top: 8px;
	color: var(--cb-muted);
	font-weight: 600;
}

.btn-circle {
	position: relative;
	z-index: 1;
	width: 40px;
	height: 40px;
	padding: 0;
	line-height: 40px;
	border-radius: 50% !important;
	font-weight: 700;
	border: 0;
	background: var(--cb-surface-solid);
	color: var(--cb-muted);
	box-shadow: 0 0 0 2px var(--cb-border) inset;
}

.btn-circle.btn-success {
	background: linear-gradient(135deg, var(--cb-accent), var(--cb-accent-2));
	color: #fff;
	box-shadow: 0 6px 16px rgba(79, 124, 255, 0.35);
}

.setup-content .nextBtn,
.setup-content .btn-success {
	margin-top: 8px;
	border-radius: 12px;
	font-weight: 600;
}

.setup-content .help-block {
	color: var(--cb-muted);
	font-size: 13px;
	margin: 2px 0 8px;
}

input[type="file"].form-control {
	height: auto;
	padding: 10px;
	border-style: dashed;
}

select[multiple].form-control {
	padding: 6px;
}

select[multiple].form-control option {
	padding: 6px 10px;
	border-radius: 8px;
}

select[multiple].form-control option:checked {
	background: var(--cb-accent) linear-gradient(0deg, var(--cb-accent), var(--cb-accent));
	color: #fff;
}

/* ---------- Kategorie ---------- */
.category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
	padding: 8px;
}

.category-grid > a {
	display: block;
	color: var(--cb-text);
}

.category-grid > a:hover {
	color: var(--cb-text);
}

.category-grid .category-tile {
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px;
	background: var(--cb-surface-2);
	border: 1px solid var(--cb-border);
	border-radius: var(--cb-radius);
	box-shadow: var(--cb-shadow);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.category-grid > a:hover .category-tile {
	transform: translateY(-4px);
	box-shadow: var(--cb-shadow-hover);
	border-color: var(--cb-accent);
}

.category-tile img {
	width: 56px;
	height: 56px;
	image-rendering: pixelated;
	padding: 8px;
	border-radius: 14px;
	background: rgba(79, 124, 255, 0.1);
}

.category-tile h4 {
	margin: 4px 0 0;
	font-size: 18px;
}

.category-tile p {
	margin: 0;
	color: var(--cb-muted);
	font-size: 14px;
	line-height: 1.5;
}

/* ---------- FAQ ---------- */
.faq-list {
	display: grid;
	gap: 12px;
}

.faq-item {
	background: var(--cb-surface-2);
	border: 1px solid var(--cb-border);
	border-left: 4px solid var(--cb-accent);
	border-radius: var(--cb-radius-sm);
	padding: 16px 20px;
}

.faq-item h4 {
	margin: 0 0 8px;
	font-size: 17px;
	text-decoration: none;
}

.faq-item p {
	margin: 0;
	line-height: 1.65;
	color: var(--cb-text);
}

.faq-item textarea {
	width: 100%;
	margin-top: 8px;
	border-radius: var(--cb-radius-sm);
	border: 1px solid var(--cb-border);
	background: var(--cb-surface-solid);
	color: var(--cb-text);
	padding: 8px;
}

.faq-item img,
img.wiki {
	max-width: 100%;
	height: auto;
	border-radius: var(--cb-radius-sm);
	margin-top: 10px;
}

/* ---------- Wiki menu ---------- */
a.wiki {
	display: block;
	padding: 7px 12px;
	margin: 2px 0;
	border-radius: 8px;
	cursor: pointer;
	color: var(--cb-text);
	transition: background .15s ease, color .15s ease;
}

a.wiki:hover,
li.active > a.wiki {
	background: rgba(79, 124, 255, 0.12);
	color: var(--cb-accent);
}

/* ---------- Textové stránky (VOP, soukromí, pravidla) ---------- */
.panel-server .panel-body {
	line-height: 1.7;
}

.panel-server .panel-body b {
	color: var(--cb-text);
}

/* ---------- Kontakt, Moje servery, karta serveru ---------- */
.contact-wrap {
	max-width: 720px;
	margin: 0 auto;
	padding: 8px 4px;
}

.contact-title {
	margin: 0 0 4px;
}

.contact-sub {
	color: var(--cb-muted);
	margin-bottom: 20px;
}

.contact-form .control-label {
	text-align: left;
	font-weight: 600;
}

.contact-form textarea.form-control {
	min-height: 140px;
	resize: vertical;
}

.contact-btn {
	padding: 10px 28px;
	border-radius: 12px;
	border: 0;
	font-weight: 600;
	background: linear-gradient(135deg, var(--cb-accent), var(--cb-accent-2));
	color: #fff;
}

.contact-btn:hover {
	color: #fff;
	filter: brightness(1.08);
}

.page-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 15px 16px;
}

.page-head h1 {
	margin: 0;
	font-size: 26px;
}

.page-head .btn-primary {
	border: 0;
	border-radius: 12px;
	font-weight: 600;
	background: linear-gradient(135deg, var(--cb-accent), var(--cb-accent-2));
}

.panel-server .server-desc {
	color: var(--cb-muted);
	line-height: 1.55;
}

.panel-server .btn-gray {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding-left: 0;
	padding-right: 0;
	white-space: normal;
}

.panel-server .new-gif {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(20, 30, 60, 0.15);
}

.panel-server h4 a {
	font-weight: 700;
}

/* ---------- Seznam serverů: karty ---------- */
.srv-toolbar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin: 0 0 14px;
}

.srv-toolbar__label {
	color: var(--cb-muted);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.srv-toolbar__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.srv-chip {
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--cb-surface);
	border: 1px solid var(--cb-border);
	color: var(--cb-text);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s, color 0.15s, transform 0.15s;
}

.srv-chip:hover {
	color: var(--cb-text);
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: var(--cb-shadow);
}

.srv-chip.is-active {
	background: linear-gradient(135deg, var(--cb-accent), var(--cb-accent-2));
	border-color: transparent;
	color: #fff;
}

.srv-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 18px;
}

.srv-card {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) 230px;
	grid-template-areas:
		"rank banner side"
		"rank body side";
	column-gap: 18px;
	row-gap: 10px;
	padding: 16px 18px;
	background: var(--cb-surface);
	border: 1px solid var(--cb-border);
	border-radius: var(--cb-radius);
	box-shadow: var(--cb-shadow);
	transition: transform 0.18s, box-shadow 0.18s;
}

.srv-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--cb-shadow-hover);
}

.srv-card--highlight {
	border-color: rgba(255, 184, 0, 0.55);
	box-shadow: 0 0 0 1px rgba(255, 184, 0, 0.25), var(--cb-shadow);
}

.srv-card__rank {
	grid-area: rank;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.srv-card__rank > span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--cb-surface-2);
	border: 1px solid var(--cb-border);
	font-size: 20px;
	font-weight: 800;
	color: var(--cb-text);
}

.srv-status {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.srv-status::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.srv-status.is-online {
	color: #22a861;
}

.srv-status.is-offline {
	color: #e5484d;
}

.srv-card__banner {
	grid-area: banner;
	display: block;
	border-radius: 12px;
	overflow: hidden;
	line-height: 0;
	box-shadow: 0 2px 10px rgba(20, 30, 60, 0.15);
}

.srv-card__banner img {
	width: 100%;
	height: auto;
	aspect-ratio: 468 / 60;
	object-fit: cover;
	display: block;
}

.srv-card__body {
	grid-area: body;
	min-width: 0;
}

.srv-card__title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 700;
}

.srv-card__title > a:first-child {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--cb-text);
	text-decoration: none;
}

.srv-card__title > a:first-child:hover {
	color: var(--cb-accent);
}

.srv-badge {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.6;
	text-decoration: none;
}

.srv-badge--hl {
	background: rgba(255, 184, 0, 0.18);
	color: #c98a00;
}

.srv-badge--edit {
	background: var(--cb-surface-2);
	color: var(--cb-text);
	border: 1px solid var(--cb-border);
}

.srv-badge--ok {
	background: rgba(34, 168, 97, 0.14);
	color: #22a861;
}

.srv-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.srv-tag {
	padding: 3px 10px;
	border-radius: 8px;
	background: var(--cb-surface-2);
	border: 1px solid var(--cb-border);
	color: var(--cb-muted);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.srv-tag--main {
	background: rgba(79, 124, 255, 0.12);
	border-color: rgba(79, 124, 255, 0.25);
	color: var(--cb-accent);
}

.srv-card__desc {
	margin: 0;
	color: var(--cb-muted);
	line-height: 1.55;
	font-size: 14px;
	overflow-wrap: anywhere;
}

.srv-card__desc p {
	display: inline;
	margin: 0;
}

.srv-card__side {
	grid-area: side;
	grid-row: 1 / span 2;
	display: flex;
	flex-direction: column;
	gap: 10px;
	justify-content: center;
}

.srv-ip {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px dashed rgba(79, 124, 255, 0.55);
	background: rgba(79, 124, 255, 0.08);
	color: var(--cb-text);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.15s;
}

.srv-ip:hover {
	background: rgba(79, 124, 255, 0.16);
}

.srv-ip span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.srv-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
}

.srv-stat {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 6px 8px;
	border-radius: 10px;
	background: var(--cb-surface-2);
	border: 1px solid var(--cb-border);
	font-size: 12.5px;
	font-weight: 600;
	color: var(--cb-text);
	white-space: nowrap;
	overflow: hidden;
}

.srv-vote {
	display: block;
	text-align: center;
	padding: 10px 14px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--cb-accent), var(--cb-accent-2));
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.15s, transform 0.15s;
}

.srv-vote:hover {
	color: #fff;
	text-decoration: none;
	filter: brightness(1.1);
	transform: translateY(-1px);
}

/* Nejnovější servery v postranním panelu */
.side-box .panel-heading {
	font-size: 1.05rem;
	font-weight: 700;
}

.side-sort,
.side-new {
	list-style: none;
	margin: 0;
	padding: 0;
}

.side-sort li a {
	display: block;
	padding: 8px 12px;
	margin-bottom: 4px;
	border-radius: 10px;
	color: var(--cb-text);
	font-weight: 600;
	text-decoration: none;
}

.side-sort li a:hover {
	background: var(--cb-surface-2);
}

.side-sort li.is-active a {
	background: linear-gradient(135deg, var(--cb-accent), var(--cb-accent-2));
	color: #fff;
}

.side-new li a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	margin-bottom: 4px;
	border-radius: 10px;
	color: var(--cb-text);
	text-decoration: none;
	transition: background 0.15s;
}

.side-new li a:hover {
	background: var(--cb-surface-2);
}

.side-new img,
.side-new__letter {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 8px;
}

.side-new__letter {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--cb-accent);
	color: #fff;
	font-weight: 700;
}

.side-new__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
}

.side-new__text strong {
	font-size: 14px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.side-new__text small {
	color: var(--cb-muted);
	font-size: 12px;
}

.side-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #22a861;
}

.side-dot.is-offline {
	background: #e5484d;
}

/* Nejnovější servery na mobilu */
.srv-newstrip {
	margin-bottom: 14px;
}

.srv-newstrip__title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--cb-muted);
	margin-bottom: 8px;
}

.srv-newstrip__items {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 4px;
}

.srv-newchip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex: 0 0 auto;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--cb-surface);
	border: 1px solid var(--cb-border);
	color: var(--cb-text);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.srv-newchip img,
.srv-newchip__letter {
	width: 20px;
	height: 20px;
	border-radius: 6px;
}

.srv-newchip__letter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--cb-accent);
	color: #fff;
	font-size: 11px;
}

/* ---------- Detail serveru: hlavička ---------- */
.sd-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"head stats"
		"actions actions";
	gap: 16px 24px;
	align-items: center;
	margin: 14px 0 20px;
	padding: 20px 22px;
	background: var(--cb-surface);
	border: 1px solid var(--cb-border);
	border-radius: var(--cb-radius);
	box-shadow: var(--cb-shadow);
}

.sd-hero__head {
	grid-area: head;
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.sd-hero__icon img {
	width: 56px;
	height: 56px;
	border-radius: 14px;
}

.sd-hero__title h1 {
	margin: 0 0 8px;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.15;
	overflow-wrap: anywhere;
}

.sd-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.sd-hero__stats {
	grid-area: stats;
	display: flex;
	gap: 10px;
}

.sd-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 88px;
	padding: 10px 14px;
	border-radius: 12px;
	background: var(--cb-surface-2);
	border: 1px solid var(--cb-border);
}

.sd-stat__value {
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
}

.sd-stat__label {
	font-size: 11px;
	color: var(--cb-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.sd-hero__actions {
	grid-area: actions;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.srv-ip--lg {
	width: auto;
	flex: 1 1 280px;
	padding: 13px 18px;
	font-size: 16px;
}

.srv-vote--lg {
	flex: 0 1 240px;
	padding: 13px 22px;
	font-size: 16px;
}

/* Detail serveru: sjednocení bočních panelů */
.panel-side {
	border-radius: var(--cb-radius);
	overflow: hidden;
}

.panel-side .image-page,
#load_banner .image-page {
	width: 100%;
	height: auto;
	border-radius: var(--cb-radius-sm);
}

@media (max-width: 991px) {
	.srv-card {
		grid-template-columns: 52px minmax(0, 1fr);
		grid-template-areas:
			"rank banner"
			"body body"
			"side side";
	}

	.srv-card__side {
		grid-row: auto;
	}

	.sd-hero {
		grid-template-columns: 1fr;
		grid-template-areas:
			"head"
			"stats"
			"actions";
	}

	.sd-hero__stats {
		flex-wrap: wrap;
	}
}

@media (max-width: 767px) {
	.srv-card {
		padding: 14px;
		column-gap: 12px;
	}

	.srv-card__rank > span {
		width: 44px;
		height: 44px;
		font-size: 17px;
	}

	.sd-hero {
		padding: 16px;
	}

	.sd-hero__title h1 {
		font-size: 22px;
	}

	.sd-stat {
		flex: 1 1 0;
		min-width: 0;
	}

	.srv-vote--lg {
		flex: 1 1 100%;
	}
}

@media (max-width: 767px) {
	.page-head {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

@media (max-width: 767px) {
	.panel-white,
	.panel,
	.panel-server {
		border-radius: 14px;
	}

	.welcome-h1,
	.hero-card .welcome-h1 {
		font-size: 1.6rem;
	}

	.footer-modern {
		flex-direction: column;
		align-items: flex-start;
	}

	.search-server {
		width: 100%;
	}

	.navbar-default .navbar-nav > li > a {
		margin: 2px 0;
	}
}

/* ---------- Mobilní rozhraní ---------- */
@media (max-width: 767px) {
	html,
	body {
		overflow-x: hidden;
		max-width: 100%;
	}

	/* Pevné šířky ze starých šablon, které rozšiřovaly stránku */
	.modal-dialog,
	.search-server,
	.center-images,
	.center-images-server,
	.server .banner,
	.new-gif {
		width: auto !important;
		max-width: 100%;
	}

	.modal-dialog {
		margin: 10px;
	}

	img,
	video,
	iframe {
		max-width: 100%;
		height: auto;
	}

	/* Horní menu: pevný pruh s názvem a tlačítkem */
	.navbar-default {
		min-height: 56px;
		margin-bottom: 10px;
	}

	.navbar-default .container {
		padding-left: 14px;
		padding-right: 14px;
	}

	.navbar-default .navbar-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		float: none;
		min-height: 56px;
		margin: 0;
	}

	.navbar-default .navbar-header::before {
		content: "CraftBook.cz";
		font-size: 18px;
		font-weight: 800;
		letter-spacing: 0.01em;
		background: linear-gradient(135deg, var(--cb-accent), var(--cb-accent-2));
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
	}

	.navbar-default .navbar-toggle {
		display: block;
		float: none;
		margin: 0;
		padding: 11px 12px;
		border-radius: 12px;
		background: var(--cb-surface-2);
	}

	.navbar-default .navbar-collapse {
		border-top: 1px solid var(--cb-border);
		padding: 6px 0 10px;
		max-height: 75vh;
		overflow-y: auto;
		box-shadow: none;
	}

	.navbar-default .navbar-nav {
		margin: 0;
	}

	.navbar-default .navbar-nav > li > a {
		margin: 2px 0;
		padding: 12px 14px;
		font-size: 15px;
	}

	.navbar-default .navbar-nav .open .dropdown-menu {
		background: var(--cb-surface-2);
		border: 0;
		box-shadow: none;
		margin: 2px 0 6px;
	}

	.navbar-default .navbar-nav .open .dropdown-menu > li > a {
		font-size: 14px;
		padding: 10px 16px;
		color: var(--cb-text);
	}

	.navbar-default .navbar-nav > li > a.btn {
		text-align: center;
		margin: 6px 0;
	}

	html {
		-webkit-text-size-adjust: 100%;
	}

	body {
		font-size: 14px;
		line-height: 1.45;
	}

	.container,
	.container-fluid {
		padding-left: 10px;
		padding-right: 10px;
	}

	/* Staré šablony používají úzké sloupce i na mobilu */
	.col-3,
	.col-4,
	.col-5,
	.col-8,
	.col-12,
	.col-xs-8,
	.col-xs-11,
	.col-xs-12 {
		width: 100%;
		float: none;
		margin-left: 0;
		left: auto !important;
	}

	/* Odstranění vnořených mezer (container + row + col + panel) */
	.row {
		margin-left: 0;
		margin-right: 0;
	}

	[class*="col-"] {
		padding-left: 0;
		padding-right: 0;
	}

	.panel-white {
		margin-left: 0;
		margin-right: 0;
		margin-bottom: 10px;
		border-radius: 16px;
	}

	.panel-white > .panel-body,
	.panel-body {
		padding: 8px;
	}

	.container-fluid {
		padding-left: 8px;
		padding-right: 8px;
	}

	.title-web {
		padding: 8px 0;
		margin-bottom: 4px;
		text-align: center;
	}

	.title-web img {
		max-width: 200px;
	}

	.hero-text {
		font-size: 0.95rem;
		line-height: 1.5;
	}

	h1 { font-size: 22px; }
	h2 { font-size: 19px; }
	h3 { font-size: 17px; }
	.panel-heading { font-size: 16px; }

	.btn {
		font-size: 14px;
		padding: 9px 14px;
	}

	.form-control {
		font-size: 16px;
	}

	/* Hlavička a hero */
	.hero-card {
		padding: 6px 8px;
		margin: 6px 0 10px;
	}

	.hero-card .panel-heading {
		padding: 8px 8px 4px;
	}

	.welcome-h1,
	.hero-card .welcome-h1 {
		font-size: 1.35rem;
	}

	/* Seznam serverů */
	.srv-toolbar {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.srv-toolbar__chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		max-width: 100%;
		padding-bottom: 4px;
		-webkit-overflow-scrolling: touch;
	}

	.srv-chip {
		flex: 0 0 auto;
		padding: 6px 12px;
		font-size: 12.5px;
	}

	.srv-list {
		gap: 12px;
	}

	.srv-card {
		grid-template-columns: 44px minmax(0, 1fr);
		grid-template-areas:
			"rank banner"
			"body body"
			"side side";
		padding: 10px;
		column-gap: 8px;
		row-gap: 8px;
		border-radius: 14px;
	}

	.srv-card__rank > span {
		width: 40px;
		height: 40px;
		font-size: 16px;
		border-radius: 12px;
	}

	.srv-card__rank .srv-status {
		font-size: 9px;
	}

	.srv-card__banner {
		align-self: center;
	}

	.srv-card__title {
		font-size: 17px;
	}

	.srv-card__desc {
		font-size: 13.5px;
	}

	.srv-stats {
		grid-template-columns: repeat(4, 1fr);
		gap: 5px;
	}

	.srv-stat {
		flex-direction: column;
		gap: 2px;
		padding: 6px 2px;
		font-size: 11.5px;
	}

	.srv-stat svg {
		width: 14px;
		height: 14px;
	}

	.srv-ip,
	.srv-vote {
		padding: 11px 12px;
		font-size: 14px;
	}

	/* Detail serveru */
	.sd-hero {
		padding: 14px;
		gap: 12px;
		margin: 8px 0 14px;
	}

	.sd-hero__head {
		gap: 12px;
	}

	.sd-hero__icon img {
		width: 44px;
		height: 44px;
	}

	.sd-hero__title h1 {
		font-size: 20px;
		margin-bottom: 6px;
	}

	.sd-hero__stats {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
	}

	.sd-stat {
		min-width: 0;
		padding: 8px 4px;
	}

	.sd-stat__value {
		font-size: 16px;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 100%;
		white-space: nowrap;
	}

	.sd-stat__label {
		font-size: 10px;
	}

	.sd-hero__actions {
		flex-direction: column;
	}

	.srv-ip--lg,
	.srv-vote--lg {
		flex: 0 0 auto;
		width: 100%;
		font-size: 15px;
	}

	.btn-server-op-mobile {
		position: static !important;
		min-width: 0 !important;
		max-width: 100% !important;
		width: 100%;
		margin: 0 0 10px !important;
	}

	.sd-info > tbody > tr > td {
		padding: 10px 14px;
	}

	.top-voters__item {
		gap: 8px;
		padding: 8px 10px;
	}

	.top-voters__flag {
		display: none;
	}

	/* Přepínač grafů a záložek se posouvá do strany */
	.stats-tabs .navbar-nav {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		-webkit-overflow-scrolling: touch;
	}

	.stats-tabs .btn-group {
		flex: 0 0 auto;
	}

	.stats-tabs .btn-server-op {
		font-size: 13px;
		padding: 8px 14px;
	}

	.panel-side .panel-body .tab-content {
		padding: 8px;
	}

	.table-responsive {
		border: 0;
	}

	/* Vedlejší prvky */
	.srv-newstrip {
		margin-top: 4px;
	}

	.footer-modern {
		padding: 18px 14px;
	}
}

/* ---------- Vlastní mobilní menu ---------- */
.mnav {
	position: sticky;
	top: 0;
	z-index: 1040;
	background: var(--cb-surface-solid);
	border-bottom: 1px solid var(--cb-border);
	box-shadow: var(--cb-shadow);
}

.mnav__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 54px;
	padding: 0 12px;
}

.mnav__brand {
	font-size: 19px;
	font-weight: 800;
	color: var(--cb-text);
	letter-spacing: -0.01em;
}

.mnav__brand span {
	background: linear-gradient(135deg, var(--cb-accent), var(--cb-accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.mnav__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.mnav__icon,
.mnav__burger {
	width: 38px;
	height: 38px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	border: 1px solid var(--cb-border);
	border-radius: 12px;
	background: var(--cb-surface-2);
	color: var(--cb-text);
	padding: 0;
}

.mnav__burger span {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--cb-text);
	transition: transform .2s, opacity .2s;
}

.mnav.is-open .mnav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mnav.is-open .mnav__burger span:nth-child(2) { opacity: 0; }
.mnav.is-open .mnav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mnav__panel {
	display: none;
	padding: 4px 12px 14px;
	max-height: calc(100vh - 54px);
	overflow-y: auto;
	border-top: 1px solid var(--cb-border);
}

.mnav.is-open .mnav__panel {
	display: block;
}

.mnav__search input {
	width: 100%;
	margin: 10px 0;
	padding: 10px 14px;
	font-size: 16px;
	color: var(--cb-text);
	background: var(--cb-surface-2);
	border: 1px solid var(--cb-border);
	border-radius: 12px;
	outline: 0;
}

.mnav__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.mnav__grid a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 70px;
	padding: 8px 4px;
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--cb-text);
	background: var(--cb-surface-2);
	border: 1px solid var(--cb-border);
	border-radius: 12px;
}

.mnav__grid a i {
	font-size: 18px;
	color: var(--cb-accent);
}

.mnav__cta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 12px;
}

.mnav__btn {
	display: block;
	padding: 11px 8px;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	color: var(--cb-accent-text);
	background: linear-gradient(135deg, var(--cb-accent), var(--cb-accent-2));
	border-radius: 12px;
}

.mnav__btn:hover,
.mnav__btn:focus {
	color: var(--cb-accent-text);
}

.mnav__btn--ghost {
	color: var(--cb-text);
	background: var(--cb-surface-2);
	border: 1px solid var(--cb-border);
}

.mnav__btn--ghost:hover,
.mnav__btn--ghost:focus {
	color: var(--cb-text);
}

.mnav__lang {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 12px;
}

.mnav__lang a {
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 700;
	color: var(--cb-muted);
	border: 1px solid var(--cb-border);
	border-radius: 999px;
}

/* ---------- Kompaktní karty serverů na telefonu ---------- */
@media (max-width: 767px) {
	.srv-list {
		gap: 8px;
	}

	.srv-card {
		grid-template-columns: 36px minmax(0, 1fr);
		grid-template-areas:
			"rank body"
			"side side";
		padding: 8px 10px;
		column-gap: 8px;
		row-gap: 6px;
	}

	.srv-card:hover {
		transform: none;
	}

	.srv-card__banner,
	.srv-card__desc,
	.srv-card__tags .srv-tag:not(.srv-tag--main) {
		display: none;
	}

	.srv-card__rank {
		gap: 3px;
	}

	.srv-card__rank > span {
		width: 32px;
		height: 32px;
		font-size: 14px;
		border-radius: 10px;
	}

	.srv-card__rank .srv-status {
		font-size: 8px;
		padding: 1px 4px;
	}

	.srv-card__title {
		font-size: 15px;
		margin: 0 0 3px;
	}

	.srv-card__title img {
		width: 20px;
		height: 20px;
	}

	.srv-card__tags {
		margin: 0;
	}

	.srv-card__side {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"stats stats"
			"ip vote";
		gap: 6px;
	}

	.srv-card__side .srv-stats {
		grid-area: stats;
		gap: 4px;
	}

	.srv-card__side .srv-ip {
		grid-area: ip;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.srv-card__side .srv-vote {
		grid-area: vote;
	}

	.srv-card__side .srv-ip,
	.srv-card__side .srv-vote {
		padding: 7px 10px;
		font-size: 13px;
	}

	.srv-stat {
		padding: 4px 2px;
		font-size: 11px;
	}
}
