/* ============================================================
   Online Tennis Manager — UI Redesign
   Color palette sourced from app icon (deep navy + gold/amber)
   Layout inspired by the Chatroom/News Center screenshot:
   users-left | content-right, top bar, fixed bottom bar.
   NO tile/card style — sections flow with subtle dividers.
   ============================================================ */

:root {
	/* Backgrounds — deep navy, like the icon's dark base */
	--bg:           #07091a;
	--bg2:          #0b0f26;
	--bg3:          #10153e;

	/* Surfaces */
	--surface:      rgba(11, 15, 40, 0.88);

	/* Borders */
	--border:       rgba(80, 110, 220, 0.18);
	--border-lite:  rgba(80, 110, 220, 0.30);

	/* Brand colors — gold burst from icon */
	--gold:         #f5c518;
	--gold2:        #e8900a;
	--gold-glow:    rgba(245, 197, 24, 0.14);

	/* Accents */
	--green:        #3dba4c;
	--green-glow:   rgba(61, 186, 76, 0.28);
	--blue-acc:     #4d7eff;
	--danger:       #ff5252;

	/* Typography */
	--text:         #dce4ff;
	--muted:        #7a88b8;
	--white:        #ffffff;

	/* Radii */
	--r-sm:  8px;
	--r:     12px;
	--r-lg:  18px;

	/* Legacy aliases kept so any remaining tplMobile partials don't break */
	--bg-soft:       #0b0f26;
	--surface-light: #dce4ff;
	--line:          rgba(80, 110, 220, 0.18);
	--green-deep:    #1e8f2e;
	--blue:          #4d7eff;
	--blue-deep:     #2250c8;
	--shadow:        0 8px 32px rgba(0, 0, 0, 0.55);
	--radius-xl:     20px;
	--radius-lg:     16px;
	--radius-md:     12px;
	--radius-sm:     8px;
}

/* ============================================================
   RESET
   ============================================================ */

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	height: 100%;
}

body {
	min-height: 100%;
	/* Navy base + gold aura from icon top-center + blue depth on sides */
	background-color: var(--bg);
	background-image:
		radial-gradient(ellipse 90% 55% at 50% -8%,  rgba(245, 197, 24, 0.09)  0%, transparent 60%),
		radial-gradient(ellipse 60% 80% at   0% 45%,  rgba(50,  80, 220, 0.10)  0%, transparent 52%),
		radial-gradient(ellipse 50% 65% at 100% 70%,  rgba(50,  80, 220, 0.07)  0%, transparent 50%);
	color: var(--text);
	font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
	overflow-x: hidden;
}

a   { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, li { list-style: none; }

.hidden,
.clear {
	display: none !important;
}

/* ============================================================
   BACKGROUND DIV (kept in HTML for compat, hidden via CSS)
   ============================================================ */

.app-background { display: none; }
	width: 320px;
	height: 320px;
	top: 8%;
	left: -80px;
	background: radial-gradient(circle, rgba(140, 198, 63, 0.4) 0%, rgba(140, 198, 63, 0) 68%);
}

.bg-orb-blue {
	width: 360px;
	height: 360px;
	right: -120px;
	top: 18%;
	background: radial-gradient(circle, rgba(36, 137, 206, 0.35) 0%, rgba(36, 137, 206, 0) 70%);
	animation-delay: -6s;
}

.bg-grid {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 40px 40px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 85%);
}

.page-shell {
	position: relative;
	z-index: 1;
}

.header-shell,
.page-shell,
.footer-shell,
.drawer-shell {
	width: min(1180px, calc(100% - 24px));
	margin: 0 auto;
}

.site-header {
	flex-shrink: 0;
	z-index: 100;
	background: rgba(7, 9, 26, 0.97);
	backdrop-filter: blur(24px);
	border-bottom: 1px solid var(--border);
}

.header-shell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0.5em;
	min-height: var(--header-h, 42px);
	width: 100%;
	max-width: 100%;
	margin: 0;
	border-radius: 0;
	background: transparent;
	backdrop-filter: none;
	box-shadow: none;
	border: none;
}

.brand-kicker,
.panel-kicker,
.hero-kicker,
.drawer-section-title,
.match-time {
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 11px;
	color: var(--muted);
}

.brand-title {
	font-size: 30px;
	line-height: 1;
	font-weight: 700;
	color: var(--surface-light);
}

.primary-nav {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	width: min(640px, 100%);
}

.nav-chip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.04);
	cursor: pointer;
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-chip:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.08);
}

.nav-chip > * {
	pointer-events: none;
}

.nav-chip-label {
	font-size: 13px;
	font-weight: 700;
}

.nav-chip-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 700;
	color: #061019;
	background: linear-gradient(135deg, var(--gold), #fff2a2);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.nav-chip-career .nav-chip-icon,
.button-hero {
	background: linear-gradient(135deg, var(--green), #d5f091);
}

.nav-chip-finances .nav-chip-icon {
	background: linear-gradient(135deg, var(--gold), #fff1aa);
}

.nav-chip-statistics .nav-chip-icon {
	background: linear-gradient(135deg, var(--blue), #80c9ff);
}

.nav-chip-personal .nav-chip-icon {
	background: linear-gradient(135deg, #e7eef2, #ffffff);
}

.nav-drawer {
	display: none;
	position: fixed;
	bottom: var(--bottom-nav-h, 58px);
	left: 0;
	right: 0;
	z-index: 108;
	max-height: calc(100dvh - var(--header-h, 42px) - var(--bottom-nav-h, 58px));
	overflow-y: auto;
}

.drawer-shell {
	padding: 16px;
	border-radius: var(--radius-xl);
	border: 1px solid var(--line);
	background: rgba(10, 20, 29, 0.94);
	backdrop-filter: blur(20px);
	box-shadow: var(--shadow);
}

.drawer-section {
	display: grid;
	gap: 8px;
}

.drawer-section a {
	display: block;
	color: var(--text);
}

.drawer-section li {
	list-style: none;
	padding: 14px 16px;
	border-radius: var(--radius-sm);
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
	transition: background 0.2s ease, border-color 0.2s ease;
}

.drawer-section li:hover {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.15);
}

.page-shell {
	flex: 1;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 0;
	min-height: 0;
}

.hero-bar {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	align-items: flex-end;
	padding: 28px;
	margin-bottom: 18px;
	border-radius: var(--radius-xl);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(9, 18, 27, 0.75));
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: var(--shadow);
}

.hero-copy h1 {
	margin: 8px 0 8px;
	font-size: clamp(28px, 5vw, 48px);
	line-height: 0.98;
	max-width: 10ch;
}

.hero-copy p {
	margin: 0;
	max-width: 52ch;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.6;
}

.navbar {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.navbar a,
.button,
#dialogButtonWrapper button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	background: linear-gradient(135deg, var(--gold2), var(--gold));
	color: #09121b;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
	cursor: pointer;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.navbar a:hover,
.button:hover,
#dialogButtonWrapper button:hover {
	transform: translateY(-1px);
	filter: brightness(1.08);
}

.dashboard-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
	gap: 18px;
	align-items: start;
}

.dashboard-main,
.dashboard-side {
	display: grid;
	gap: 18px;
}

.panel {
	padding: 22px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: var(--shadow);
	backdrop-filter: blur(16px);
}

.panel-header {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	margin-bottom: 18px;
}

.panel-header h2 {
	margin: 6px 0 0;
	font-size: 22px;
	line-height: 1.1;
}

.panel-header.compact {
	margin-bottom: 14px;
}

.panel-action {
	background: linear-gradient(135deg, rgba(140, 198, 63, 0.12), rgba(36, 137, 206, 0.1) 58%, rgba(255, 215, 0, 0.08));
}

.mailbox-card {
	display: block;
}

.panel-notice {
	padding: 18px 22px;
	background: linear-gradient(135deg, rgba(255, 215, 0, 0.14), rgba(255, 255, 255, 0.05));
}

.notice-count {
	font-size: 18px;
	font-weight: 700;
	margin-top: 8px;
}

.discord-link {
	width: 56px;
	height: 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	border-radius: 16px;
	background: rgba(88, 101, 242, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.discord-link img {
	width: 100%;
	height: auto;
}

.online-panel {
	margin-bottom: 14px;
	padding: 16px;
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.07);
}

.collapsible {
	margin: 0;
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
}

.collapsible span {
	display: inline-block;
	margin-right: 8px;
	color: var(--gold);
}

.collapsible_content {
	padding-top: 12px;
	color: var(--muted);
}

.shoutbox-form {
	display: grid;
	gap: 12px;
	margin-bottom: 16px;
}

.shoutbox-input-wrap input,
.shoutbox-controls select,
#inputValue {
	width: 100%;
	min-height: 52px;
	padding: 0 16px;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(6, 14, 21, 0.75);
	color: var(--text);
	outline: none;
	font-size: 15px;
}

.shoutbox-controls {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 180px;
	gap: 12px;
}

#messages {
	display: grid;
	gap: 10px;
}

.message-item {
	padding: 14px 16px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.07);
}

.message-item .time {
	margin-bottom: 8px;
	font-size: 12px;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.message-item .time a {
	color: var(--surface-light);
	font-weight: 700;
	margin-left: 6px;
	text-transform: none;
	letter-spacing: 0;
	font-size: 13px;
}

.message-item .message {
	color: var(--text);
	line-height: 1.55;
	word-break: break-word;
}

.shoutbox-more {
	margin-top: 12px;
	text-align: center;
	font-size: 13px;
	color: var(--muted);
}

.shoutbox-more a {
	color: var(--gold);
	margin: 0 4px;
	font-weight: 700;
}

.task-stack {
	display: grid;
	gap: 10px;
}

.task {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.07);
}

.task .name {
	font-weight: 700;
	color: var(--surface-light);
}

.task .value {
	font-variant-numeric: tabular-nums;
	color: var(--gold);
	font-weight: 700;
}

.match-card {
	display: grid;
	gap: 14px;
}

.match-name {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	font-weight: 700;
}

.flag {
	width: 24px;
	height: 18px;
	object-fit: cover;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.match-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: 12px;
	align-items: center;
}

.match-player p {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.4;
}

.match-versus {
	font-size: 28px;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.3);
}

.score-track {
	height: 16px;
	border-radius: 999px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.07);
}

.score_left,
.score_right {
	height: 100%;
	min-width: 44px;
	padding: 0 8px;
	display: flex;
	align-items: center;
	font-size: 11px;
	font-weight: 700;
	color: #061019;
	white-space: nowrap;
}

.score_left {
	background: linear-gradient(90deg, var(--green), #c8ea80);
}

.score_right {
	justify-content: flex-end;
	margin-left: auto;
	background: linear-gradient(90deg, var(--blue), #8bd5ff);
}

.site-footer {
	display: none;
}

.footer-shell {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	padding: 14px 18px;
	border-radius: 20px;
	background: rgba(8, 15, 22, 0.82);
	border: 1px solid rgba(255, 255, 255, 0.07);
}

.server-time,
.footer-links {
	font-size: 13px;
	color: var(--muted);
}

.footer-links a {
	color: var(--surface-light);
}

#cover {
	position: fixed;
	inset: 0;
	display: none;
	background: rgba(2, 7, 11, 0.7);
	backdrop-filter: blur(8px);
	z-index: 40;
}

#loading {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 41;
}

#loading > div {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 18px 26px;
	border-radius: 16px;
	background: rgba(7, 16, 23, 0.94);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: var(--shadow);
	font-weight: 700;
}

#dialogCustom {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(420px, calc(100% - 28px));
	padding: 22px;
	border-radius: 22px;
	background: rgba(9, 18, 27, 0.98);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: var(--shadow);
	z-index: 42;
}

#dialogCustom .header {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 12px;
}

.dialog-body {
	display: grid;
	gap: 14px;
}

#dialogCustom .text {
	color: var(--muted);
	line-height: 1.55;
}

#dialogButtonWrapper {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}

#errorMessage {
	width: 100%;
	padding: 10px 12px;
	border-radius: 12px;
	background: rgba(255, 107, 107, 0.15);
	color: #ffb6b6;
	border: 1px solid rgba(255, 107, 107, 0.24);
}

#yellowArrow {
	position: absolute;
	width: 18px;
	height: 18px;
	background: var(--gold);
	border-radius: 50%;
	box-shadow: 0 0 0 10px rgba(255, 215, 0, 0.16), 0 0 32px rgba(255, 215, 0, 0.45);
	z-index: 45;
}

.ui-dialog {
	background: rgba(9, 18, 27, 0.98);
	color: var(--text);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	box-shadow: var(--shadow);
}

.ui-dialog .ui-dialog-titlebar,
.ui-widget-header {
	background: rgba(255, 255, 255, 0.05);
	border: 0;
	color: var(--surface-light);
}

.ui-widget-content {
	color: var(--text);
	background: transparent;
	border: 0;
}

#player_online a,
#messages a,
#match a,
.footer-links a,
.server-time a {
	color: var(--surface-light);
}

#player_online {
	display: grid;
	gap: 6px;
}

@keyframes floatOrb {
	0%,
	100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(24px);
	}
}

@media (max-width: 980px) {
	.header-shell,
	.hero-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.primary-nav {
		width: 100%;
	}

	.dashboard-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	.hero-bar,
	.panel,
	.footer-shell,
	.drawer-shell {
		padding-left: 16px;
		padding-right: 16px;
	}

	.page-shell {
		padding-top: 12px;
	}

	.primary-nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hero-copy h1 {
		max-width: none;
	}

	.hero-actions,
	.navbar,
	.shoutbox-controls,
	.match-row,
	#dialogButtonWrapper,
	.footer-shell {
		grid-template-columns: 1fr;
		flex-direction: column;
		align-items: stretch;
	}

	.shoutbox-controls {
		display: grid;
	}

	.match-row {
		display: grid;
		grid-template-columns: 1fr;
	}

	.match-versus {
		text-align: center;
	}

	.site-footer {
		position: static;
		padding-top: 0;
		background: transparent;
		backdrop-filter: none;
	}

	.page-shell {
		padding-bottom: 22px;
	}
}

