/* ==========================================================================
   League Page + AI Football Analyst — Unified Dynamic Sidebar (v1.5.1)
   Integrates custom Schema.org betting-tools HTML base with AI dark aesthetic.
   ========================================================================== */

:root {
	--lp-usb-width: 296px;
	--lp-usb-bg: #0b0d12;
	--lp-usb-navy-top: #0e1827;
	--lp-usb-navy-bot: #09101c;
	--lp-usb-surface: #11151e;
	--lp-usb-card: #141923;
	--lp-usb-hover: #1a2233;
	--lp-usb-border: #1f2430;
	--lp-usb-border-strong: #262d3d;
	--lp-usb-text: #e6ebf2;
	--lp-usb-muted: #94a3b8;
	--lp-usb-accent: #2563eb;
	--lp-usb-accent-hover: #3b82f6;
	--lp-usb-gold: #fcd34d;
	--lp-usb-cyan: #22d3ee;
	--lp-usb-green: #4ade80;
	--lp-usb-top-offset: 0px;
}

body.admin-bar {
	--lp-usb-top-offset: 32px;
}

@media (max-width: 782px) {
	body.admin-bar {
		--lp-usb-top-offset: 46px;
	}
}

/* Smooth desktop docked layout push without horizontal overflow */
@media (min-width: 1024px) {
	body.lp-usb-ready {
		transition: padding-left 0.24s cubic-bezier(0.22, 1, 0.36, 1);
		overflow-x: clip;
	}

	body.lp-usb-open {
		padding-left: var(--lp-usb-width);
	}
}

/* Floating top-left toggle button (visible when sidebar is collapsed) */
.lp-usb-fab {
	position: fixed;
	top: calc(var(--lp-usb-top-offset) + 14px);
	left: 14px;
	z-index: 99920;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	background: rgba(17, 21, 30, 0.92);
	color: #cbd5e1;
	border: 1px solid var(--lp-usb-border-strong);
	border-radius: 10px;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.48);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	cursor: pointer;
	transition: opacity 0.18s ease, transform 0.18s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.lp-usb-fab:hover,
.lp-usb-fab:focus-visible {
	background: var(--lp-usb-hover);
	border-color: var(--lp-usb-cyan);
	color: #ffffff;
	outline: none;
}

body.lp-usb-open .lp-usb-fab {
	opacity: 0;
	pointer-events: none;
	transform: translateX(-8px);
}

/* Mobile / Tablet Drawer Backdrop */
.lp-usb-backdrop {
	position: fixed;
	inset: 0;
	z-index: 99940;
	background: rgba(5, 8, 14, 0.72);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s ease;
}

.lp-usb-backdrop[hidden] {
	display: none;
}

@media (max-width: 1023px) {
	body.lp-usb-open .lp-usb-backdrop {
		opacity: 1;
		pointer-events: auto;
	}
}

@media (min-width: 1024px) {
	.lp-usb-backdrop {
		display: none !important;
	}
}

/* Unified Sidebar Shell */
.lp-usb {
	position: fixed;
	top: var(--lp-usb-top-offset);
	left: 0;
	bottom: 0;
	width: var(--lp-usb-width);
	max-width: 88vw;
	z-index: 99950;
	display: flex;
	flex-direction: column;
	background: linear-gradient(180deg, var(--lp-usb-bg) 0%, var(--lp-usb-navy-bot) 100%);
	color: var(--lp-usb-text);
	border-right: 1px solid rgba(34, 211, 238, 0.16);
	box-shadow: 12px 0 38px rgba(0, 0, 0, 0.54);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
	transform: translateX(-100%);
	transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
	overflow: hidden;
}

.lp-usb *,
.lp-usb *::before,
.lp-usb *::after {
	box-sizing: border-box;
}

body.lp-usb-open .lp-usb {
	transform: translateX(0);
}

/* Top Brand Bar */
.lp-usb__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 13px 14px;
	background: var(--lp-usb-surface);
	border-bottom: 1px solid var(--lp-usb-border);
	flex-shrink: 0;
}

.lp-usb__brand {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
}

