:root {
	--structure-red: #b71f1f;
	--structure-red-light: #d43737;
	--structure-gold: #b7791f;
	--structure-gold-light: #e1a337;
	--structure-dark: #050505;
	--structure-panel: rgba(12, 12, 12, 0.94);
	--structure-border: rgba(183, 31, 31, 0.28);
	--structure-text: rgba(255, 255, 255, 0.86);
	--structure-muted: rgba(255, 255, 255, 0.58);
}

/* ===============================
   CAMADAS GERAIS
================================ */

.site-background {
	position: absolute;
	inset: 0;
	min-height: 100%;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}

.structure-layer {
	position: relative;
	z-index: 2;
	overflow-x: hidden;
}

.bg-fog-gradient {
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72) 62%, rgba(0, 0, 0, 0.92));
}

.custom-border {
	border-color: rgba(183, 31, 31, 0.24) !important;
}

/* ===============================
   NAVBAR DESKTOP / TOPO
================================ */

.structure-navbar,
.navbar {
	position: relative;
	z-index: 5000;
	min-height: 54px;
	background:
		linear-gradient(180deg, rgba(4, 4, 4, 0.92), rgba(0, 0, 0, 0.86));
	border-bottom: 1px solid rgba(183, 31, 31, 0.16);
	box-shadow:
		0 8px 24px rgba(0, 0, 0, 0.34),
		inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.navbar .container-fluid {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ===============================
   BOTÃO MOBILE
================================ */

.mobile-menu-button {
	position: relative;
	z-index: 21000;
	width: 42px;
	height: 42px;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid rgba(183, 31, 31, 0.34);
	border-radius: 12px;
	background:
		linear-gradient(180deg, rgba(24, 12, 12, 0.98), rgba(5, 5, 5, 0.98));
	color: #fff;
	box-shadow:
		0 8px 18px rgba(0, 0, 0, 0.38),
		0 0 16px rgba(183, 31, 31, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
	transition:
		background 0.2s ease,
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.mobile-menu-button i {
	font-size: 28px;
	line-height: 1;
	color: #fff;
	text-shadow: 0 0 10px rgba(183, 31, 31, 0.45);
}

.mobile-menu-button:hover,
.mobile-menu-button:focus {
	background:
		linear-gradient(180deg, rgba(183, 31, 31, 0.92), rgba(95, 10, 10, 0.98));
	color: #fff;
	outline: none;
	transform: translateY(-1px);
	box-shadow:
		0 10px 22px rgba(0, 0, 0, 0.46),
		0 0 22px rgba(183, 31, 31, 0.28);
}

/* ===============================
   OFFCANVAS MOBILE
================================ */

.dark-offcanvas {
	width: min(82vw, 360px) !important;
	height: 100vh !important;
	min-height: 100vh !important;
	max-height: 100vh !important;
	z-index: 20000 !important;
	background:
		linear-gradient(180deg, rgba(18, 8, 8, 0.98), rgba(4, 4, 4, 0.99)) !important;
	border-right: 1px solid rgba(183, 31, 31, 0.35) !important;
	box-shadow:
		18px 0 40px rgba(0, 0, 0, 0.65),
		0 0 24px rgba(183, 31, 31, 0.14) !important;
	overflow: hidden !important;
}

.offcanvas-backdrop {
	z-index: 19990 !important;
	background-color: rgba(0, 0, 0, 0.72) !important;
}

.dark-offcanvas .offcanvas-header {
	min-height: 64px;
	padding: 14px 16px;
	border-bottom: 1px solid rgba(183, 31, 31, 0.24);
	background:
		linear-gradient(180deg, rgba(12, 6, 6, 0.96), rgba(0, 0, 0, 0.62));
}

.dark-offcanvas .btn-close {
	width: 34px;
	height: 34px;
	padding: 8px;
	border-radius: 12px;
	opacity: 0.9;
	background-color: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	filter:
		invert(1)
		grayscale(100%)
		brightness(200%)
		drop-shadow(0 0 8px rgba(183, 31, 31, 0.45));
}

.dark-offcanvas .btn-close:hover {
	opacity: 1;
	background-color: rgba(183, 31, 31, 0.20);
}

.dark-offcanvas .offcanvas-body {
	height: calc(100vh - 64px);
	max-height: calc(100vh - 64px);
	overflow-y: auto !important;
	overflow-x: hidden !important;
	padding-bottom: 26px !important;
	background:
		radial-gradient(circle at top left, rgba(183, 31, 31, 0.16), transparent 42%),
		linear-gradient(180deg, rgba(10, 10, 10, 0.98), rgba(0, 0, 0, 0.98));
}

.dark-offcanvas .offcanvas-body::-webkit-scrollbar {
	width: 6px;
}

.dark-offcanvas .offcanvas-body::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.03);
}

.dark-offcanvas .offcanvas-body::-webkit-scrollbar-thumb {
	background: rgba(183, 31, 31, 0.52);
	border-radius: 999px;
}

.mobile-user-panel {
	min-height: 92px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.dark-offcanvas .icon-offcanvas {
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: rgba(183, 31, 31, 0.12);
	border: 1px solid rgba(183, 31, 31, 0.28);
	color: var(--structure-red-light);
	font-size: 24px;
	box-shadow:
		0 0 16px rgba(183, 31, 31, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dark-offcanvas .fs-xl {
	color: #fff;
	font-size: 15px !important;
	font-weight: 900;
	line-height: 1.45;
}

.dark-offcanvas img {
	width: 18px;
	height: 18px;
	object-fit: contain;
	margin-right: 5px;
	filter:
		drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5))
		drop-shadow(0 0 7px rgba(183, 31, 31, 0.16));
}

.dark-offcanvas ul {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 14px 16px 14px !important;
}

.dark-offcanvas li {
	width: 100%;
}

.dark-offcanvas a {
	width: 100%;
	min-height: 42px;
	display: flex !important;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 12px;
	color: rgba(255, 255, 255, 0.82) !important;
	font-size: 14px !important;
	font-weight: 850;
	text-decoration: none !important;
	background: rgba(255, 255, 255, 0.025);
	border: 1px solid rgba(255, 255, 255, 0.045);
	transition:
		background 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

.dark-offcanvas a i {
	width: 20px;
	min-width: 20px;
	color: var(--structure-red-light);
	font-size: 16px;
	text-align: center;
	filter: drop-shadow(0 0 7px rgba(183, 31, 31, 0.28));
}

.dark-offcanvas a:hover,
.dark-offcanvas a:focus {
	color: #fff !important;
	background: rgba(183, 31, 31, 0.16);
	border-color: rgba(183, 31, 31, 0.34);
	transform: translateX(3px);
}

.dark-offcanvas a.text-warning,
.dark-offcanvas .text-warning {
	color: #f1b64f !important;
}

.dark-offcanvas .text-primary {
	color: #5aa9ff !important;
}

.offcanvas-section-title {
	display: block;
	padding: 0 18px 10px;
	color: var(--structure-gold);
	font-size: 11px;
	font-weight: 950;
	text-transform: uppercase;
	letter-spacing: 0.6px;
}

/* ===============================
   EVENTO TOPO
================================ */

.top-event-box {
	min-height: 38px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 10px;
	border-radius: 999px;
	background:
		linear-gradient(180deg, rgba(20, 12, 12, 0.88), rgba(0, 0, 0, 0.78));
	border: 1px solid rgba(183, 31, 31, 0.22);
	box-shadow:
		0 7px 16px rgba(0, 0, 0, 0.26),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.top-event-label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 12px;
	font-weight: 900;
	white-space: nowrap;
}

.top-event-label i {
	color: var(--structure-red-light);
}

.top-event-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #fff !important;
	font-size: 12px;
	font-weight: 950;
	text-decoration: none !important;
	white-space: nowrap;
}

.top-event-link:hover {
	color: #ffb3b3 !important;
}

/* ===============================
   ÁREA DO USUÁRIO TOPO
================================ */

.nav-user-area {
	position: relative;
	z-index: 20;
	gap: 6px;
}

.online-counter {
	min-height: 34px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 0 10px;
	border-radius: 999px;
	background: rgba(49, 184, 107, 0.08);
	border: 1px solid rgba(49, 184, 107, 0.18);
	font-size: 12px;
	font-weight: 950;
}

.nav-dropdown {
	min-height: 38px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px;
	border-radius: 999px;
	background:
		linear-gradient(180deg, rgba(18, 18, 18, 0.95), rgba(5, 5, 5, 0.95));
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.86) !important;
	text-decoration: none !important;
	font-size: 12px;
	font-weight: 900;
	box-shadow:
		0 7px 16px rgba(0, 0, 0, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-dropdown img {
	width: 18px;
	height: 18px;
	object-fit: contain;
}

.nav-account-box i:first-child {
	color: rgba(255, 255, 255, 0.76);
}

.nav-account-box:hover {
	border-color: rgba(183, 31, 31, 0.32);
	color: #fff !important;
}

/* ===============================
   DROPDOWNS DESKTOP
================================ */

.dropdown-nav {
	position: relative;
}

.dropdown-nav .nav-dropdown-menu {
	top: 100%;
	right: 0;
	min-width: 230px;
	margin-top: 8px;
	padding: 8px;
	border-radius: 14px;
	background:
		linear-gradient(180deg, rgba(18, 8, 8, 0.98), rgba(3, 3, 3, 0.98));
	border: 1px solid rgba(183, 31, 31, 0.28);
	box-shadow:
		0 16px 34px rgba(0, 0, 0, 0.52),
		0 0 18px rgba(183, 31, 31, 0.12);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(8px);
	transition:
		opacity 0.2s ease,
		visibility 0.2s ease,
		transform 0.2s ease;
}

.dropdown-nav:hover .nav-dropdown-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.nav-dropdown-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-dropdown-menu li {
	margin-bottom: 4px;
}

.nav-dropdown-menu li:last-child {
	margin-bottom: 0;
}

.nav-dropdown-menu a {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 8px 10px;
	border-radius: 10px;
	color: rgba(255, 255, 255, 0.82) !important;
	font-size: 13px;
	font-weight: 850;
	text-decoration: none !important;
	background: transparent;
	transition:
		background 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

.nav-dropdown-menu a i {
	color: var(--structure-red-light);
	width: 18px;
	text-align: center;
}

.nav-dropdown-menu a:hover {
	background: rgba(183, 31, 31, 0.16);
	color: #fff !important;
	transform: translateX(3px);
}

/* ===============================
   HEADER / LOGO / MENU PRINCIPAL
================================ */

.main-header {
	position: relative;
	z-index: 10;
}

.main-logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
}

.main-logo {
	max-width: 520px;
	height: auto;
	filter:
		drop-shadow(0 12px 18px rgba(0, 0, 0, 0.55))
		drop-shadow(0 0 18px rgba(183, 31, 31, 0.12));
}

.modern-header-menu {
	position: relative;
	z-index: 10;
}

.modern-header-menu ul {
	list-style: none;
}

.modern-header-menu a {
	position: relative;
	color: rgba(255, 255, 255, 0.82);
	font-size: 15px;
	font-weight: 900;
	text-decoration: none !important;
	text-transform: uppercase;
	letter-spacing: 0.25px;
	transition:
		color 0.2s ease,
		text-shadow 0.2s ease;
}

.modern-header-menu a:hover,
.modern-header-menu a.premium {
	color: #fff;
	text-shadow:
		0 0 8px rgba(183, 31, 31, 0.58),
		0 0 14px rgba(183, 31, 31, 0.32);
}

.modern-header-menu a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -7px;
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(90deg, transparent, var(--structure-red-light), transparent);
	opacity: 0;
	transform: scaleX(0.5);
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
}

.modern-header-menu a:hover::after {
	opacity: 1;
	transform: scaleX(1);
}

.modern-header-menu .decorator {
	height: 1px;
	margin-top: 10px;
	background: radial-gradient(circle, var(--structure-red) 0, transparent 98%);
	box-shadow: 0 3px 8px #000;
}

/* ===============================
   FOOTER
================================ */

.site-footer {
	position: relative;
	z-index: 5;
	margin-top: auto;
}

.footer-panel {
	padding: 24px;
	border-radius: 18px;
	background:
		linear-gradient(180deg, rgba(18, 10, 10, 0.78), rgba(3, 3, 3, 0.82));
	border: 1px solid rgba(183, 31, 31, 0.18);
	box-shadow:
		0 16px 38px rgba(0, 0, 0, 0.38),
		inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.site-footer a {
	text-decoration: none !important;
	transition: color 0.2s ease;
}

.site-footer a:hover {
	color: #fff !important;
}

.footer-social a {
	margin-bottom: 8px;
}

.footer-social i {
	transition:
		color 0.2s ease,
		transform 0.2s ease,
		filter 0.2s ease;
}

.footer-social a:hover i {
	color: var(--structure-red-light);
	transform: translateY(-2px);
	filter: drop-shadow(0 0 10px rgba(183, 31, 31, 0.42));
}

/* ===============================
   TOAST
================================ */

.toast-container {
	z-index: 25000;
}

.toast {
	border-radius: 14px !important;
	box-shadow:
		0 14px 30px rgba(0, 0, 0, 0.40),
		0 0 18px rgba(183, 119, 31, 0.18);
}

/* ===============================
   TOOLTIP
================================ */

.tooltip {
	--bs-tooltip-bg: #111;
	--bs-tooltip-color: #fff;
	--bs-tooltip-opacity: 1;
	z-index: 26000;
}

.tooltip-inner {
	max-width: 260px;
	padding: 9px 11px;
	border-radius: 10px;
	background:
		linear-gradient(180deg, rgba(24, 18, 18, 0.98), rgba(8, 8, 8, 0.98)) !important;
	border: 1px solid rgba(183, 31, 31, 0.38);
	color: rgba(255, 255, 255, 0.92) !important;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.45;
	box-shadow:
		0 10px 24px rgba(0, 0, 0, 0.50),
		0 0 16px rgba(183, 31, 31, 0.16);
}

/* ===============================
   RESPONSIVO
================================ */

@media (max-width: 1199px) {
	.main-logo {
		max-width: 420px;
	}
}

@media (max-width: 991px) {
	.mobile-menu-button {
		display: inline-flex;
	}

	.structure-navbar,
	.navbar {
		position: relative;
		z-index: 10000;
		min-height: 56px;
		padding-top: 6px !important;
		padding-bottom: 6px !important;
		background:
			linear-gradient(180deg, rgba(4, 4, 4, 0.96), rgba(0, 0, 0, 0.92));
		border-bottom: 1px solid rgba(183, 31, 31, 0.18);
	}

	.navbar .container-fluid {
		position: relative;
		display: flex;
		align-items: center;
		gap: 8px;
		padding-left: 8px;
		padding-right: 8px;
	}

	.top-event-box {
		flex: 1;
		min-width: 0;
		justify-content: center;
		margin: 0 4px;
		padding-left: 8px;
		padding-right: 8px;
	}

	.top-event-label {
		display: none !important;
	}

	.top-event-link {
		max-width: 190px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		font-size: 12px !important;
	}

	.nav-user-area {
		margin-left: 0 !important;
		gap: 6px;
	}

	.online-counter,
	.nav-wallet-box {
		display: none !important;
	}

	.nav-account-box {
		min-height: 40px;
		max-width: 128px;
		padding: 0 10px !important;
		overflow: hidden;
		font-size: 12px !important;
	}

	.nav-account-box .nav-account-name {
		display: inline-block;
		max-width: 76px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.nav-account-box .bi-chevron-down {
		display: none;
	}

	.main-header {
		padding-top: 28px !important;
		justify-content: center !important;
	}

	.main-logo {
		max-width: 260px !important;
		height: auto !important;
	}
}

@media (max-width: 576px) {
	.main-header {
		padding-top: 24px !important;
	}

	.main-logo {
		max-width: 230px !important;
	}

	.footer-panel {
		padding: 18px;
	}

	.footer-social {
		flex-direction: row !important;
		gap: 14px;
		margin-right: 0 !important;
		margin-bottom: 16px;
	}
}

@media (max-width: 480px) {
	.dark-offcanvas {
		width: 86vw !important;
	}

	.top-event-link {
		max-width: 145px;
	}

	.nav-account-box {
		max-width: 104px;
	}

	.nav-account-box .nav-account-name {
		max-width: 58px;
	}

	.dark-offcanvas a {
		font-size: 13px !important;
	}

	.dark-offcanvas ul {
		padding-left: 10px !important;
		padding-right: 10px !important;
	}

	.offcanvas-section-title {
		padding-left: 14px;
		padding-right: 14px;
	}
}

@media (max-width: 380px) {
	.top-event-box {
		display: none !important;
	}

	.nav-account-box {
		max-width: 130px;
	}

	.nav-account-box .nav-account-name {
		max-width: 78px;
	}
}

/* ===============================
   FIX FINAL DROPDOWN DESKTOP
   Posicionamento correto abaixo dos botões
================================ */

@media (min-width: 992px) {
	.nav-user-area {
		position: relative;
		z-index: 30000;
	}

	.nav-user-area .nav-dropdown {
		position: relative;
		z-index: 30020;
	}

	.nav-user-area .dropdown-nav {
		position: absolute;
		top: 100%;
		z-index: 30010;
		display: block !important;
		pointer-events: none;
	}

	/* Dropdown da carteira / loja */
	.nav-wallet-box + .dropdown-nav {
		right: 116px;
		width: 230px;
	}

	/* Dropdown da conta */
	.nav-account-box + .dropdown-nav {
		right: 0;
		width: 250px;
	}

	.nav-user-area .nav-dropdown-menu {
		position: relative !important;
		top: 8px !important;
		right: auto !important;
		left: auto !important;
		width: 100% !important;
		min-width: 100% !important;
		margin: 0 !important;
		padding: 8px !important;
		border-radius: 16px;
		background:
			linear-gradient(180deg, rgba(18, 8, 8, 0.98), rgba(3, 3, 3, 0.98));
		border: 1px solid rgba(183, 31, 31, 0.34);
		box-shadow:
			0 16px 34px rgba(0, 0, 0, 0.52),
			0 0 18px rgba(183, 31, 31, 0.14);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(6px);
		transition:
			opacity 0.18s ease,
			visibility 0.18s ease,
			transform 0.18s ease;
	}

	/* Ponte invisível entre botão e menu */
	.nav-user-area .dropdown-nav::before {
		content: "";
		position: absolute;
		top: -10px;
		left: 0;
		right: 0;
		height: 18px;
		background: transparent;
	}

	.nav-wallet-box:hover + .dropdown-nav,
	.nav-wallet-box + .dropdown-nav:hover,
	.nav-account-box:hover + .dropdown-nav,
	.nav-account-box + .dropdown-nav:hover {
		pointer-events: auto;
	}

	.nav-wallet-box:hover + .dropdown-nav .nav-dropdown-menu,
	.nav-wallet-box + .dropdown-nav:hover .nav-dropdown-menu,
	.nav-account-box:hover + .dropdown-nav .nav-dropdown-menu,
	.nav-account-box + .dropdown-nav:hover .nav-dropdown-menu {
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
		transform: translateY(0) !important;
	}

	.nav-user-area .nav-dropdown-menu ul {
		margin: 0 !important;
		padding: 0 !important;
		list-style: none !important;
	}

	.nav-user-area .nav-dropdown-menu li {
		margin: 0 0 5px 0 !important;
		padding: 0 !important;
	}

	.nav-user-area .nav-dropdown-menu li:last-child {
		margin-bottom: 0 !important;
	}

	.nav-user-area .nav-dropdown-menu a {
		width: 100%;
		min-height: 40px;
		display: flex !important;
		align-items: center;
		gap: 9px;
		padding: 9px 11px !important;
		border-radius: 11px;
		color: rgba(255, 255, 255, 0.86) !important;
		font-size: 13px !important;
		font-weight: 900 !important;
		text-decoration: none !important;
		background: transparent !important;
		border: 1px solid transparent !important;
		white-space: nowrap;
		transition:
			background 0.18s ease,
			border-color 0.18s ease,
			color 0.18s ease,
			transform 0.18s ease;
	}

	.nav-user-area .nav-dropdown-menu a i {
		width: 18px;
		min-width: 18px;
		color: #d43737;
		font-size: 15px;
		text-align: center;
	}

	.nav-user-area .nav-dropdown-menu a:hover {
		color: #fff !important;
		background: rgba(183, 31, 31, 0.16) !important;
		border-color: rgba(183, 31, 31, 0.26) !important;
		transform: translateX(3px);
	}
}