/* ============================================================
   MOBILE GAME SHELL — app-style chrome
   Everything except the news-feed stays fixed/sticky.
   Only .news-feed scrolls.
   ============================================================ */

:root {
	--header-h:     42px;
	--titlebar-h:   48px;
	--bottom-nav-h: 58px;
}

/* Full-height app shell — no page scroll */
html:has(body.new-app-shell) {
	height: 100%;
	overflow: hidden;
}

body.new-app-shell {
	height: 100%;
	min-height: unset;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
}

/* Slim top header */
body.new-app-shell .site-header {
	position: relative;
	z-index: 100;
}

body.new-app-shell .header-shell {
	padding: 0.5em;
	padding-top: calc(0.5em + env(safe-area-inset-top, 0px));
	min-height: var(--header-h);
	border-radius: 0;
	border: none;
	background: transparent;
	backdrop-filter: none;
	box-shadow: none;
	width: 100%;
	max-width: 100%;
	margin: 0;
}

/* page-shell fills remaining height */
body.new-app-shell .page-shell {
	flex: 1;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 0;
	min-height: 0;
	zoom: 1.25;
}

/* Nav drawer slides up from above bottom nav */
body.new-app-shell .nav-drawer {
	position: fixed;
	bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
	left: 0;
	right: 0;
	z-index: 108;
	max-height: calc(100dvh - var(--header-h) - var(--bottom-nav-h) - env(safe-area-inset-bottom, 0px));
	overflow-y: auto;
}

body.new-app-shell .drawer-shell {
	width: 100%;
	max-width: 100%;
	margin: 0;
	border-radius: var(--r-lg) var(--r-lg) 0 0;
	border: 1px solid var(--border-lite);
	border-bottom: none;
	background: rgba(8, 12, 36, 0.98);
	backdrop-filter: blur(28px);
	box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.5);
	padding: 0 16px 16px;
}

/* ── Drawer tab bar ── */
.drawer-top-tabs {
	display: flex;
	align-items: center;
	padding: 0;
	border-bottom: 1px solid var(--border);
	margin-bottom: 12px;
	position: sticky;
	top: 0;
	background: rgba(8, 12, 36, 0.98);
	z-index: 2;
}

.drawer-tab-btn {
	flex: 1;
	padding: 12px 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s;
	white-space: nowrap;
	text-align: center;
}

.drawer-tab-btn.active,
.drawer-tab-btn:hover {
	color: var(--gold);
	border-bottom-color: var(--gold);
}

.drawer-close-btn {
	flex-shrink: 0;
	padding: 10px 10px;
	color: var(--muted);
	background: none;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s;
}

.drawer-close-btn:hover { color: var(--text); }

/* ── Fixed bottom navigation ── */
.mobile-bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 110;
	background: rgba(7, 9, 26, 0.97);
	backdrop-filter: blur(24px);
	border-top: 1px solid var(--border);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-bottom-nav-inner {
	display: flex;
	align-items: stretch;
	height: var(--bottom-nav-h);
}

.mob-nav-btn {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 8px 4px;
	font-size: 11px;
	font-weight: 600;
	color: var(--muted);
	background: none;
	border: none;
	cursor: pointer;
	transition: color 0.2s;
}

.mob-nav-btn:hover,
.mob-nav-btn.active {
	color: var(--gold);
}

.mob-nav-btn svg { display: block; flex-shrink: 0; }

/* ── game-page fills page-shell ── */
.game-page {
	flex: 1;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

/* ── Screen title bar — sticky below header ── */
.screen-titlebar {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 4px;
	height: var(--titlebar-h);
	background: rgba(7, 9, 26, 0.97);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--border);
	z-index: 99;
}

.screen-title {
	flex: 1;
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--text);
}

.screen-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: var(--r-sm);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--border);
	color: var(--muted);
	transition: background 0.2s, color 0.2s;
	text-decoration: none;
	flex-shrink: 0;
}

.screen-btn:hover {
	background: rgba(255, 255, 255, 0.12);
	color: var(--text);
}

/* mailbox unread badge */
.screen-btn-badge {
	position: relative;
}
.screen-btn-badge::after {
	content: '';
	position: absolute;
	top: 6px;
	right: 6px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--danger);
	border: 1px solid var(--bg);
}

/* ── Two-column content area ── */
.content-columns {
	flex: 1;
	display: flex;
	overflow: hidden;
	min-height: 0;
	position: relative;
}

/* ── Left: online users (collapsed by default) ── */
.users-col {
	width: 224px;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 20;
	background: var(--bg);
	display: none;
	flex-direction: column;
	gap: 8px;
	padding: 12px 8px 12px 12px;
	border-right: 1px solid var(--border);
	overflow-y: auto;
	box-shadow: 4px 0 12px rgba(0,0,0,.4);
}

.users-col.open {
	display: flex;
}

.users-col-close {
	position: absolute;
	top: 8px;
	right: 8px;
	background: none;
	border: none;
	color: var(--muted);
	cursor: pointer;
	padding: 2px;
	line-height: 1;
	font-size: 18px;
	transition: color .15s;
}
.users-col-close:hover {
	color: var(--text);
}

.col-section-title {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted);
}

/* user list scrolls inside its own box → pins actions at bottom */
.user-list-wrap {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
}

.user-count-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	color: var(--muted);
	padding: 6px 0;
	border-top: 1px solid var(--border);
	flex-shrink: 0;
}

.online-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--green);
	flex-shrink: 0;
	box-shadow: 0 0 5px var(--green-glow);
}

/* ── Online count badge on users icon ── */
.screen-btn--users {
	position: relative;
}
.online-count-badge {
	position: absolute;
	top: -4px;
	right: -6px;
	background: #e8900a;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
	padding: 2px 4px;
	border-radius: 999px;
	pointer-events: none;
}

/* ── Online player list items ── */
.online-player-item a {
	display: block;
	padding: 4px 0;
	font-size: 11px;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.online-player-country {
	font-size: 10px;
	opacity: 0.6;
	margin-left: 2px;
}

.users-col-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex-shrink: 0;
}

.instant-btn {
	width: auto;
	padding: 8px 20px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--gold2), var(--gold));
	color: #09121b;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
	border: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
	transition: filter 0.2s;
	white-space: nowrap;
}

.instant-btn:hover { filter: brightness(1.08); }

/* ── Right: news / chat column ── */
.news-col {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* Chat input bar at top (form comes before feed in HTML) */
.chat-input-bar {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 8px;
	border-bottom: 1px solid var(--border);
	background: rgba(7, 9, 26, 0.97);
	flex-wrap: nowrap;
	overflow: visible;
}

.chat-input {
	flex: 1 1 0;
	min-width: 0;
	min-height: 36px;
	padding: 0 8px;
	border-radius: var(--r-sm);
	border: 1px solid var(--border-lite);
	background: rgba(255, 255, 255, 0.05);
	color: var(--text);
	font-size: 14px;
	font-family: inherit;
	outline: none;
	transition: border-color 0.2s;
	overflow: hidden;
	text-overflow: ellipsis;
}

.chat-input:focus { border-color: var(--gold); }

.chat-lang-select {
	height: 36px;
	padding: 0 2px;
	border-radius: var(--r-sm);
	border: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.05);
	color: var(--muted);
	font-size: 11px;
	font-family: inherit;
	outline: none;
	cursor: pointer;
	width: 56px;
	flex-shrink: 0;
	min-width: 0;
}

.chat-send-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: var(--r-sm);
	background: linear-gradient(135deg, var(--gold2), var(--gold));
	color: #09121b;
	border: none;
	cursor: pointer;
	transition: filter 0.2s;
	flex-shrink: 0;
}

.chat-send-btn:hover { filter: brightness(1.08); }

/* ── Chat feed — the ONLY scrolling element ── */
.news-feed {
	flex: 1;
	overflow-y: auto;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 0;
}

.news-feed .message-item {
	padding: 8px 12px;
	border-radius: var(--r-sm);
}

.message-meta {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 3px;
}

.message-meta .time {
	font-size: 11px;
	color: var(--muted);
	text-transform: none;
	letter-spacing: 0;
	margin: 0;
}

.message-meta .sep {
	font-size: 10px;
	color: var(--border-lite);
}

.message-meta a {
	font-size: 13px;
	font-weight: 600;
	color: #8a96b6;
}

.message-body {
	font-size: 13px;
	color: var(--text);
	line-height: 1.5;
	word-break: break-word;
}

/* Online users collapsed by default in game shell.
   Class renamed to online-user-toggle to avoid jQuery .collapsible handler conflict. */
.game-page .collapsible_content {
	display: none;
}

.online-user-toggle {
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	color: var(--muted);
	padding: 4px 0;
	user-select: none;
}

/* Instant match bar — strip directly below screen-titlebar */
.instant-match-bar {
	flex-shrink: 0;
	padding: 6px 12px;
	border-bottom: 1px solid var(--border);
	background: rgba(7, 9, 26, 0.97);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Mailbox button: always visible, red badge shows unread count */
.screen-btn--mail {
	position: relative;
}
.mail-count-badge {
	position: absolute;
	top: -4px;
	right: -6px;
	background: #e53232;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
	padding: 2px 4px;
	border-radius: 999px;
	pointer-events: none;
}
.mail-count-badge:empty {
	display: none;
}

/* Small screens */
@media (max-width: 480px) {
	.users-col { width: 180px; }
}

@media (max-width: 360px) {
	.users-col { display: none; }
}

/* ══════════════════════════════════════════════
   Subscription / Tournament Browser
   ══════════════════════════════════════════════ */

.sub-page-body {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.sub-page-body > * {
	flex-shrink: 0;
}

/* Section containers */
.sub-section {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Section headers */
.sub-section-header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	padding: 0 0 6px 0;
	border-bottom: 2px solid var(--border);
	color: var(--muted);
	cursor: pointer;
	user-select: none;
	transition: opacity .15s;
}
.sub-section-header:hover {
	opacity: .8;
}
.sub-section-header .sub-section-chevron {
	margin-left: auto;
	transition: transform .2s;
	flex-shrink: 0;
}
.sub-section.collapsed .sub-section-chevron {
	transform: rotate(-90deg);
}
.sub-section.collapsed .sub-tournament-list {
	display: none;
}
.sub-section-collapse-btn {
	margin-left: auto;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
}
.sub-section-header--upcoming {
	border-color: var(--green);
	color: var(--green);
}
.sub-section-header--upcoming svg {
	stroke: var(--green);
}
.sub-section-header--browse {
	border-color: var(--muted);
}
.sub-section-header--browse svg {
	stroke: var(--muted);
}
.sub-section-header--running {
	border-color: var(--gold2);
	color: var(--gold2);
}
.sub-section-header--running svg {
	stroke: var(--gold2);
}
.sub-section-header--past {
	border-color: var(--muted);
	color: var(--muted);
}
.sub-section-header--past svg {
	stroke: var(--muted);
}

/* Week navigator */
.sub-week-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	border: 1px solid var(--border);
	background: transparent;
	color: var(--text);
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	transition: background .15s, border-color .15s;
}
.sub-week-nav:hover {
	background: rgba(245, 197, 24, .1);
	border-color: var(--gold);
}

.sub-week-select {
	padding: 4px 8px;
	border-radius: 6px;
	border: 1px solid var(--border);
	background: var(--bg2);
	color: var(--text);
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
}

/* Tournament list */
.sub-tournament-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Single tournament card */
.sub-tournament-card {
	display: block;
	text-decoration: none;
	padding: 8px 10px;
	border-radius: 8px;
	background: var(--bg2);
	border: 1px solid var(--border);
	transition: border-color .15s, background .15s;
	color: var(--text);
}
.sub-tournament-card:hover {
	border-color: var(--gold);
	background: rgba(245, 197, 24, .04);
}

.sub-t-top {
	display: flex;
	align-items: center;
	gap: 6px;
}
.sub-t-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1;
	min-width: 0;
}
.sub-tournament-card--my .sub-t-name {
	color: var(--gold);
}
.sub-tournament-card--friend .sub-t-name {
	color: var(--blue-acc);
}
.sub-t-friends img {
	width: 14px;
	height: 14px;
	vertical-align: middle;
	opacity: .85;
}

/* Meta row: date / surface / level */
.sub-t-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	color: var(--muted);
	margin-top: 3px;
}
.sub-t-divider {
	opacity: .4;
}
.sub-t-level {
	font-weight: 600;
	letter-spacing: .03em;
}

/* Slots bar */
.sub-t-slots {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 5px;
}
.sub-t-slots-bar {
	flex: 1;
	height: 4px;
	border-radius: 2px;
	background: rgba(255,255,255,.08);
	overflow: hidden;
}
.sub-t-slots-fill {
	height: 100%;
	border-radius: 2px;
	transition: width .3s;
}
.sub-t-slots-text {
	font-size: 11px;
	font-weight: 600;
}

/* Responsive */
@media (max-width: 480px) {
	.sub-page-body {
		padding: 8px;
	}
	.sub-tournament-card {
		padding: 6px 8px;
	}
}

/* ══════════════════════════════════════════════
   Calendar — Weekly View
   ══════════════════════════════════════════════ */