.lp-usb__brand-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--lp-usb-green);
	box-shadow: 0 0 9px rgba(74, 222, 128, 0.72);
	flex-shrink: 0;
}

.lp-usb__brand-title {
	font-size: 0.88rem;
	font-weight: 700;
	color: #f3f6fb;
	letter-spacing: 0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lp-usb__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	background: var(--lp-usb-card);
	color: var(--lp-usb-muted);
	border: 1px solid var(--lp-usb-border-strong);
	border-radius: 8px;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lp-usb__close:hover,
.lp-usb__close:focus-visible {
	background: var(--lp-usb-hover);
	border-color: var(--lp-usb-cyan);
	color: #ffffff;
	outline: none;
}

/* Mode Switcher Tabs (Chat | Predictions | History) */
.lp-usb__mode-tabs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px;
	padding: 9px 10px;
	background: var(--lp-usb-surface);
	border-bottom: 1px solid rgba(34, 211, 238, 0.14);
	flex-shrink: 0;
}

.lp-usb__mode-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 7px 6px;
	background: transparent;
	color: var(--lp-usb-muted);
	border: 1px solid transparent;
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.73rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.lp-usb__mode-tab:hover {
	background: var(--lp-usb-card);
	color: #f3f6fb;
}

.lp-usb__mode-tab.is-active {
	background: rgba(37, 99, 235, 0.22);
	border-color: rgba(59, 130, 246, 0.5);
	color: #ffffff;
}

/* Internal Vertical Scrollable Container (Zero Horizontal Scroll) */
.lp-usb__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 0;
	scrollbar-width: thin;
	scrollbar-color: #262d3d transparent;
}

.lp-usb__body::-webkit-scrollbar {
	width: 5px;
}

.lp-usb__body::-webkit-scrollbar-track {
	background: transparent;
}

.lp-usb__body::-webkit-scrollbar-thumb {
	background: #262d3d;
	border-radius: 999px;
}

.lp-usb__panel {
	display: none;
}

.lp-usb__panel.is-active {
	display: block;
}

.lp-usb__panel-pad {
	padding: 12px;
}

.lp-usb__section-label {
	margin: 12px 4px 8px;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #64748b;
}

/* ==========================================================================
   CHAT MODE PANEL
   ========================================================================== */
.lp-usb__panel-head {
	margin-bottom: 6px;
}

.lp-usb__new-conv {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 10px 12px;
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	color: #ffffff;
	border: 1px solid rgba(96, 165, 250, 0.35);
	border-radius: 10px;
	font-family: inherit;
	font-size: 0.84rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
	transition: filter 0.15s ease, transform 0.14s ease, box-shadow 0.15s ease;
}

.lp-usb__new-conv:hover {
	filter: brightness(1.08);
	box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.lp-usb__new-conv:active {
	transform: scale(0.99);
}

.lp-usb__conv-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.lp-usb__conv-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 9px;
	cursor: pointer;
	text-align: left;
	width: 100%;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.lp-usb__conv-item:hover {
	background: var(--lp-usb-card);
	border-color: var(--lp-usb-border);
}

.lp-usb__conv-item.is-active {
	background: rgba(37, 99, 235, 0.18);
	border-color: rgba(59, 130, 246, 0.45);
}

.lp-usb__conv-main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.lp-usb__conv-title {
	font-size: 0.81rem;
	font-weight: 500;
	color: var(--lp-usb-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
}

.lp-usb__conv-item.is-active .lp-usb__conv-title {
	color: #ffffff;
	font-weight: 600;
}

.lp-usb__conv-meta {
	font-size: 0.69rem;
	color: #64748b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lp-usb__conv-del {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	background: transparent;
	color: #64748b;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	flex-shrink: 0;
	opacity: 0;
	transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.lp-usb__conv-item:hover .lp-usb__conv-del,
.lp-usb__conv-item:focus-within .lp-usb__conv-del,
.lp-usb__conv-item.is-active .lp-usb__conv-del {
	opacity: 1;
}

@media (hover: none) {
	.lp-usb__conv-del {
		opacity: 0.78;
	}
}

.lp-usb__conv-del:hover {
	background: rgba(239, 68, 68, 0.18);
	color: #f87171;
}

/* ==========================================================================
   PREDICTIONS & HISTORY PANELS — Custom HTML Base Adapted to AI Theme
   ========================================================================== */
.lp-usb-betting-tools {
	background: linear-gradient(180deg, #0d192a 0%, #09111e 100%);
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.lp-usb-betting-tools .betting-tools-header {
	padding: 11px 11px 10px;
	background:
		radial-gradient(ellipse at top left, rgba(252, 211, 77, 0.08) 0%, transparent 55%),
		radial-gradient(ellipse at bottom right, rgba(34, 211, 238, 0.09) 0%, transparent 55%),
		linear-gradient(135deg, #111c2f 0%, #0b1424 100%);
	border-bottom: 1px solid rgba(34, 211, 238, 0.16);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lp-usb-betting-tools .betting-tools-metrics {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
}

.lp-usb-betting-tools .betting-tools-metric {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 8px;
	background: rgba(0, 0, 0, 0.34);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	transition: border-color 0.18s ease, background 0.18s ease;
	min-width: 0;
	text-decoration: none !important;
}

.lp-usb-betting-tools .betting-tools-metric:hover {
	border-color: rgba(252, 211, 77, 0.45);
	background: rgba(252, 211, 77, 0.07);
}

.lp-usb-betting-tools .betting-tools-metric-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 6px;
	background: rgba(34, 211, 238, 0.12);
	border: 1px solid rgba(34, 211, 238, 0.28);
	color: var(--lp-usb-cyan);
}

.lp-usb-betting-tools .betting-tools-metric:nth-child(2) .betting-tools-metric-icon {
	background: rgba(252, 211, 77, 0.12);
	border-color: rgba(252, 211, 77, 0.32);
	color: var(--lp-usb-gold);
}

.lp-usb-betting-tools .betting-tools-metric-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.lp-usb-betting-tools .betting-tools-metric-value {
	font-size: 13.5px;
	font-weight: 800;
	color: #ffffff;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.lp-usb-betting-tools .betting-tools-metric-label {
	font-size: 8.5px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.58);
	text-transform: uppercase;
	letter-spacing: 0.4px;
	line-height: 1;
}

.lp-usb-betting-tools .betting-tools-hub-pills {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
}

.lp-usb-betting-tools .bt-hub-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 5px 4px;
	border-radius: 6px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.3px;
	text-decoration: none !important;
	background: rgba(0, 0, 0, 0.34);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.85) !important;
	transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
	white-space: nowrap;
}

.lp-usb-betting-tools .bt-hub-pill:hover,
.lp-usb-betting-tools .bt-hub-pill.is-active {
	background: rgba(252, 211, 77, 0.15);
	border-color: var(--lp-usb-gold);
	color: #ffffff !important;
}

/* Search Input inside Predictions & History Header */
.lp-usb__search-wrap {
	position: relative;
}

.lp-usb__search-icon {
	position: absolute;
	left: 9px;
	top: 50%;
	transform: translateY(-50%);
	color: #64748b;
	pointer-events: none;
}

.lp-usb__search {
	width: 100%;
	padding: 7px 10px 7px 29px;
	background: rgba(0, 0, 0, 0.34);
	color: var(--lp-usb-text);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	font-family: inherit;
	font-size: 12px;
	outline: none;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.lp-usb__search::placeholder {
	color: #64748b;
}

.lp-usb__search:focus {
	border-color: rgba(34, 211, 238, 0.55);
	background: rgba(0, 0, 0, 0.5);
}

/* Country & League Accordion List */
.lp-usb-betting-tools .betting-tools-list {
	padding: 4px 0 10px;
}

.lp-usb-betting-tools .league-country {
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lp-usb-betting-tools .league-country:last-of-type {
	border-bottom: none;
}

.lp-usb-betting-tools .league-country[hidden],
.lp-usb-betting-tools .league-links > li[hidden] {
	display: none !important;
}

.lp-usb-betting-tools .country-row {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	position: relative;
	transition: background-color 0.2s ease;
}

.lp-usb-betting-tools .country-row::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%) scaleY(0);
	width: 3px;
	height: 62%;
	background: linear-gradient(180deg, var(--lp-usb-gold), var(--lp-usb-cyan));
	border-radius: 0 2px 2px 0;
	transition: transform 0.22s ease;
}

.lp-usb-betting-tools .country-row:hover::before,
.lp-usb-betting-tools .country-row.open::before,
.lp-usb-betting-tools .country-row.active-country::before {
	transform: translateY(-50%) scaleY(1);
}

.lp-usb-betting-tools .country-row:hover {
	background: linear-gradient(90deg, rgba(34, 211, 238, 0.1) 0%, rgba(34, 211, 238, 0.02) 100%);
}

.lp-usb-betting-tools .country-row.open,
.lp-usb-betting-tools .country-row.active-country {
	background: linear-gradient(90deg, rgba(252, 211, 77, 0.14) 0%, rgba(252, 211, 77, 0.03) 100%);
}

.lp-usb-betting-tools .country-link {
	display: flex;
	align-items: center;
	gap: 9px;
	flex: 1 1 auto;
	min-width: 0;
	padding: 9px 6px 9px 13px;
	color: #e5e7eb !important;
	font-weight: 600;
	font-size: 13px;
	text-decoration: none !important;
	line-height: 1.2;
	overflow: hidden;
	white-space: nowrap;
}

.lp-usb-betting-tools .country-row:hover .country-link {
	color: #ffffff !important;
}

.lp-usb-betting-tools .country-row.open .country-link,
.lp-usb-betting-tools .country-row.active-country .country-link {
	color: var(--lp-usb-gold) !important;
	font-weight: 700;
}

.lp-usb-betting-tools .country-flag {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.24);
	object-fit: cover;
	flex-shrink: 0;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.lp-usb-betting-tools .country-row:hover .country-flag {
	transform: scale(1.07);
	border-color: rgba(252, 211, 77, 0.55);
}

.lp-usb-betting-tools .country-row.open .country-flag,
.lp-usb-betting-tools .country-row.active-country .country-flag {
	border-color: var(--lp-usb-gold);
}

.lp-usb__flag-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #1f2430;
	border: 1.5px solid rgba(255, 255, 255, 0.2);
	color: #cbd5e1;
	font-size: 9px;
	font-weight: 700;
	flex-shrink: 0;
}

.lp-usb-betting-tools .country-name {
	overflow: hidden;
	text-overflow: ellipsis;
}

.lp-usb-betting-tools .toggle-country {
	background: transparent !important;
	border: none !important;
	border-left: 1px solid rgba(255, 255, 255, 0.05) !important;
	border-radius: 0 !important;
	padding: 0 10px !important;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: rgba(255, 255, 255, 0.58) !important;
	transition: background 0.18s ease, color 0.18s ease;
	flex-shrink: 0;
}

.lp-usb-betting-tools .toggle-country:hover {
	background: rgba(252, 211, 77, 0.1) !important;
	color: var(--lp-usb-gold) !important;
}

/* Sleek Dynamic Match Count Badges (in parentheses) */
.lp-usb-betting-tools .country-count,
.lp-usb-betting-tools .league-count {
	font-size: 10.5px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.42);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.62);
	font-variant-numeric: tabular-nums;
	line-height: 1.15;
	flex-shrink: 0;
	white-space: nowrap;
}