.cal-week {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Single day row */
.cal-day {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 8px;
	overflow: hidden;
}

.cal-day-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: var(--bg3);
	border-bottom: 1px solid var(--border);
}
.cal-day-name {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--gold);
}
.cal-day-num {
	font-size: 18px;
	font-weight: 900;
	color: var(--text);
}

/* Events container */
.cal-day-events {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 6px 10px;
}
.cal-day-events:empty {
	padding: 0;
}

/* Single event */
.cal-event {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 12px;
	border-left: 3px solid var(--muted);
	background: rgba(255,255,255,.03);
	transition: background .15s;
}
.cal-event-link {
	text-decoration: none;
	display: block;
}
.cal-event-link:hover .cal-event {
	background: rgba(255,255,255,.06);
}
.cal-event-time {
	font-weight: 700;
	font-size: 11px;
	color: var(--muted);
	white-space: nowrap;
	min-width: 38px;
}
.cal-event-title {
	color: var(--text);
	word-break: break-word;
	line-height: 1.35;
}

/* Event color variants — left border accent */
.cal-event--cyan    { border-left-color: #4dd0e1; }
.cal-event--cyan .cal-event-time { color: #4dd0e1; }

.cal-event--green   { border-left-color: var(--green); }
.cal-event--green .cal-event-time { color: var(--green); }

.cal-event--white   { border-left-color: #ccc; }

.cal-event--pink    { border-left-color: #e879a0; }
.cal-event--pink .cal-event-time { color: #e879a0; }

.cal-event--yellow  { border-left-color: var(--gold); }
.cal-event--yellow .cal-event-time { color: var(--gold); }

.cal-event--beige   { border-left-color: #8a96b6; }
.cal-event--beige .cal-event-title { color: var(--muted); font-style: italic; }

.cal-event--default { border-left-color: var(--muted); }

/* ══════════════════════════════════════════════
   Profile Page
   ══════════════════════════════════════════════ */

/* Compact Identity Bar */
.prof-id-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 8px 12px;
	margin-bottom: 0;
}
.prof-id-avatar {
	width: 36px;
	height: 36px;
	border-radius: 6px;
	object-fit: cover;
	border: 2px solid var(--border-lite);
	flex-shrink: 0;
}
.prof-id-info {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1;
	min-width: 0;
}
.prof-id-name {
	font-size: 15px;
	font-weight: 800;
	color: var(--gold);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.prof-id-actions {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}
.prof-act-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	background: var(--bg3);
	border: 1px solid var(--border);
	color: var(--muted);
	text-decoration: none;
	transition: background .15s, color .15s;
}
.prof-act-icon:hover {
	background: rgba(80,110,220,.15);
	color: var(--text);
}

/* General Card (inside Panel 1) */
.prof-general-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 10px 12px;
	margin-bottom: 10px;
}
.prof-detail {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-size: 12px;
	color: var(--text);
	line-height: 1.7;
}
.prof-detail a {
	color: var(--blue-acc);
	text-decoration: none;
}
.prof-lbl {
	color: var(--muted);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .04em;
	white-space: nowrap;
}

/* Action Buttons */
.prof-actions {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	flex-wrap: wrap;
	align-items: center;
}
.prof-act {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 10px;
	border-radius: 6px;
	background: var(--bg3);
	border: 1px solid var(--border);
	color: var(--text);
	font-size: 11px;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s;
}
.prof-act:hover { background: rgba(80,110,220,.15); }
.prof-act--primary {
	background: rgba(245,197,24,.12);
	border-color: rgba(245,197,24,.3);
	color: var(--gold);
}
.prof-act--primary:hover { background: rgba(245,197,24,.2); }
.prof-act--small {
	font-size: 11px;
	padding: 5px 10px;
	background: var(--bg3);
	border: 1px solid var(--border);
	color: var(--text);
	border-radius: 6px;
	cursor: pointer;
}

/* Tab Bar — 2 rows of 3 */
.prof-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 8px;
	margin: 10px 0 2px;
	overflow: visible;
	position: sticky;
	top: 0;
	z-index: 5;
}
.prof-tab {
	flex: 1 1 33.33%;
	max-width: 33.33%;
	box-sizing: border-box;
	text-align: center;
	padding: 9px 4px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--muted);
	cursor: pointer;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
	transition: color .15s, border-color .15s;
	text-decoration: none;
}
.prof-tab:hover { color: var(--text); }
.prof-tab--active {
	color: var(--gold);
	border-bottom-color: var(--gold);
}

/* Panels */
.prof-panel {
	padding: 10px 0 4px;
}

/* ── Skills ── */
.prof-skill {
	margin-bottom: 6px;
}
.prof-skill-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 3px;
}
.prof-skill-name {
	font-size: 12px;
	color: var(--text);
	font-weight: 600;
}
.prof-skill-nums {
	display: flex;
	gap: 6px;
	align-items: baseline;
}
.prof-skill-val {
	font-size: 13px;
	font-weight: 800;
	color: var(--text);
	min-width: 28px;
	text-align: right;
}
.prof-skill-bonus {
	font-size: 11px;
	color: var(--green);
	font-weight: 600;
}
.prof-skill-bonus:empty { display: none; }
.prof-skill-train {
	font-size: 10px;
	color: var(--muted);
}
.prof-skill-train:empty { display: none; }
.prof-skill-bar {
	height: 5px;
	background: var(--bg);
	border-radius: 3px;
	overflow: hidden;
}
.prof-skill-fill {
	height: 100%;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--blue-acc), #6b8cff);
	transition: width .4s ease;
}
.prof-skill--avg {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--border);
}
.prof-skill--avg .prof-skill-name {
	color: var(--gold);
	font-size: 13px;
}
.prof-skill--avg .prof-skill-val {
	color: var(--gold);
	font-size: 14px;
}

/* ── Info Rows (Season / Career) ── */
.prof-info-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 8px 0;
	border-bottom: 1px solid var(--border);
	font-size: 13px;
	color: var(--text);
}
.prof-info-row:last-child { border-bottom: none; }
.prof-info-row a {
	color: var(--blue-acc);
	text-decoration: none;
}

/* ── Collapsible Sections (Career, Stats) ── */
.prof-collapse {
	border: 1px solid var(--border);
	border-radius: 8px;
	margin-top: 10px;
	overflow: hidden;
}
.prof-collapse-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 12px;
	background: var(--bg3);
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	color: var(--gold);
}
.prof-chevron {
	transition: transform .2s;
}
.prof-collapse.collapsed .prof-chevron {
	transform: rotate(-90deg);
}
.prof-collapse-body {
	padding: 10px 12px;
}
.prof-collapse.collapsed .prof-collapse-body {
	display: none;
}

/* Trophy rows (team cups, titles) */
.prof-trophy-row {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 5px 0;
	font-size: 12px;
	color: var(--text);
}
.prof-trophy-row a {
	color: var(--blue-acc);
	text-decoration: none;
}
.prof-trophy-row svg { flex-shrink: 0; }

/* ── Tournament Link ── */
.prof-tournament-link {
	color: var(--blue-acc);
	text-decoration: none;
	font-weight: 600;
}

/* ── Last Results ── */
.prof-result-row {
	display: block;
	padding: 8px 10px;
	margin-bottom: 4px;
	border-radius: 6px;
	background: var(--bg2);
	border: 1px solid var(--border);
	text-decoration: none;
	transition: background .15s;
}
.prof-result-row:hover { background: rgba(80,110,220,.1); }
.prof-result-tour,
.prof-result-lb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--text);
}
.prof-result-name {
	flex: 1;
	color: var(--text);
}
.prof-result-pts {
	font-weight: 700;
	color: var(--gold);
	white-space: nowrap;
}
.prof-result-date {
	font-size: 10px;
	color: var(--muted);
	margin-top: 3px;
}

/* ── Stats Grid ── */
.prof-stats-grid {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.prof-stat-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 6px 0;
	border-bottom: 1px solid var(--border);
	font-size: 12px;
}
.prof-stat-row:last-child { border-bottom: none; }
.prof-stat-label { color: var(--muted); }
.prof-stat-value { color: var(--text); font-weight: 600; }
.prof-stat-row--hl .prof-stat-label { color: var(--gold); font-weight: 700; }
.prof-stat-row--hl .prof-stat-value { color: var(--gold); }

/* ── Surface select ── */
.prof-select {
	background: var(--bg);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 6px 10px;
	font-size: 12px;
	width: 100%;
}

/* ── Surface Grid (H2H) ── */
.prof-surface-grid {
	margin: 8px 0;
	padding: 8px 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}
.prof-surface-row {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: var(--muted);
	padding: 3px 0;
}

/* ── H2H Opponents ── */
.prof-h2h-list {
	margin-top: 8px;
}
.prof-h2h-opponent {
	border-bottom: 1px solid var(--border);
	padding: 8px 0;
}
.prof-h2h-opponent:last-child { border-bottom: none; }
.prof-h2h-main {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: var(--text);
	font-size: 13px;
}
.prof-h2h-name {
	flex: 1;
	font-weight: 600;
}
.prof-h2h-record {
	font-weight: 800;
	color: var(--gold);
}
.prof-h2h-surfaces {
	display: flex;
	gap: 12px;
	margin-top: 4px;
	padding-left: 28px;
	font-size: 10px;
	color: var(--muted);
}

/* ============================================================
   TEAM PAGE
   ============================================================ */

/* ── Error ── */
.tm-error {
	color: var(--danger);
	font-size: 13px;
	padding: 0 2px;
	min-height: 0;
}
.tm-error:empty { display: none; }

/* ── Card Container ── */
.tm-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: var(--r);
	margin-bottom: 10px;
	overflow: hidden;
}
.tm-card-head {
	padding: 10px 12px;
	font-size: 13px;
	font-weight: 700;
	color: var(--gold);
	border-bottom: 1px solid var(--border);
	text-transform: uppercase;
	letter-spacing: .04em;
}

/* ── Inputs & Buttons ── */
.tm-input {
	flex: 1;
	background: var(--bg);
	border: 1px solid var(--border-lite);
	border-radius: 6px;
	color: var(--text);
	padding: 8px 10px;
	font-size: 13px;
	outline: none;
}
.tm-input:focus { border-color: var(--gold); }

.tm-select {
	background: var(--bg);
	border: 1px solid var(--border-lite);
	border-radius: 6px;
	color: var(--text);
	padding: 6px 8px;
	font-size: 12px;
}

.tm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 14px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid var(--border-lite);
	background: var(--bg3);
	color: var(--text);
	white-space: nowrap;
	transition: background .15s, border-color .15s;
}
.tm-btn:hover { border-color: var(--gold); color: var(--gold); }
.tm-btn--gold {
	background: linear-gradient(135deg, var(--gold), var(--gold2));
	color: #000;
	border: none;
	font-weight: 700;
}
.tm-btn--gold:hover { opacity: .9; color: #000; }
.tm-btn--danger { border-color: var(--danger); color: var(--danger); }
.tm-btn--danger:hover { background: rgba(255,82,82,.15); }
.tm-btn--sm { padding: 4px 10px; font-size: 11px; }

/* ── Create Team ── */
.tm-create-form {
	display: flex;
	gap: 8px;
	padding: 12px;
	align-items: center;
}

/* ── Received Invitations ── */
.tm-recv-invite {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	border-bottom: 1px solid var(--border);
}
.tm-recv-invite:last-child { border-bottom: none; }
.tm-recv-name { color: var(--text); font-weight: 600; font-size: 13px; }
.tm-recv-actions { display: flex; gap: 10px; }
.tm-recv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	transition: background .15s;
}
.tm-recv-btn--decline { color: var(--danger); background: rgba(255,82,82,.1); }
.tm-recv-btn--decline:hover { background: rgba(255,82,82,.25); }
.tm-recv-btn--accept { color: var(--green); background: rgba(61,186,76,.1); }
.tm-recv-btn--accept:hover { background: rgba(61,186,76,.25); }

/* ── Chemistry ── */
.tm-chem {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	font-size: 12px;
}
.tm-chem-label { color: var(--muted); white-space: nowrap; }
.tm-chem-bar {
	flex: 1;
	height: 6px;
	background: var(--bg);
	border-radius: 3px;
	overflow: hidden;
}
.tm-chem-fill {
	height: 100%;
	border-radius: 3px;
	transition: width .3s;
}
.tm-chem-value { font-weight: 700; min-width: 28px; text-align: right; }

/* ── Members ── */
.tm-members { padding: 4px 0; }
.tm-member {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-bottom: 1px solid var(--border);
}
.tm-member:last-child { border-bottom: none; }
.tm-member-rest input[type="radio"] { accent-color: var(--gold); }
.tm-member-info {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1;
	min-width: 0;
}
.tm-member-name {
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tm-member-activity {
	display: flex;
	gap: 3px;
	align-items: center;
}
.tm-member-activity .square_green,
.tm-member-activity .square_red {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 2px;
}
.tm-member-activity .square_green { background: var(--green); }
.tm-member-activity .square_red { background: var(--danger); }

/* ── Legend ── */
.tm-legend {
	display: flex;
	gap: 14px;
	justify-content: center;
	padding: 6px 0 12px;
	font-size: 11px;
	color: var(--muted);
}
.tm-legend-item { display: flex; align-items: center; gap: 5px; }
.tm-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 2px;
}
.tm-dot--green { background: var(--green); }
.tm-dot--red { background: var(--danger); }
.tm-dot--blue { background: var(--blue-acc); }

/* ── Matches ── */
.tm-matches { padding: 0; }
.tm-match {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 9px 12px;
	border-bottom: 1px solid var(--border);
	font-size: 13px;
}
.tm-match:last-child { border-bottom: none; }
.tm-match-players {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1;
	min-width: 0;
}
.tm-match-players a {
	color: var(--text);
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tm-match-vs { color: var(--muted); font-size: 11px; }
.tm-match-result {
	font-weight: 700;
	font-size: 12px;
	white-space: nowrap;
	margin-left: 8px;
}
.tm-match-result.tm-live { color: var(--green); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── Team Chat ── */
.tm-chat-form {
	display: flex;
	gap: 8px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--border);
}
.tm-msg {
	padding: 8px 12px;
	border-bottom: 1px solid var(--border);
}
.tm-msg:last-child { border-bottom: none; }
.tm-msg-head {
	display: flex;
	gap: 8px;
	align-items: baseline;
	margin-bottom: 2px;
}
.tm-msg-time { font-size: 11px; color: var(--muted); }
.tm-msg-sender { font-size: 12px; font-weight: 600; color: var(--blue-acc); }
.tm-msg-text { font-size: 13px; color: var(--text); line-height: 1.4; }
.tm-chat-more {
	text-align: center;
	padding: 8px;
	font-size: 12px;
	color: var(--muted);
}
.tm-chat-more a { color: var(--blue-acc); margin: 0 3px; }

/* ── Invite Players ── */
.tm-invite-desc {
	padding: 8px 12px;
	font-size: 12px;
	color: var(--muted);
	line-height: 1.4;
}
.tm-invite-list { padding: 0; }
.tm-invite-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	border-bottom: 1px solid var(--border);
}
.tm-invite-row:last-child { border-bottom: none; }
.tm-invite-info {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
}
.tm-invite-info a { color: var(--text); font-weight: 600; }
.tm-invite-rank { color: var(--muted); font-size: 12px; }

/* ── Filter Form ── */
.tm-filter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	padding: 8px 12px;
}
.tm-filter-form label { font-size: 12px; color: var(--muted); }

/* ── Collapsible ── */
.tm-collapse-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	color: var(--gold);
	text-transform: uppercase;
	letter-spacing: .04em;
}
.tm-collapse-chevron { transition: transform .2s; }
.tm-collapse.open .tm-collapse-chevron { transform: rotate(180deg); }
.tm-collapse-body {
	display: none;
	border-top: 1px solid var(--border);
}
.tm-collapse.open .tm-collapse-body { display: block; }

/* ── Settings ── */
.tm-setting-row {
	padding: 10px 12px;
	border-bottom: 1px solid var(--border);
}
.tm-setting-row:last-child { border-bottom: none; }
.tm-check-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--text);
	cursor: pointer;
}
.tm-check-label input[type="checkbox"] { accent-color: var(--gold); }
.tm-inline-form {
	display: flex;
	gap: 8px;
	align-items: center;
}

/* ============================================================
   TRAINING PAGE
   ============================================================ */

/* ── Message ── */
.tr-msg {
	font-size: 13px;
	padding: 0 2px 4px;
	min-height: 0;
}
.tr-msg:empty { display: none; }

/* ── Intensity Indicator ── */
.tr-intensity-bar {
	display: flex;
	align-items: baseline;
	gap: 4px;
	padding: 8px 0 4px;
	font-size: 13px;
}
.tr-intensity-label {
	color: var(--muted);
	font-weight: 600;
	margin-right: 4px;
}
.tr-intensity-val {
	font-weight: 800;
	font-size: 18px;
	color: var(--green);
	transition: color .2s;
}
.tr-intensity-max {
	color: var(--muted);
	font-size: 14px;
}

/* ── Skill Rows ── */
.tr-skills {
	display: flex;
	flex-direction: column;
	gap: 1px;
	background: var(--border);
	border: 1px solid var(--border);
	border-radius: var(--r);
	overflow: hidden;
}
.tr-skill-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 9px 12px;
	background: var(--bg2);
}
.tr-skill-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--text);
	flex: 1;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tr-skill-ctrl {
	flex-shrink: 0;
}

/* ── Stepper (±) ── */
.tr-stepper {
	display: inline-flex;
	align-items: center;
	gap: 0;
	border: 1px solid var(--border-lite);
	border-radius: 8px;
	overflow: hidden;
	background: var(--bg);
}
.tr-stepper-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: var(--bg3);
	border: none;
	color: var(--muted);
	cursor: pointer;
	transition: color .15s, background .15s;
	-webkit-tap-highlight-color: transparent;
}
.tr-stepper-btn:active { background: var(--border-lite); color: var(--gold); }
.tr-stepper-input {
	width: 42px;
	height: 34px;
	text-align: center;
	background: var(--bg);
	border: none;
	border-left: 1px solid var(--border);
	border-right: 1px solid var(--border);
	color: var(--gold);
	font-size: 14px;
	font-weight: 700;
	outline: none;
	-moz-appearance: textfield;
}
.tr-stepper-input::-webkit-outer-spin-button,
.tr-stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── Save Button ── */
.tr-save {
	padding: 16px 0 8px;
	text-align: center;
}
.tr-btn-save {
	display: inline-block;
	width: 100%;
	max-width: 320px;
	padding: 12px;
	border: none;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--gold), var(--gold2));
	color: #000;
	font-size: 15px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
	cursor: pointer;
	transition: opacity .15s;
}
.tr-btn-save:active { opacity: .85; }

/* ── Progress Preview ── */
.tr-preview {
	margin-top: 10px;
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: var(--r);
	overflow: hidden;
}
.tr-preview-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	border-bottom: 1px solid var(--border);
}
.tr-preview-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--gold);
	text-transform: uppercase;
	letter-spacing: .04em;
}

/* ── Coach Toggle Switch ── */
.tr-coach-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
}
.tr-coach-label {
	font-size: 11px;
	color: var(--muted);
}
.tr-switch {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 22px;
}
.tr-switch input { opacity: 0; width: 0; height: 0; }
.tr-switch-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background: var(--bg3);
	border: 1px solid var(--border-lite);
	border-radius: 22px;
	transition: background .2s;
}
.tr-switch-slider::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--muted);
	transition: transform .2s, background .2s;
}
.tr-switch input:checked + .tr-switch-slider {
	background: var(--green);
	border-color: var(--green);
}
.tr-switch input:checked + .tr-switch-slider::before {
	transform: translateX(18px);
	background: #fff;
}

/* ── Progress Bars ── */
.tr-progress-list {
	padding: 6px 0;
}
.tr-prog-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px;
}
.tr-prog-label {
	width: 90px;
	flex-shrink: 0;
	font-size: 11px;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tr-prog-bar {
	flex: 1;
	height: 8px;
	background: var(--bg);
	border-radius: 4px;
	overflow: hidden;
}
.tr-prog-fill {
	height: 100%;
	border-radius: 4px;
	transition: width .3s, background .3s;
	min-width: 2px;
}
.tr-prog-val {
	min-width: 44px;
	text-align: right;
	font-size: 11px;
	font-weight: 700;
	color: var(--text);
}

/* ═══════════════════════════════════════════════
   TACTICS
   ═══════════════════════════════════════════════ */

/* ── Tabs ── */
.tac-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}
.tac-tab {
	flex: 1 1 calc(50% - 3px);
	text-align: center;
	padding: 9px 4px;
	font-size: 12px;
	font-weight: 700;
	border-radius: 8px;
	background: var(--bg3);
	color: var(--muted);
	cursor: pointer;
	border: 1px solid var(--border);
	transition: background .15s, color .15s;
}
.tac-tab--active {
	background: var(--gold);
	color: var(--bg);
	border-color: var(--gold);
}

/* ── Cards ── */
.tac-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 12px;
}
.tac-card-head {
	font-size: 13px;
	font-weight: 700;
	color: var(--gold);
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: .5px;
}

/* ── Row ── */
.tac-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid var(--border);
}
.tac-row:last-child { border-bottom: none; }
.tac-row-label {
	font-size: 13px;
	color: var(--text);
	flex-shrink: 0;
	margin-right: 10px;
}
.tac-row-ctrl {
	flex-shrink: 0;
}

/* ── Stepper ── */
.tac-stepper {
	display: flex;
	align-items: center;
	gap: 2px;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.tac-step-btn {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	border: 1px solid var(--border-lite);
	background: var(--bg3);
	color: var(--gold);
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.tac-step-btn:active { background: var(--blue-acc); color: #fff; }
.tac-step-val {
	width: 34px;
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	color: var(--gold);
	background: transparent;
	border: none;
	pointer-events: none;
}
.tac-step-lo,
.tac-step-hi {
	font-size: 10px;
	color: var(--muted);
}
.tac-step-lo { order: 10; }
.tac-step-hi { order: 11; margin-left: auto; }

/* ── Select ── */
.tac-select {
	background: var(--bg3);
	color: var(--text);
	border: 1px solid var(--border-lite);
	border-radius: 8px;
	padding: 7px 28px 7px 10px;
	font-size: 13px;
	font-weight: 600;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237a88b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	cursor: pointer;
	min-width: 110px;
}
.tac-select:focus {
	outline: none;
	border-color: var(--blue-acc);
}

/* ── Save ── */
.tac-save {
	margin-top: 10px;
	padding-bottom: calc(var(--bottom-nav-h) + 16px);
}
.tac-btn-save {
	width: 100%;
	padding: 13px;
	border: none;
	border-radius: 10px;
	background: var(--gold);
	color: var(--bg);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	letter-spacing: .3px;
}
.tac-btn-save:active { background: var(--gold2); }

/* ═══════════════════════════════════════════════
   PERSONAL / STAFF
   ═══════════════════════════════════════════════ */

/* ── Message ── */
.ps-msg {
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	min-height: 4px;
	margin-bottom: 8px;
}

/* ── Card (collapsible) ── */
.ps-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
	margin-bottom: 12px;
	position: relative;
	z-index: 1;
}
.ps-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	font-size: 13px;
	font-weight: 700;
	color: var(--gold);
	text-transform: uppercase;
	letter-spacing: .5px;
	cursor: pointer;
}
.ps-chev { transition: transform .2s; }
.ps-collapsed .ps-chev { transform: rotate(-90deg); }
.ps-collapsed .ps-card-body { display: none !important; }
.ps-card-body { padding: 0 14px 14px; display: block !important; }

/* ── Stars ── */
.ps-stars { display: flex; gap: 1px; margin-bottom: 4px; }
.ps-star { flex-shrink: 0; }

/* ── Own Staff Item ── */
.ps-staff-item {
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
}
.ps-staff-item:last-child { border-bottom: none; }
.ps-staff-row {
	display: flex;
	align-items: center;
	gap: 12px;
}
.ps-staff-photo {
	width: 70px;
	height: 70px;
	border-radius: 8px;
	object-fit: cover;
	border: 1px solid var(--border-lite);
}
.ps-staff-info { flex: 1; min-width: 0; }
.ps-staff-name {
	font-size: 13px;
	color: var(--text);
	font-weight: 600;
}
.ps-staff-actions {
	margin-top: 8px;
	text-align: right;
}
.ps-btn-extend {
	padding: 6px 16px;
	border: none;
	border-radius: 8px;
	background: #f5c518;
	color: #07091a;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}
.ps-btn-extend:active { opacity: .8; }

/* ── Filter Bar ── */
.ps-filter {
	display: flex;
	gap: 6px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}
.ps-select {
	flex: 1 1 0;
	min-width: 0;
	background: var(--bg3);
	color: var(--text);
	border: 1px solid var(--border-lite);
	border-radius: 8px;
	padding: 8px 28px 8px 10px;
	font-size: 12px;
	font-weight: 600;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237a88b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
}
.ps-select:focus { outline: none; border-color: var(--blue-acc); }
.ps-btn-filter {
	padding: 8px 18px;
	border: none;
	border-radius: 8px;
	background: var(--gold);
	color: var(--bg);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}
.ps-btn-filter:active { background: var(--gold2); }

/* ── Auction Item ── */
.ps-auction-item {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 10px;
}
.ps-auction-top {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}
.ps-auction-photo {
	width: 52px;
	height: 52px;
	border-radius: 8px;
	object-fit: cover;
	border: 1px solid var(--border-lite);
}
.ps-auction-info { flex: 1; min-width: 0; }
.ps-auction-name {
	font-size: 13px;
	font-weight: 700;
	color: var(--text);
}
.ps-auction-details { margin-bottom: 10px; }
.ps-detail-row {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
	border-bottom: 1px solid var(--border);
	font-size: 12px;
}
.ps-detail-row:last-child { border-bottom: none; }
.ps-detail-label { color: var(--muted); }
.ps-detail-value { color: var(--text); font-weight: 600; }
.ps-link { color: var(--blue-acc); text-decoration: none; }
.ps-link:hover { text-decoration: underline; }

/* ── Bid Form ── */
.ps-bid-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding-top: 8px;
	border-top: 1px solid var(--border);
}
.ps-bid-input {
	flex: 1 1 80px;
	min-width: 80px;
	background: var(--bg3);
	color: var(--text);
	border: 1px solid var(--border-lite);
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 13px;
	font-weight: 600;
}
.ps-bid-input:focus { outline: none; border-color: var(--blue-acc); }
.ps-bid-btns { display: flex; gap: 6px; }
.ps-btn-bid {
	padding: 8px 14px;
	border: none;
	border-radius: 8px;
	background: var(--gold);
	color: var(--bg);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}
.ps-btn-bid:active { background: var(--gold2); }
.ps-btn-autobid {
	padding: 8px 14px;
	border: none;
	border-radius: 8px;
	background: var(--bg3);
	color: var(--text);
	border: 1px solid var(--border-lite);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}
.ps-btn-autobid:active { background: var(--blue-acc); color: #fff; }

/* ── Bottom spacing ── */
#employed { padding-bottom: calc(var(--bottom-nav-h) + 16px); }

/* ═══════════════════════════════════════════════
   EQUIPMENT
   ═══════════════════════════════════════════════ */

/* ── Message ── */
.eq-msg {
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	min-height: 2px;
}
.eq-msg:empty { display: none; }

/* ── Card ── */
.eq-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
	margin-bottom: 12px;
}
.eq-card-head {
	padding: 12px 14px;
	font-size: 13px;
	font-weight: 700;
	color: var(--gold);
	text-transform: uppercase;
	letter-spacing: .5px;
	border-bottom: 1px solid var(--border);
}
.eq-card-body { padding: 14px; }

/* ── Totals ── */
.eq-total {
	text-align: center;
	font-size: 14px;
	color: var(--muted);
	margin-bottom: 10px;
}
.eq-total-val { color: var(--green); font-weight: 700; }

/* ── Row ── */
.eq-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 7px 0;
	border-bottom: 1px solid var(--border);
}
.eq-row:last-of-type { border-bottom: none; }
.eq-row-label {
	font-size: 13px;
	color: var(--text);
	flex-shrink: 0;
	margin-right: 8px;
}
.eq-row-ctrl { flex-shrink: 0; }