.lp-usb-betting-tools .country-count.has-matches,
.lp-usb-betting-tools .league-count.has-matches {
	background: rgba(34, 211, 238, 0.12);
	border-color: rgba(34, 211, 238, 0.34);
	color: var(--lp-usb-cyan);
}

.lp-usb-betting-tools .country-count--history,
.lp-usb-betting-tools .league-count--history {
	background: rgba(34, 211, 238, 0.11);
	border-color: rgba(34, 211, 238, 0.3);
	color: #67e8f9;
}

.lp-usb-betting-tools .country-row.open .country-count,
.lp-usb-betting-tools .country-row.active-country .country-count {
	border-color: rgba(252, 211, 77, 0.48);
	color: var(--lp-usb-gold);
	background: rgba(252, 211, 77, 0.13);
}

.lp-usb-betting-tools .toggle-country .arrow {
	font-size: 10px;
	transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.lp-usb-betting-tools .country-row.open .toggle-country .arrow {
	transform: rotate(180deg);
	color: var(--lp-usb-gold);
}

/* Level 2: Leagues Accordion */
.lp-usb-betting-tools .league-links {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
	list-style: none;
	padding: 0;
	margin: 0;
	background: rgba(0, 0, 0, 0.24) !important;
}

.lp-usb-betting-tools .league-links.open {
	max-height: 3000px;
}

.lp-usb-betting-tools .league-links > li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.lp-usb-betting-tools .league-links > li:last-child {
	border-bottom: none;
}

.lp-usb-betting-tools .league-item {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px 5px 24px;
	position: relative;
	transition: background-color 0.18s ease;
}

.lp-usb-betting-tools .league-item::before {
	content: '';
	position: absolute;
	left: 13px;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 4px;
	background: rgba(34, 211, 238, 0.42);
	border-radius: 50%;
	transition: background-color 0.2s ease;
}

.lp-usb-betting-tools .league-item:hover {
	background: rgba(255, 255, 255, 0.035);
}

.lp-usb-betting-tools .league-item:hover::before,
.lp-usb-betting-tools .league-item.active-league-item::before {
	background: var(--lp-usb-gold);
}

.lp-usb__league-logo {
	width: 16px;
	height: 16px;
	object-fit: contain;
	flex-shrink: 0;
	border-radius: 3px;
}

.lp-usb-betting-tools .league-name {
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 600;
	font-size: 12.2px;
	color: #cbd5e1 !important;
	padding: 4px 2px 4px 0;
	text-decoration: none !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
	transition: color 0.18s ease;
}

.lp-usb-betting-tools .league-item:hover .league-name {
	color: var(--lp-usb-gold) !important;
}

.lp-usb-betting-tools .league-name.active-league {
	color: var(--lp-usb-gold) !important;
	font-weight: 800;
}

.lp-usb-betting-tools .toggle-sub {
	background: rgba(255, 255, 255, 0.04) !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	color: rgba(255, 255, 255, 0.6) !important;
	font-size: 10px;
	cursor: pointer;
	padding: 0 !important;
	transition: transform 0.22s ease, color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
	flex-shrink: 0;
	width: 23px;
	height: 23px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
}

.lp-usb-betting-tools .toggle-sub:hover,
.lp-usb-betting-tools .toggle-sub.open {
	color: var(--lp-usb-gold) !important;
	border-color: rgba(252, 211, 77, 0.45) !important;
	background: rgba(252, 211, 77, 0.12) !important;
}

.lp-usb-betting-tools .toggle-sub.open {
	transform: rotate(180deg);
}

/* Level 3: Markets Sub-Links */
.lp-usb-betting-tools .sub-links {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
	list-style: none;
	padding: 0;
	margin: 0;
	background: rgba(0, 0, 0, 0.32);
}

.lp-usb-betting-tools .sub-links.open {
	max-height: 400px;
}

.lp-usb-betting-tools .sub-links li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.lp-usb-betting-tools .sub-links li:last-child {
	border-bottom: none;
}

.lp-usb-betting-tools .sub-links a {
	display: flex !important;
	align-items: center;
	gap: 8px;
	padding: 7px 11px 7px 30px !important;
	font-size: 11.5px;
	font-weight: 600;
	color: #94a3b8 !important;
	text-decoration: none !important;
	transition: background 0.16s ease, color 0.16s ease;
	position: relative;
	line-height: 1.25;
}

.lp-usb-betting-tools .sub-links a::before {
	content: '';
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%) scaleY(0);
	width: 2px;
	height: 58%;
	background: var(--lp-usb-gold);
	border-radius: 2px;
	transition: transform 0.2s ease;
}