/* ── Stepper ── */
.eq-stepper {
	display: inline-flex;
	align-items: center;
	gap: 2px;
}
.eq-step-btn {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	border: 1px solid var(--border-lite);
	background: var(--bg3);
	color: var(--gold);
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.eq-step-btn:active { background: var(--blue-acc); color: #fff; }
.eq-step-val {
	width: 48px;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	color: var(--text);
	background: var(--bg3);
	border: 1px solid var(--border-lite);
	border-radius: 6px;
	padding: 5px 2px;
	-moz-appearance: textfield;
}
.eq-step-val::-webkit-inner-spin-button,
.eq-step-val::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Buy Button ── */
.eq-btn-buy {
	display: block;
	width: 100%;
	margin-top: 12px;
	padding: 12px;
	border: none;
	border-radius: 10px;
	background: var(--gold);
	color: var(--bg);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	letter-spacing: .3px;
}
.eq-btn-buy:active { background: var(--gold2); }

/* ── Outfit Items ── */
.eq-outfit-item {
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
}
.eq-outfit-item:last-child { border-bottom: none; }
.eq-outfit-row {
	display: flex;
	align-items: center;
	gap: 12px;
}
.eq-outfit-info { flex: 1; }
.eq-outfit-rating {
	font-size: 14px;
	font-weight: 700;
	color: var(--gold);
}
.eq-outfit-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
}
.eq-outfit-usage {
	font-size: 12px;
	color: var(--muted);
	margin-top: 2px;
}
.eq-outfit-actions {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}
.eq-btn-throw {
	padding: 6px 14px;
	border: 1px solid var(--danger);
	border-radius: 8px;
	background: transparent;
	color: var(--danger);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}
.eq-btn-throw:active { background: var(--danger); color: #fff; }
.eq-btn-extend {
	padding: 6px 14px;
	border: none;
	border-radius: 8px;
	background: var(--gold);
	color: var(--bg);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}
.eq-btn-extend:active { opacity: .8; }

/* ═══════════════════════════════════════════════
   FRIENDLIES
   ═══════════════════════════════════════════════ */

/* ── Message ── */
.fr-msg {
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	min-height: 2px;
	margin-bottom: 8px;
}
.fr-msg:empty { display: none; }

/* ── Card ── */
.fr-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
	margin-bottom: 12px;
}
.fr-card-head {
	padding: 12px 14px;
	font-size: 13px;
	font-weight: 700;
	color: var(--gold);
	text-transform: uppercase;
	letter-spacing: .5px;
	border-bottom: 1px solid var(--border);
}
.fr-card-body { padding: 14px; }

/* ── Form ── */
.fr-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 10px;
}
.fr-field { margin-bottom: 10px; }
.fr-form-grid .fr-field { margin-bottom: 0; }
.fr-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: .4px;
	margin-bottom: 4px;
}
.fr-select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--border-lite);
	border-radius: 8px;
	background: var(--bg3);
	color: var(--text);
	font-size: 14px;
	-webkit-appearance: none;
	appearance: none;
}
.fr-select:focus {
	outline: none;
	border-color: var(--gold);
}

/* ── Send Button ── */
.fr-btn-send {
	display: block;
	width: 100%;
	padding: 12px;
	border: none;
	border-radius: 10px;
	background: var(--gold);
	color: var(--bg);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	letter-spacing: .3px;
	margin-top: 4px;
}
.fr-btn-send:active { background: var(--gold2); }

/* ── Request Items ── */
.fr-req-item {
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
}
.fr-req-item:last-child { border-bottom: none; }
.fr-req-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}
.fr-req-info { display: flex; align-items: center; gap: 8px; }
.fr-req-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--gold);
	text-decoration: none;
}
.fr-req-name:hover { text-decoration: underline; }
.fr-req-rank {
	font-size: 12px;
	color: var(--muted);
}
.fr-req-badge {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	padding: 3px 8px;
	border-radius: 6px;
}
.fr-badge-public {
	background: rgba(61,186,76,.15);
	color: var(--green);
}
.fr-badge-private {
	background: rgba(255,82,82,.15);
	color: var(--danger);
}
.fr-req-detail {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.fr-req-meta {
	font-size: 13px;
	color: var(--text);
}
.fr-req-actions {
	display: flex;
	gap: 8px;
}
.fr-btn-accept,
.fr-btn-reject {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}
.fr-btn-accept {
	background: var(--gold);
	color: var(--bg);
}
.fr-btn-accept:active { background: var(--gold2); }
.fr-btn-reject {
	background: transparent;
	border: 1px solid var(--danger);
	color: var(--danger);
}
.fr-btn-reject:active { background: var(--danger); color: #fff; }

/* ── Recent Matches ── */
.fr-match-item {
	display: block;
	text-decoration: none;
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
}
.fr-match-item:last-child { border-bottom: none; }
.fr-match-item:active { background: var(--bg3); }
.fr-match-players {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}
.fr-match-player {
	font-size: 14px;
	color: var(--text);
	text-decoration: none;
}
.fr-match-player:hover { text-decoration: underline; }
.fr-match-player.fr-winner {
	color: var(--gold);
	font-weight: 700;
}
.fr-match-vs {
	font-size: 11px;
	color: var(--muted);
	text-transform: uppercase;
}
.fr-match-bottom {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	color: var(--muted);
}
.fr-match-score {
	color: var(--text);
	font-weight: 600;
	font-size: 13px;
}
.fr-match-surface {
	background: var(--bg3);
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
}
.fr-empty {
	text-align: center;
	color: var(--muted);
	font-size: 13px;
	padding: 12px 0;
}

/* ═══════════════════════════════════════════════
   KONTO (Account)
   ═══════════════════════════════════════════════ */

/* ── Balance Banner ── */
.kt-balance {
	display: flex;
	gap: 10px;
	margin-bottom: 12px;
}
.kt-bal-item {
	flex: 1;
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 14px;
	text-align: center;
}
.kt-bal-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: .4px;
	margin-bottom: 6px;
}
.kt-bal-value {
	display: block;
	font-size: 18px;
	font-weight: 800;
}
.kt-bal-money { color: var(--green); }
.kt-bal-platos { color: var(--gold); }

/* ── Card ── */
.kt-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
	margin-bottom: 12px;
}
.kt-card-head {
	padding: 12px 14px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	border-bottom: 1px solid var(--border);
}
.kt-head-income { color: var(--green); }
.kt-head-outgoings { color: var(--danger); }
.kt-card-body { padding: 6px 14px; }

/* ── Transaction Item ── */
.kt-tx-item {
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
}
.kt-tx-item:last-child { border-bottom: none; }
.kt-tx-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 2px;
}
.kt-tx-week {
	font-size: 12px;
	color: var(--muted);
	background: var(--bg3);
	padding: 2px 8px;
	border-radius: 4px;
}
.kt-tx-amount {
	font-size: 14px;
	font-weight: 700;
}
.kt-tx-plus { color: var(--green); }
.kt-tx-minus { color: var(--danger); }
.kt-tx-reason {
	font-size: 13px;
	color: var(--text);
	margin-top: 2px;
}
.kt-tx-reason.nameBold {
	color: var(--gold);
	font-weight: 700;
}

/* ═══════════════════════════════════════════════
   MENTORING
   ═══════════════════════════════════════════════ */

/* ── Tabs ── */
.mn-tabs {
	display: flex;
	gap: 6px;
	margin-bottom: 12px;
}
.mn-tab {
	flex: 1;
	text-align: center;
	padding: 10px 0;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	color: var(--muted);
	background: var(--bg2);
	border: 1px solid var(--border);
	letter-spacing: .3px;
}
.mn-tab-active {
	background: var(--gold);
	color: var(--bg);
	border-color: var(--gold);
}

/* ── Card ── */
.mn-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
	margin-bottom: 12px;
}
.mn-card-head {
	padding: 12px 14px;
	font-size: 13px;
	font-weight: 700;
	color: var(--gold);
	text-transform: uppercase;
	letter-spacing: .5px;
	border-bottom: 1px solid var(--border);
}
.mn-card-body { padding: 14px; }

/* ── Select ── */
.mn-select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--border-lite);
	border-radius: 8px;
	background: var(--bg3);
	color: var(--text);
	font-size: 14px;
	-webkit-appearance: none;
	appearance: none;
}
.mn-select:focus {
	outline: none;
	border-color: var(--gold);
}

/* ── Player Row (existing) ── */
.mn-player-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--border);
}
.mn-player-row:last-child { border-bottom: none; }
.mn-player {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--text);
	text-decoration: none;
	flex: 1;
}
.mn-player:hover { color: var(--gold); }
.mn-player .flag { flex-shrink: 0; }

/* ── Search Row (new players) ── */
.mn-search-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid var(--border);
}
.mn-search-row:last-child { border-bottom: none; }
.mn-btn-msg {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: var(--gold);
	color: var(--bg);
	text-decoration: none;
	flex-shrink: 0;
}
.mn-btn-msg:active { background: var(--gold2); }

/* ═══════════════════════════════════════════════
   SUPPORTER
   ═══════════════════════════════════════════════ */

/* ── Tabs ── */
.sp-tabs {
	display: flex;
	gap: 6px;
	margin-bottom: 12px;
}
.sp-tabs .tab {
	flex: 1;
	text-align: center;
	border-radius: 8px;
	background: var(--bg2);
	border: 1px solid var(--border);
}
.sp-tabs .tab a.sp-tab {
	display: block;
	padding: 10px 0;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	color: var(--muted);
	letter-spacing: .3px;
}
.sp-tabs .tab.active {
	background: var(--gold);
	border-color: var(--gold);
}
.sp-tabs .tab.active a.sp-tab {
	color: var(--bg);
}

/* ── Card ── */
.sp-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
	margin-bottom: 12px;
}
.sp-card-body { padding: 14px; }

/* ── Content ── */
.sp-desc {
	font-size: 14px;
	color: var(--text);
	margin-bottom: 12px;
	line-height: 1.5;
}
.sp-list {
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
}
.sp-list li {
	position: relative;
	padding: 6px 0 6px 20px;
	font-size: 13px;
	color: var(--text);
	border-bottom: 1px solid var(--border);
}
.sp-list li:last-child { border-bottom: none; }
.sp-list li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--gold);
	font-weight: 700;
}

/* ── Buy Button ── */
.sp-btn-buy {
	display: block;
	width: 100%;
	padding: 12px;
	border: none;
	border-radius: 10px;
	background: var(--gold);
	color: var(--bg);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	letter-spacing: .3px;
}
.sp-btn-buy:active { background: var(--gold2); }

.sp-supporter-info {
	background: linear-gradient(135deg, rgba(255,193,7,.12), rgba(255,193,7,.04));
	border: 1px solid rgba(255,193,7,.3);
	border-radius: 10px;
	margin: 14px 14px 0;
	padding: 12px 14px;
}
.sp-info-badge {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--gold2);
	font-weight: 700;
	font-size: 14px;
}
.sp-info-badge svg { stroke: var(--gold2); fill: rgba(255,193,7,.2); }
.sp-info-expires {
	margin: 6px 0 0;
	font-size: 13px;
	color: rgba(255,255,255,.7);
}
.sp-info-expires strong { color: #fff; }

/* ═══════════════════════════════════════════════
   RANKING
   ═══════════════════════════════════════════════ */

/* ── Navigation Bar ── */
.rk-nav {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
}
.rk-nav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border-radius: 8px;
	background: var(--bg2);
	border: 1px solid var(--border);
	color: var(--gold);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}
.rk-nav-btn:active { background: var(--bg3); }
.rk-select {
	flex: 1;
	padding: 8px 10px;
	border: 1px solid var(--border-lite);
	border-radius: 8px;
	background: var(--bg3);
	color: var(--text);
	font-size: 13px;
	-webkit-appearance: none;
	appearance: none;
}
.rk-select:focus { outline: none; border-color: var(--gold); }

/* ── Card ── */
.rk-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
}
.rk-card-body { padding: 6px 14px; }

/* ── Player Row ── */
.rk-player {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
	text-decoration: none;
}
.rk-player:last-child { border-bottom: none; }
.rk-player:active { background: var(--bg3); }
.rk-pos {
	min-width: 32px;
	text-align: right;
	font-size: 13px;
	font-weight: 700;
	color: var(--muted);
	flex-shrink: 0;
}
.rk-player .flag { flex-shrink: 0; }
.rk-player-info {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}
.rk-player-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.rk-player-pts {
	font-size: 12px;
	color: var(--muted);
	margin-top: 1px;
}

/* ── Highlight own player ── */
.rk-highlight {
	color: var(--gold);
	font-weight: 700;
}

/* ═══════════════════════════════════════════════
   TEAM LEAGUE
   ═══════════════════════════════════════════════ */

/* ── Card ── */
.tl-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
	margin-bottom: 12px;
}
.tl-card-head {
	padding: 12px 14px;
	font-size: 13px;
	font-weight: 700;
	color: var(--gold);
	text-transform: uppercase;
	letter-spacing: .5px;
	border-bottom: 1px solid var(--border);
}
.tl-card-body { padding: 6px 14px; }

/* ── Head Row (schedule) ── */
.tl-head-row {
	display: flex;
	align-items: center;
	gap: 8px;
}
.tl-select {
	padding: 6px 8px;
	border: 1px solid var(--border-lite);
	border-radius: 6px;
	background: var(--bg3);
	color: var(--text);
	font-size: 12px;
	-webkit-appearance: none;
	appearance: none;
}
.tl-select:focus { outline: none; border-color: var(--gold); }
.tl-week-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--gold);
	white-space: nowrap;
}
.tl-nav-btns {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
}
.tl-nav-btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 6px;
	background: var(--bg3);
	border: 1px solid var(--border-lite);
	color: var(--gold);
	text-decoration: none;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	line-height: 0;
}
.tl-nav-btn[style*="none"] { display: none !important; }
.tl-nav-btn svg { display: block; width: 20px; height: 20px; flex-shrink: 0; }
.tl-nav-btn:active { background: var(--blue-acc); color: #fff; }

/* ── Standing Row ── */
.tl-standing-row {
	display: flex;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid var(--border);
}
.tl-standing-row:last-child { border-bottom: none; }
.tl-standing-rank {
	min-width: 24px;
	font-size: 13px;
	font-weight: 700;
	color: var(--muted);
	flex-shrink: 0;
}
.tl-standing-name {
	flex: 1;
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tl-standing-name:hover { color: var(--gold); }
.tl-standing-diff {
	min-width: 36px;
	text-align: right;
	font-size: 12px;
	color: var(--muted);
	flex-shrink: 0;
}
.tl-standing-pts {
	min-width: 30px;
	text-align: right;
	font-size: 13px;
	font-weight: 700;
	color: var(--gold);
	flex-shrink: 0;
}

/* Standing row colors */
.tl-row_green { background: rgba(61,186,76,.08); }
.tl-row_red { background: rgba(255,82,82,.18); }

/* ── Game Row ── */
.tl-game-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid var(--border);
}
.tl-game-row:last-child { border-bottom: none; }
.tl-game-teams {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1;
	min-width: 0;
}
.tl-game-team {
	font-size: 13px;
	color: var(--text);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tl-game-team:hover { color: var(--gold); }
.tl-game-vs {
	font-size: 11px;
	color: var(--muted);
	flex-shrink: 0;
}
.tl-game-result {
	font-size: 13px;
	font-weight: 700;
	color: var(--gold);
	text-decoration: none;
	flex-shrink: 0;
	margin-left: 8px;
}

/* ── MVP Row ── */
.tl-mvp-row {
	display: flex;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid var(--border);
}
.tl-mvp-row:last-child { border-bottom: none; }
.tl-mvp-rank {
	min-width: 24px;
	font-size: 13px;
	font-weight: 700;
	color: var(--muted);
	flex-shrink: 0;
}
.tl-mvp-name {
	flex: 1;
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
}
.tl-mvp-name:hover { color: var(--gold); }
.tl-mvp-pts {
	font-size: 13px;
	font-weight: 700;
	color: var(--gold);
	flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   TEAMS (team detail page)
   ═══════════════════════════════════════════════ */

/* ── League link ── */
.ts-league-link {
	text-align: center;
	margin-bottom: 10px;
}
.ts-league-link a {
	color: var(--gold);
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ── Card ── */
.ts-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
	margin-bottom: 12px;
}
.ts-card-head {
	padding: 12px 14px;
	font-size: 13px;
	font-weight: 700;
	color: var(--gold);
	text-transform: uppercase;
	letter-spacing: .5px;
	border-bottom: 1px solid var(--border);
}
.ts-card-body { padding: 6px 14px; }

/* ── Member Row ── */
.ts-member-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid var(--border);
}
.ts-member-row:last-child { border-bottom: none; }
.ts-member-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ts-member-name:hover { color: var(--gold); }
.ts-member-rank {
	color: var(--muted);
	font-weight: 400;
}
.ts-member-stats {
	font-size: 13px;
	font-weight: 700;
	color: var(--gold);
	flex-shrink: 0;
	margin-left: 8px;
}

/* ── Rank/History Row ── */
.ts-rank-row {
	display: flex;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid var(--border);
}
.ts-rank-row:last-child { border-bottom: none; }
.ts-rank-season {
	min-width: 80px;
	font-size: 13px;
	color: var(--text);
	flex-shrink: 0;
}
.ts-rank-league {
	min-width: 70px;
	font-size: 13px;
	color: var(--muted);
	flex-shrink: 0;
}
.ts-rank-place {
	font-size: 13px;
	font-weight: 700;
	color: var(--gold);
	display: flex;
	align-items: center;
	gap: 6px;
}
.ts-trophy {
	width: 18px;
	height: 18px;
	vertical-align: middle;
}
.ts-trophy.hidden { display: none; }

/* ── Transfer Row ── */
.ts-transfer-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid var(--border);
}
.ts-transfer-row:last-child { border-bottom: none; }
.ts-transfer-arrow {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}
.ts-transfer-arrow.ts-arrow-up { color: var(--green); }
.ts-transfer-arrow.ts-arrow-down { color: var(--danger); }
.ts-transfer-date {
	min-width: 90px;
	font-size: 12px;
	color: var(--muted);
	flex-shrink: 0;
}
.ts-transfer-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
}
.ts-transfer-name:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════
   HALL OF FAME
   ═══════════════════════════════════════════════ */

/* ── Card ── */
.hf-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
	margin-bottom: 12px;
}
.hf-card-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 14px;
	font-size: 13px;
	font-weight: 700;
	color: var(--gold);
	text-transform: uppercase;
	letter-spacing: .5px;
	border-bottom: 1px solid var(--border);
}
.hf-card-body { padding: 6px 14px; }

/* ── Player Row ── */
.hf-player {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
}
.hf-player:last-child { border-bottom: none; }
.hf-rank {
	min-width: 28px;
	font-size: 14px;
	font-weight: 700;
	color: var(--muted);
	flex-shrink: 0;
	text-align: right;
}
.hf-player:first-child .hf-rank { color: var(--gold); }
.hf-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 2px solid var(--border-lite);
}
.hf-info {
	flex: 1;
	min-width: 0;
}
.hf-name-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 2px;
}
.hf-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.hf-name:hover { color: var(--gold); }
.hf-stat {
	font-size: 12px;
	color: var(--muted);
}
.hf-stat strong { color: var(--gold); }
.hf-highlight { color: var(--gold); font-weight: 700; }

/* ═══════════════════════════════════════════════
   RANKING INSTANT
   ═══════════════════════════════════════════════ */

/* ── Tabs ── */
.ri-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 10px;
}
.ri-tab {
	flex: 1;
	text-align: center;
	padding: 10px 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 8px;
	text-decoration: none;
	transition: background .15s, color .15s;
}
.ri-tab-active,
.ri-tab:active {
	color: var(--gold);
	background: var(--bg3);
	border-color: var(--gold);
}

/* ── Nav ── */
.ri-nav {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
}
.ri-nav-btn {
	padding: 7px 14px;
	font-size: 12px;
	font-weight: 700;
	color: var(--gold);
	background: var(--bg3);
	border: 1px solid var(--border-lite);
	border-radius: 6px;
	text-decoration: none;
}
.ri-nav-btn:active { background: var(--blue-acc); color: #fff; }

/* ── Card ── */
.ri-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
	margin-bottom: 12px;
}
.ri-card-body { padding: 6px 14px; }

/* ── Player Row ── */
.ri-player {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 0;
	border-bottom: 1px solid var(--border);
	text-decoration: none;
}
.ri-player:last-child { border-bottom: none; }
.ri-pos {
	min-width: 28px;
	font-size: 13px;
	font-weight: 700;
	color: var(--muted);
	text-align: right;
	flex-shrink: 0;
}
.ri-player-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}
.ri-player-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ri-player-pts {
	font-size: 12px;
	color: var(--muted);
}
.ri-gain { color: var(--green); font-weight: 600; }

/* Player row color variants */
.ri-color-top1 { background: rgba(245,197,24,.08); }
.ri-color-top1 .ri-pos { color: var(--gold); }
.ri-color-bonus { background: rgba(245,197,24,.05); }
.ri-color-bonus .ri-player-name { color: var(--gold2); }
.ri-color-banned { opacity: .45; }
.ri-color-default {}

/* ── Match Row ── */
.ri-match {
	display: block;
	padding: 9px 0;
	border-bottom: 1px solid var(--border);
	text-decoration: none;
}
.ri-match:last-child { border-bottom: none; }
.ri-match-players {
	font-size: 13px;
	font-weight: 600;
}
.ri-match-result {
	font-size: 13px;
	font-weight: 700;
	margin-top: 2px;
}
.ri-match-meta {
	font-size: 11px;
	color: var(--muted);
	margin-top: 2px;
}

/* ═══════════════════════════════════════════════
   NATIONS RANKING
   ═══════════════════════════════════════════════ */

/* ── Form ── */
.nr-form {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}
.nr-select {
	flex: 1;
	padding: 8px 10px;
	border: 1px solid var(--border-lite);
	border-radius: 6px;
	background: var(--bg3);
	color: var(--text);
	font-size: 13px;
	-webkit-appearance: none;
	appearance: none;
}
.nr-select:focus { outline: none; border-color: var(--gold); }
.nr-btn {
	padding: 8px 16px;
	border: none;
	border-radius: 6px;
	background: var(--gold);
	color: #000;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
.nr-btn:active { background: var(--gold2); }

/* ── Card ── */
.nr-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
	margin-bottom: 12px;
}
.nr-card-body { padding: 6px 14px; }

/* ── Nation Row ── */
.nr-nation {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 0;
	border-bottom: 1px solid var(--border);
	text-decoration: none;
}
.nr-nation:last-child { border-bottom: none; }
.nr-pos {
	min-width: 28px;
	font-size: 13px;
	font-weight: 700;
	color: var(--muted);
	text-align: right;
	flex-shrink: 0;
}
.nr-nation:first-child .nr-pos { color: var(--gold); }
.nr-nation-name {
	flex: 1;
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.nr-nation:hover .nr-nation-name { color: var(--gold); }
.nr-nation-score {
	font-size: 12px;
	font-weight: 700;
	color: var(--gold);
	flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   TOURNAMENT WINS
   ═══════════════════════════════════════════════ */

/* ── Filter ── */
.tw-filter {
	margin-bottom: 12px;
}
.tw-checkboxes {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin-bottom: 10px;
}
.tw-check {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	color: var(--text);
	cursor: pointer;
}
.tw-check input[type="checkbox"] {
	accent-color: var(--gold);
	width: 16px;
	height: 16px;
}
.tw-btn {
	padding: 8px 16px;
	border: none;
	border-radius: 6px;
	background: var(--gold);
	color: #000;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	width: 100%;
}
.tw-btn:active { background: var(--gold2); }

/* ── Card ── */
.tw-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
	margin-bottom: 12px;
}
.tw-card-body { padding: 6px 14px; }

/* ── Player Row ── */
.tw-player {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 0;
	border-bottom: 1px solid var(--border);
	text-decoration: none;
}
.tw-player:last-child { border-bottom: none; }
.tw-pos {
	min-width: 28px;
	font-size: 13px;
	font-weight: 700;
	color: var(--muted);
	text-align: right;
	flex-shrink: 0;
}
.tw-player:first-child .tw-pos { color: var(--gold); }
.tw-player-name {
	flex: 1;
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tw-player:hover .tw-player-name { color: var(--gold); }
.tw-player-wins {
	font-size: 13px;
	font-weight: 700;
	color: var(--gold);
	flex-shrink: 0;
}

/* ========================================================
   FRIENDLIST  (.fl-)
   ======================================================== */

/* ── Add Friend ── */
.fl-add-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 10px 14px;
	margin-bottom: 12px;
}
.fl-add-form {
	display: flex;
	gap: 8px;
}
.fl-input {
	flex: 1;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	color: var(--text);
	font-size: 13px;
	padding: 8px 12px;
	outline: none;
}
.fl-input:focus { border-color: var(--gold); }
.fl-input::placeholder { color: var(--muted); }
.fl-add-btn {
	background: var(--gold);
	color: var(--bg);
	border: none;
	border-radius: 8px;
	width: 38px;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
}
.fl-add-btn:active { background: var(--gold2); }

/* ── Card ── */
.fl-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
	margin-bottom: 12px;
}
.fl-card-head {
	display: flex;
	justify-content: space-between;
	padding: 10px 14px;
	font-size: 11px;
	font-weight: 700;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: .5px;
	border-bottom: 1px solid var(--border);
}
.fl-card-body { padding: 4px 14px; }