.lp-usb-betting-tools .sub-links a .bt-m-ico {
	color: rgba(255, 255, 255, 0.45);
	transition: color 0.16s ease;
	flex-shrink: 0;
}

.lp-usb-betting-tools .sub-links a:hover {
	background: rgba(34, 211, 238, 0.1) !important;
	color: #ffffff !important;
}

.lp-usb-betting-tools .sub-links a:hover::before,
.lp-usb-betting-tools .sub-links a.active-sub::before {
	transform: translateY(-50%) scaleY(1);
}

.lp-usb-betting-tools .sub-links a:hover .bt-m-ico,
.lp-usb-betting-tools .sub-links a.active-sub .bt-m-ico {
	color: var(--lp-usb-gold);
}

.lp-usb-betting-tools .sub-links a.active-sub {
	color: var(--lp-usb-gold) !important;
	background: rgba(252, 211, 77, 0.1) !important;
	font-weight: 800;
}

.lp-usb-betting-tools .bt-m-badge {
	margin-left: auto;
	font-size: 9px;
	font-weight: 800;
	padding: 1.5px 5px;
	border-radius: 4px;
	letter-spacing: 0.3px;
	line-height: 1.1;
	flex-shrink: 0;
}

.lp-usb-betting-tools .bt-m-1x2 {
	background: rgba(252, 211, 77, 0.14);
	color: var(--lp-usb-gold);
	border: 1px solid rgba(252, 211, 77, 0.35);
}