/* ── Player Row ── */
.fl-player {
	display: flex;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
}
.fl-player:last-child { border-bottom: none; }
.fl-player-link {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	text-decoration: none;
	min-width: 0;
}
.fl-player-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.fl-player-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.fl-player-link:hover .fl-player-name { color: var(--gold); }
.fl-player-time {
	font-size: 11px;
	color: var(--muted);
	margin-top: 2px;
}
.fl-remove-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255,82,82,.12);
	color: var(--danger);
	flex-shrink: 0;
	text-decoration: none;
	transition: background .15s;
}
.fl-remove-btn:hover { background: rgba(255,82,82,.25); }

/* ========================================================
   MAILBOX  (.mb-)
   ======================================================== */

/* ── Tabs ── */
.mb-tabs {
	display: flex;
	gap: 4px;
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 4px;
	margin-bottom: 12px;
}
.mb-tab {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 0;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
	cursor: pointer;
	text-decoration: none;
	transition: background .15s, color .15s;
}
.mb-tab:hover { color: var(--text); }
.mb-tab-active {
	background: var(--bg3);
	color: var(--gold);
}

/* ── Status ── */
.mb-status {
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	padding: 8px;
	margin-bottom: 10px;
}

/* ── Card ── */
.mb-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
	margin-bottom: 12px;
}
.mb-card-body { padding: 6px 14px; }

/* ── Message Row (Inbox) ── */
.mb-msg-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 0;
	border-bottom: 1px solid var(--border);
}
.mb-msg-row:last-child { border-bottom: none; }
.mb-msg {
	flex: 1;
	min-width: 0;
	text-decoration: none;
}
.mb-msg-subject {
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mb-msg:hover .mb-msg-subject { color: var(--gold); }
.mb-unread .mb-msg-subject {
	color: var(--gold);
	font-weight: 700;
}
.mb-msg-sender {
	font-size: 11px;
	color: var(--muted);
	margin-top: 2px;
}
.mb-msg-del {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(255,82,82,.12);
	color: var(--danger);
	text-decoration: none;
	flex-shrink: 0;
	transition: background .15s;
}
.mb-msg-del:hover { background: rgba(255,82,82,.25); }

/* ── Compose Form ── */
.mb-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: .5px;
	margin-bottom: 4px;
	margin-top: 12px;
}
.mb-label:first-child { margin-top: 6px; }
.mb-select,
.mb-input,
.mb-textarea {
	width: 100%;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	color: var(--text);
	font-size: 13px;
	padding: 9px 12px;
	outline: none;
	box-sizing: border-box;
}
.mb-select:focus,
.mb-input:focus,
.mb-textarea:focus { border-color: var(--gold); }
.mb-input::placeholder,
.mb-textarea::placeholder { color: var(--muted); }
.mb-select { appearance: none; }
.mb-textarea {
	min-height: 100px;
	resize: vertical;
	font-family: inherit;
}
.mb-btn {
	display: block;
	width: 100%;
	margin-top: 14px;
	padding: 11px 0;
	background: var(--gold);
	color: var(--bg);
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}
.mb-btn:active { background: var(--gold2); }

/* ── Show Message Detail ── */
.mb-detail-row {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid var(--border);
}
.mb-detail-row:last-of-type { border-bottom: none; }
.mb-detail-label {
	font-size: 11px;
	font-weight: 700;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: .5px;
	min-width: 70px;
	flex-shrink: 0;
}
.mb-detail-value {
	font-size: 13px;
	color: var(--text);
}
.mb-link { color: var(--gold); text-decoration: none; }
.mb-link:hover { text-decoration: underline; }
.mb-detail-body {
	padding: 12px 0 6px;
	font-size: 13px;
	color: var(--text);
	line-height: 1.6;
}
.mb-btn-row {
	display: flex;
	gap: 8px;
	margin-top: 14px;
	justify-content: center;
}
.mb-btn-row .mb-btn {
	flex: none;
	width: auto;
	margin-top: 0;
	padding: 10px 24px;
	font-size: 13px;
	text-align: center;
}
.mb-btn-back {
	background: var(--bg3);
	color: var(--text);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.mb-btn-back:active { background: var(--border-lite); }

/* ========================================================
   SETTINGS  (.st-)
   ======================================================== */

/* ── Status ── */
.st-status {
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	padding: 8px;
	margin-bottom: 10px;
}

/* ── Card ── */
.st-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
	margin-bottom: 12px;
}
.st-card-head {
	padding: 10px 14px;
	font-size: 11px;
	font-weight: 700;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: .5px;
	border-bottom: 1px solid var(--border);
}
.st-card-body { padding: 10px 14px; }

/* ── Form Elements ── */
.st-input,
.st-select {
	width: 100%;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	color: var(--text);
	font-size: 13px;
	padding: 9px 12px;
	outline: none;
	box-sizing: border-box;
}
.st-input:focus,
.st-select:focus { border-color: var(--gold); }
.st-input::placeholder { color: var(--muted); }
.st-select { appearance: none; }
.st-file {
	width: 100%;
	font-size: 13px;
	color: var(--text);
	margin-bottom: 8px;
}
.st-btn {
	display: block;
	width: 100%;
	margin-top: 10px;
	padding: 10px 0;
	background: var(--gold);
	color: var(--bg);
	border: none;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
.st-btn:active { background: var(--gold2); }

/* ── Outline / Danger Buttons ── */
.st-btn-outline {
	background: transparent;
	border: 1px solid var(--border-lite);
	color: var(--text);
}
.st-btn-outline:active { background: var(--bg3); }
.st-btn-danger {
	background: transparent;
	border: 1px solid rgba(255,82,82,.3);
	color: var(--danger);
}
.st-btn-danger:active { background: rgba(255,82,82,.12); }

/* ── Actions ── */
.st-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 6px;
}

/* ========================================================
   GUIDE  (.gu-)
   ======================================================== */
.gu-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
	margin-bottom: 12px;
}
.gu-card-body {
	padding: 14px;
	font-size: 13px;
	color: var(--text);
	line-height: 1.7;
}
.gu-card-body h1,
.gu-card-body h2,
.gu-card-body h3 {
	color: var(--gold);
	margin: 14px 0 6px;
	font-size: 15px;
}
.gu-card-body a { color: var(--gold); }
.gu-card-body ul,
.gu-card-body ol {
	padding-left: 20px;
	margin: 6px 0;
}

/* ===========================================================
   TOURNAMENT  (.tn-)
   =========================================================== */

/* --- Cards --- */
.tn-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
	margin-bottom: 12px;
	overflow: hidden;
}
.tn-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	font-weight: 700;
	font-size: 14px;
	color: var(--gold);
	background: var(--bg3);
	border-bottom: 1px solid var(--border);
}
.tn-card-body {
	padding: 10px 14px;
}

/* --- Details --- */
.tn-detail-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 5px 0;
	border-bottom: 1px solid var(--border);
	font-size: 13px;
}
.tn-detail-row:last-child { border-bottom: none; }
.tn-detail-label { color: var(--muted); }
.tn-detail-value { color: var(--text); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; text-align: right; }
.tn-gold { color: var(--gold) !important; }

/* --- Collapsible --- */
.tn-collapsible .tn-collapsible-body { display: none; }
.tn-collapsible.tn-open .tn-collapsible-body { display: block; }
.tn-collapsible-body.hidden { display: none !important; }
.tn-toggle { cursor: pointer; }
.tn-chevron {
	transition: transform .2s;
	color: var(--muted);
}
.tn-open > .tn-toggle .tn-chevron {
	transform: rotate(180deg);
}

/* --- Scores --- */
.tn-score-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 5px 0;
	border-bottom: 1px solid var(--border);
	font-size: 13px;
	color: var(--text);
}
.tn-score-row:last-child { border-bottom: none; }

/* --- Winners --- */
.tn-winner {
	display: block;
	padding: 5px 0;
	color: var(--gold);
	text-decoration: none;
	font-size: 13px;
	border-bottom: 1px solid var(--border);
}
.tn-winner:last-child { border-bottom: none; }
.tn-winner:hover { color: var(--gold2); }

/* --- Subscription / Playerlist --- */
.tn-sub-note {
	background: rgba(245,197,24,.1);
	border: 1px solid rgba(245,197,24,.25);
	border-radius: 6px;
	padding: 8px 12px;
	margin-bottom: 10px;
	font-size: 12px;
	color: var(--gold);
}
.tn-sub-msg {
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 8px;
	min-height: 0;
}
.tn-sub-form {
	text-align: center;
	margin-bottom: 12px;
}
.tn-btn {
	display: inline-block;
	padding: 8px 24px;
	border: none;
	border-radius: 6px;
	background: var(--gold);
	color: #07091a;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
}
.tn-btn:hover { background: var(--gold2); }

.tn-sub-list {
	border-top: 1px solid var(--border);
	padding-top: 8px;
}
.tn-sub-player {
	display: block;
	padding: 4px 0;
	color: var(--text);
	text-decoration: none;
	font-size: 13px;
}
.tn-sub-player.tn-sub-me { color: #ff5252; font-weight: 700; }
.tn-sub-rank { color: var(--muted); font-size: 12px; }
.tn-sub-player:hover { color: var(--gold); }
.tn-sub-list hr {
	border: none;
	border-top: 1px dashed var(--gold);
	margin: 4px 0;
}

/* --- Bracket Rounds --- */
.tn-rounds {
	margin-bottom: 12px;
}
.tn-round-section {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
	margin-bottom: 8px;
	overflow: hidden;
}
.tn-round-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	font-weight: 700;
	font-size: 13px;
	color: var(--gold);
	background: var(--bg3);
	border-bottom: 1px solid var(--border);
	cursor: pointer;
}
.tn-round-body {
	padding: 6px 10px;
}