.lp-usb-betting-tools .bt-m-ou {
	background: rgba(34, 211, 238, 0.14);
	color: var(--lp-usb-cyan);
	border: 1px solid rgba(34, 211, 238, 0.35);
}

.lp-usb-betting-tools .bt-m-btts {
	background: rgba(74, 222, 128, 0.14);
	color: var(--lp-usb-green);
	border: 1px solid rgba(74, 222, 128, 0.35);
}

.lp-usb__empty {
	padding: 16px 12px;
	font-size: 0.78rem;
	color: #64748b;
	text-align: center;
	line-height: 1.45;
}

.lp-usb__empty[hidden] {
	display: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.lp-usb,
	.lp-usb *,
	.lp-usb *::before,
	.lp-usb *::after,
	body.lp-usb-ready {
		transition: none !important;
		animation: none !important;
	}
}

/* ==========================================================================
   Shared Responsible Gaming & Information Notice (Minimal Centered AI Style)
   ========================================================================== */
.oup-rg-notice-wrap {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 30px 14px;
	box-sizing: border-box;
}

.oup-rg-notice {
	width: 100%;
	max-width: 960px;
	margin: 18px auto 6px;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.oup-rg-notice-wrap .oup-rg-notice {
	max-width: 100%;
	margin-top: 14px;
}

.oup-rg-notice__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	padding: 8px 10px;
	background: transparent;
	border: none;
	border-radius: 0;
	color: #94a3b8;
	text-align: center;
}

.oup-rg-notice__head {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.oup-rg-notice__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: rgba(252, 211, 77, 0.12);
	border: 1px solid rgba(252, 211, 77, 0.38);
	color: #fcd34d;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	line-height: 1;
	flex-shrink: 0;
}

.oup-rg-notice__title {
	font-size: 0.86rem;
	font-weight: 700;
	color: #cbd5e1;
	letter-spacing: 0.015em;
	line-height: 1.25;
}

.oup-rg-notice__text {
	margin: 0 auto;
	max-width: 780px;
	font-size: 0.84rem;
	font-weight: 400;
	line-height: 1.6;
	color: #94a3b8;
	text-align: center;
}

@media (max-width: 600px) {
	.oup-rg-notice-wrap {
		padding: 0 16px 12px;
	}

	.oup-rg-notice {
		margin: 14px auto 4px;
	}

	.oup-rg-notice__inner {
		padding: 6px 8px;
	}

	.oup-rg-notice__title {
		font-size: 0.82rem;
	}

	.oup-rg-notice__text {
		font-size: 0.8rem;
		line-height: 1.56;
	}
}