/* --- Match Box --- */
.tn-match-box {
	display: flex;
	flex-direction: column;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	margin-bottom: 6px;
	overflow: hidden;
}
.tn-match-player {
	display: flex;
	justify-content: space-between;
	padding: 6px 10px;
	color: var(--text);
	text-decoration: none;
	font-size: 12px;
	border-bottom: 1px solid var(--border);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tn-match-player:hover { background: rgba(80,110,220,.08); }
.tn-match-player.tn-me { color: #ff5252; font-weight: 700; }
.tn-match-player.tn-friend { color: var(--blue-acc); font-weight: 600; }
.tn-match-rank { color: var(--muted); margin-left: 4px; font-size: 11px; }
.tn-match-result {
	display: block;
	text-align: center;
	padding: 5px 10px;
	color: var(--gold);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	background: var(--bg3);
}
.tn-match-result:hover { color: var(--gold2); }

/* ============================================================
   LIVE MATCH — Scoreboard, Tabs, Stats, Chat, Spectators, Tactics
   ============================================================ */

/* --- Scoreboard --- */
.lm-scoreboard {
	background: linear-gradient(135deg, #0d1340 0%, #162060 100%);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 10px 12px 8px;
	margin-bottom: 10px;
}
.lm-score-surface {
	text-align: center;
	font-size: 11px;
	color: var(--muted);
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.lm-score-table {
	width: 100%;
	border-collapse: collapse;
}
.lm-score-table th,
.lm-score-table td {
	text-align: center;
	padding: 4px 2px;
	font-size: 13px;
}
.lm-score-table thead th {
	color: var(--muted);
	font-weight: 500;
	font-size: 11px;
	padding-bottom: 6px;
	border-bottom: 1px solid rgba(80,110,220,0.12);
}
.lm-score-name {
	text-align: left !important;
	width: 40%;
	font-weight: 700;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 0;
}
.lm-score-name a { color: var(--text); text-decoration: none; }
.lm-score-name a:hover { color: var(--gold); }
.lm-score-set {
	width: 8%;
	color: var(--text);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.lm-score-pts {
	width: 14%;
	color: var(--gold);
	font-weight: 800;
	font-size: 16px;
	font-variant-numeric: tabular-nums;
}
.lm-score-row td { border-bottom: 1px solid rgba(80,110,220,0.08); }
.lm-score-row:last-child td { border-bottom: none; }

/* --- Ticker --- */
.lm-ticker {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 10px;
	height: 120px;
	overflow-y: auto;
	font-size: 13px;
	line-height: 1.5;
	color: var(--text);
}
.lm-ticker-notice {
	text-align: center;
	color: var(--muted);
	font-size: 12px;
}
.lm-ticker-notice a { color: var(--gold); text-decoration: none; }
.lm-ticker-notice a:hover { color: var(--gold2); }
.lm-name-a { color: var(--gold); font-weight: 700; }
.lm-name-b { color: var(--blue-acc); font-weight: 700; }

/* --- Tab Bar --- */
.lm-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 10px;
	background: var(--bg2);
	border-radius: 10px;
	padding: 4px;
	border: 1px solid var(--border);
}
.lm-tab {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 8px 4px;
	border-radius: 8px;
	background: transparent;
	color: var(--muted);
	font-size: 10px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	border: none;
	font-family: inherit;
}
.lm-tab svg { opacity: 0.6; transition: opacity 0.2s; }
.lm-tab:hover { color: var(--text); background: rgba(80,110,220,0.08); }
.lm-tab:hover svg { opacity: 0.85; }
.lm-tab-active {
	background: linear-gradient(135deg, rgba(245,197,24,0.15), rgba(232,144,10,0.10));
	color: var(--gold);
}
.lm-tab-active svg { opacity: 1; stroke: var(--gold); }

/* --- Panels --- */
.lm-panel { display: none; }
.lm-panel-active { display: block; }

/* --- Stats Card --- */
.lm-stats-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
}
.lm-stats-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px;
	background: linear-gradient(135deg, #0d1340 0%, #162060 100%);
	font-weight: 700;
	font-size: 12px;
	color: var(--text);
	border-bottom: 1px solid var(--border);
}
.lm-stats-vs {
	color: var(--muted);
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1.5px;
}
.lm-stat-row {
	display: flex;
	align-items: center;
	padding: 8px 12px;
	font-size: 11px;
}
.lm-stat-alt { background: rgba(80,110,220,0.04); }
.lm-stat-val {
	flex: 1;
	color: var(--text);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.lm-stat-val:last-child { text-align: right; }
.lm-stat-label {
	flex: 1.2;
	text-align: center;
	color: var(--muted);
	font-weight: 500;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.lm-stat-footer {
	padding: 8px 14px;
	text-align: center;
	font-size: 11px;
	color: var(--muted);
	border-top: 1px solid var(--border);
	background: rgba(80,110,220,0.04);
}
.lm-stat-footer span { color: var(--gold); font-weight: 700; }

/* --- Match-Stats Result Banner --- */
.ms-result-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 14px 16px;
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 12px;
}
.ms-result-name {
	font-size: 13px;
	font-weight: 700;
	color: var(--text);
	flex: 1;
	text-align: center;
}
.ms-result-score {
	font-size: 16px;
	font-weight: 800;
	color: var(--gold);
	white-space: nowrap;
	letter-spacing: .5px;
}

/* --- Chat --- */
.lm-chat-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.lm-chat-input {
	display: flex;
	gap: 6px;
	padding: 10px 8px;
	border-bottom: 1px solid var(--border);
	background: var(--bg3);
}
.lm-chat-field {
	flex: 1 1 0;
	min-width: 0;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 8px 8px;
	color: var(--text);
	font-size: 13px;
	font-family: inherit;
	outline: none;
	transition: border-color 0.2s;
	overflow: hidden;
	text-overflow: ellipsis;
}
.lm-chat-field:focus { border-color: var(--gold); }
.lm-chat-field::placeholder { color: var(--muted); }
.lm-chat-send {
	padding: 8px 12px;
	background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
	color: #000;
	border: none;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: opacity 0.2s;
	flex-shrink: 0;
	white-space: nowrap;
}
.lm-chat-send:hover { opacity: 0.85; }
.lm-chat-messages {
	padding: 10px 12px;
	max-height: 400px;
	overflow-y: auto;
}
.lm-chat-msg {
	padding: 6px 0;
	font-size: 12px;
	line-height: 1.5;
	border-bottom: 1px solid rgba(80,110,220,0.06);
}
.lm-chat-msg:last-child { border-bottom: none; }
.lm-chat-time { color: var(--muted); margin-right: 6px; font-size: 11px; }
.lm-chat-author { color: var(--gold); font-weight: 600; margin-right: 6px; text-decoration: none; }
.lm-chat-author:hover { color: var(--gold2); }
.lm-chat-text { color: var(--text); }

/* --- Spectators --- */
.lm-spectators-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
}
.lm-spectators-header {
	padding: 10px 14px;
	font-weight: 700;
	font-size: 13px;
	color: var(--gold);
	background: var(--bg3);
	border-bottom: 1px solid var(--border);
}
.lm-spectators-list { padding: 8px 12px; }
.lm-spectator-row {
	display: flex;
	align-items: center;
	padding: 6px 0;
	font-size: 13px;
	border-bottom: 1px solid rgba(80,110,220,0.06);
}
.lm-spectator-row:last-child { border-bottom: none; }
.lm-spectator-num { color: var(--muted); width: 28px; font-size: 12px; }
.lm-spectator-name { color: var(--text); text-decoration: none; font-weight: 500; }
.lm-spectator-name:hover { color: var(--gold); }

/* --- Tactics --- */
.lm-tactics-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 14px;
}
.lm-tac-section {
	margin-bottom: 16px;
}
.lm-tac-section-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--gold);
	text-transform: uppercase;
	letter-spacing: 0.8px;
	margin-bottom: 10px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--border);
}
.lm-tac-row {
	margin-bottom: 12px;
}
.lm-tac-label {
	display: block;
	font-size: 12px;
	color: var(--text);
	font-weight: 600;
	margin-bottom: 6px;
}
.lm-tac-slider {
	display: flex;
	align-items: center;
	gap: 8px;
}
.lm-tac-hint {
	font-size: 10px;
	color: var(--muted);
	white-space: nowrap;
	min-width: 30px;
	text-align: center;
}
.lm-tac-input { flex: 1; }
.lm-tac-input input[type="text"] {
	width: 100%;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 6px 10px;
	color: var(--text);
	font-size: 13px;
	text-align: center;
	font-family: inherit;
	outline: none;
}
.lm-tac-input input[type="text"]:focus { border-color: var(--gold); }
.lm-tac-select { margin-top: 2px; }
.lm-select {
	width: 100%;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 8px 12px;
	color: var(--text);
	font-size: 13px;
	font-family: inherit;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a88b8' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 12px;
	cursor: pointer;
}
.lm-select:focus { border-color: var(--gold); }
.lm-tac-submit {
	display: block;
	width: 100%;
	padding: 12px;
	background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
	color: #000;
	border: none;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.15s;
}
.lm-tac-submit:hover { opacity: 0.9; }
.lm-tac-submit:active { transform: scale(0.98); }

/* ============================================================
   LANDING PAGE (index.php — guest / conversion)
   ============================================================ */
.lp {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 100dvh;
	padding: 0;
	overflow-x: hidden;
	background:
		radial-gradient(ellipse 80% 60% at 50% 20%, rgba(245,197,24,.10) 0%, transparent 70%),
		linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

/* ── Hero ── */
.lp-hero {
	width: 100%;
	display: flex;
	justify-content: center;
	padding: 25px 20px 40px;
	text-align: center;
}
.lp-hero-inner {
	max-width: 600px;
}
.lp-hero-badge {
	display: inline-block;
	padding: 4px 14px;
	margin-bottom: 18px;
	border-radius: 999px;
	background: var(--gold-glow);
	border: 1px solid rgba(245,197,24,.25);
	color: var(--gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.lp-hero-title {
	font-size: clamp(32px, 7vw, 52px);
	font-weight: 900;
	line-height: 1.05;
	color: var(--white);
	margin: 0 0 14px;
}
.lp-hero-sub {
	font-size: 16px;
	line-height: 1.6;
	color: var(--muted);
	margin: 0 0 28px;
	max-width: 480px;
	margin-inline: auto;
}

/* ── CTA buttons ── */
.lp-cta-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-bottom: 32px;
}
.lp-cta-or {
	font-size: 12px;
	color: var(--muted);
}
.lp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 24px;
	border: none;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: transform .15s, opacity .15s, box-shadow .15s;
}
.lp-btn:active { transform: scale(.97); }
.lp-btn--primary {
	background: linear-gradient(135deg, var(--gold), var(--gold2));
	color: #09121b;
	box-shadow: 0 4px 20px rgba(245,197,24,.30);
}
.lp-btn--primary:hover { opacity: .92; box-shadow: 0 6px 28px rgba(245,197,24,.40); }
.lp-btn--xl {
	padding: 14px 36px;
	font-size: 16px;
	min-width: 220px;
}
.lp-btn--ghost {
	background: transparent;
	border: 1px solid var(--border-lite);
	color: var(--text);
	padding: 10px 28px;
}
.lp-btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ── Highlights (feature list) ── */
.lp-highlights {
	list-style: none;
	padding: 0;
	margin: 0 auto;
	max-width: 400px;
	text-align: left;
}
.lp-highlights li {
	position: relative;
	padding: 6px 0 6px 24px;
	font-size: 14px;
	color: var(--text);
	line-height: 1.5;
}
.lp-highlights li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--green);
	font-weight: 700;
}

/* ── Auth section ── */
.lp-auth {
	width: 100%;
	max-width: 420px;
	padding: 0 20px 20px;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.lp-alert {
	padding: 10px 14px;
	border-radius: var(--r-sm);
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	margin-bottom: 14px;
}
.lp-alert--error {
	background: rgba(255,82,82,.12);
	border: 1px solid rgba(255,82,82,.3);
	color: var(--danger);
}
.lp-alert--success {
	background: rgba(61,186,76,.12);
	border: 1px solid rgba(61,186,76,.3);
	color: var(--green);
}
.lp-form-card {
	width: 100%;
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: 24px 20px;
	margin-bottom: 16px;
}
.lp-form-head {
	font-size: 16px;
	font-weight: 700;
	color: var(--gold);
	text-align: center;
	margin-bottom: 18px;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.lp-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.lp-field { position: relative; }
.lp-input,
.lp-select {
	width: 100%;
	padding: 12px 14px;
	background: var(--bg);
	border: 1px solid var(--border-lite);
	border-radius: var(--r-sm);
	color: var(--text);
	font-size: 14px;
	outline: none;
	box-sizing: border-box;
	transition: border-color .15s;
}
.lp-input:focus,
.lp-select:focus {
	border-color: var(--gold);
}
.lp-input::placeholder { color: var(--muted); }
.lp-country-detected {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	font-size: 13px;
}
.lp-country-detected a {
	color: var(--blue-acc);
	text-decoration: none;
}
.lp-country-detected a:hover { text-decoration: underline; }
.lp-forgot {
	text-align: center;
	margin: 8px 0 0;
	font-size: 13px;
}
.lp-forgot a { color: var(--muted); text-decoration: none; }
.lp-forgot a:hover { color: var(--gold); }
.lp-switch {
	text-align: center;
	font-size: 13px;
	color: var(--muted);
	margin: 14px 0 0;
}
.lp-switch a {
	color: var(--gold);
	font-weight: 600;
	text-decoration: none;
}
.lp-switch a:hover { text-decoration: underline; }

/* ── Social proof / ranking ── */
.lp-proof {
	width: 100%;
	max-width: 480px;
	padding: 0 20px 30px;
}
.lp-proof-head {
	font-size: 14px;
	font-weight: 700;
	color: var(--gold);
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-bottom: 10px;
	text-align: center;
}
.lp-ranking {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: var(--r);
	overflow: hidden;
}
.lp-ranking-header {
	display: grid;
	grid-template-columns: 40px 1fr 60px;
	padding: 8px 12px;
	font-size: 11px;
	font-weight: 700;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: .04em;
	border-bottom: 1px solid var(--border);
}
.lp-ranking-row {
	display: grid;
	grid-template-columns: 40px 1fr 60px;
	padding: 8px 12px;
	font-size: 13px;
	border-bottom: 1px solid var(--border);
	align-items: center;
}
.lp-ranking-row:last-child { border-bottom: none; }
.lp-rank-pos {
	font-weight: 700;
	color: var(--gold);
}
.lp-rank-name {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--text);
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.lp-rank-pts {
	text-align: right;
	color: var(--muted);
	font-weight: 600;
}

/* ── Language selector ── */
.lp-lang {
	width: 100%;
	max-width: 480px;
	padding: 0 20px 40px;
	text-align: center;
}
.lp-lang-wrap { display: inline-block; }
.lp-lang select,
.lp-lang .selectStyle {
	background: var(--bg);
	border: 1px solid var(--border-lite);
	border-radius: var(--r-sm);
	color: var(--text);
	padding: 8px 12px;
	font-size: 13px;
}

/* ── Landing page: reset app-shell to normal scrolling page ── */
body:has(.lp) .mobile-bottom-nav,
body:has(.lp) .site-footer { display: none !important; }
body:has(.lp) .server-time { display: none !important; }
body:has(.lp) .header-shell { display: none !important; }
html:has(.lp) { height: auto !important; overflow: auto !important; }
body:has(.lp) { height: auto !important; overflow: auto !important; display: block !important; padding-bottom: 0 !important; }
body:has(.lp) .page-shell { flex: none !important; overflow: visible !important; display: block !important; padding-bottom: 0 !important; width: 100% !important; max-width: 100% !important; zoom: 1 !important; }

/* ── Landing page footer ── */
.lp-footer {
	text-align: center;
	padding: 24px 16px 32px;
	font-size: 13px;
	color: var(--muted);
}
.lp-footer a {
	color: var(--muted);
	text-decoration: none;
}
.lp-footer a:hover { color: var(--text); }
.lp-footer-sep {
	margin: 0 6px;
	opacity: 0.4;
}

/* ── Language selector top bar ── */
.lp-lang-top {
	display: flex;
	justify-content: flex-end;
	padding: 10px 16px 0;
}

/* ── Language links footer (SEO) ── */
.language-links-footer {
	text-align: center;
	padding: 8px 12px;
	font-size: 10px;
	line-height: 1.8;
	color: rgba(255,255,255,0.25);
}
.language-links-footer a {
	color: rgba(255,255,255,0.25);
	text-decoration: none;
}
.language-links-footer a:hover {
	color: rgba(255,255,255,0.5);
}

/* SEO descriptions (hidden by default, toggle via info icon) */
.seo-descriptions {
	margin-top: 6px;
	display: inline;
}
.seo-descriptions-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	list-style: none;
	color: rgba(255,255,255,0.25);
	vertical-align: middle;
	margin-left: 4px;
	transition: color 0.2s;
}
.seo-descriptions-toggle::-webkit-details-marker { display: none; }
.seo-descriptions-toggle::marker { display: none; content: ''; }
.seo-descriptions-toggle:hover {
	color: rgba(255,255,255,0.5);
}
.seo-descriptions-content {
	max-width: 700px;
	margin: 8px auto 0;
	text-align: left;
	font-size: 11px;
	line-height: 1.5;
	color: rgba(255,255,255,0.3);
}
.seo-descriptions-content p {
	margin: 6px 0;
}

/* ── Responsive ── */
@media (min-width: 600px) {
	.lp-hero { padding: 60px 20px 50px; }
	.lp-cta-box { flex-direction: row; gap: 14px; justify-content: center; }
	.lp-cta-or { display: none; }
}
.gu-card-body li { margin-bottom: 4px; }