@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
	--nav-bg: #111827;
	--nav-border: #1f2937;
	--nav-text: #f3f4f6;
	--nav-muted: #9ca3af;
	--nav-accent-primary: #60a5fa;
	--nav-accent-secondary: #3b82f6;
	--nav-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	--nav-hover: #1f2937;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

.navbar {
	width: 100%;
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--nav-bg);
	border-bottom: 1px solid var(--nav-border);
	box-shadow: var(--nav-shadow);
}

.navbar-accent {
	display: none;
}

.navbar-shell {
	width: min(1280px, calc(100% - 2rem));
	margin: 0 auto;
	padding: 1rem 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.navbar-left-section {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-width: 0;
}

.brand-link {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	text-decoration: none;
	flex-shrink: 0;
	min-width: 0;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-link:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.brand-mark {
	width: 2.5rem;
	height: 2.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 0.5rem;
	background: var(--nav-accent-primary);
	color: #ffffff;
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	box-shadow: none;
	flex-shrink: 0;
	border: none;
	position: relative;
	font-family: 'Montserrat', sans-serif;
}

.brand-mark::before {
	display: none;
}

.brand-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 0.18rem;
}

.brand-kicker {
	color: var(--nav-muted);
	font-size: 0.65rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1;
	font-weight: 600;
	font-family: 'Montserrat', sans-serif;
}

.brand-title {
	color: var(--nav-text);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.1;
	font-family: 'Montserrat', sans-serif;
	text-shadow: none;
}

.brand-subtitle {
	display: none;
}

.navbar-actions {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.node-dropdown,
.help-dropdown,
.user-welcome-dropdown {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.nodes-display {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
}

.node-trigger,
.help-trigger,
.nav-link,
.nav-link-ghost,
.nav-link-register,
.nav-btn,
.logout-btn,
.user-welcome-trigger {
	border: 1px solid transparent;
	background: transparent;
	font-family: 'Montserrat', sans-serif;
	cursor: pointer;
	padding: 0.5rem 1rem;
	height: auto;
	color: var(--nav-text);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 0.375rem;
	transition: all 0.2s ease;
}

.node-trigger,
.help-trigger,
.nav-link-ghost,
.nav-btn,
.logout-btn,
.user-welcome-trigger {
	background: transparent;
	border-color: transparent;
	box-shadow: none;
}

.node-trigger:hover,
.help-trigger:hover,
.nav-link-ghost:hover,
.nav-btn:hover,
.logout-btn:hover,
.user-welcome-trigger:hover {
	transform: none;
	background: var(--nav-hover);
	border-color: transparent;
	color: var(--nav-text);
	box-shadow: none;
}

.node-trigger:hover {
	background: var(--nav-hover);
	color: var(--nav-text);
	border-color: transparent;
	box-shadow: none;
}

.help-trigger {
	gap: 0.5rem;
	padding-inline: 1rem 0.9rem;
	background: transparent;
	border: 1px solid #374151;
	color: var(--nav-text);
	box-shadow: none;
	position: relative;
}

.help-trigger:hover {
	background: #374151;
	border-color: #4b5563;
	color: var(--nav-accent-primary);
	box-shadow: none;
}

.help-trigger::after {
	content: '▾';
	display: inline-block;
	font-size: 0.78rem;
	line-height: 1;
	color: currentColor;
	opacity: 0.9;
	transition: transform 0.22s ease;
}

.help-dropdown.open .help-trigger::after,
.help-trigger:hover::after {
	transform: translateY(1px);
}

.nav-link,
.nav-link-register {
	padding-inline: 1.1rem;
	height: 2.55rem;
	text-decoration: none;
	border-radius: 0;
}

.nav-link {
	color: var(--nav-muted);
	background: transparent;
	border: 2px solid transparent;
}

.nav-link:hover {
	color: var(--nav-accent-primary);
	background: transparent;
	border-color: transparent;
	box-shadow: none;
}

.main-site-link {
	background: var(--nav-accent-primary) !important;
	color: white !important;
	border-top: 1px solid var(--nav-accent-primary) !important;
	margin-top: 0.3rem !important;
	padding-top: 0.9rem !important;
	font-weight: 700 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}

.main-site-link:hover {
	background: #2563eb !important;
	border-top-color: #2563eb !important;
	transform: none !important;
	color: white !important;
	box-shadow: none !important;
}

.node-trigger::after,
.nav-link::after {
	display: none;
}

.node-trigger:hover {
	background: var(--nav-hover);
	border-color: transparent;
	color: var(--nav-text);
	box-shadow: none;
}

.nav-link-ghost {
	color: var(--nav-muted);
	border: 1px solid transparent;
}

.nav-link-ghost:hover {
	background: transparent;
	color: var(--nav-accent-primary);
	border-color: transparent;
	box-shadow: none;
}

.nav-link-register,
.nav-btn-register {
	background: var(--nav-accent-primary);
	color: white;
	border-color: var(--nav-accent-primary);
	box-shadow: none;
}

.nav-link-register:hover,
.nav-btn-register:hover {
	background: #2563eb;
	border-color: #2563eb;
	transform: none;
	box-shadow: none;
	color: white;
}

.nav-status {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.6rem 0.9rem;
	border-radius: 0;
	border: 1px solid #e5e7eb;
	background: transparent;
	transition: all 0.2s;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--nav-text);
	box-shadow: none;
}
		4px 4px 0 #3d5a1f;
}

.nav-status:hover {
	background: var(--nav-hover);
	border-color: #e5e7eb;
	color: var(--nav-text);
	box-shadow: none;
}

.status-dot,
.node-dot {
	width: 10px;
	height: 10px;
	border-radius: 0;
	display: inline-block;
	animation: pulse 2.5s infinite;
	flex-shrink: 0;
	border: 1px solid #d1d5db;
	box-shadow: none;
}

.status-dot.online,
.node-dot.online {
	background-color: #10b981;
	box-shadow: none;
}

.status-dot.offline,
.node-dot.offline {
	background-color: #ef4444;
	box-shadow: none;
	animation: none;
}

.status-text {
	font-size: 0.875rem;
	font-weight: 500;
	white-space: nowrap;
	letter-spacing: 0;
	text-transform: none;
}

.node-menu,
.dropdown-menu {
	display: none;
	position: absolute;
	top: calc(100% + 0.8rem);
	left: 0;
	min-width: 320px;
	z-index: 1000;
	padding: 0.5rem 0;
	border-radius: 0.375rem;
	border: 1px solid #374151;
	background: #1f2937;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	image-rendering: auto;
}

.node-menu.active,
.dropdown-menu.active {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.node-menu-header {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--nav-muted);
	padding: 0.35rem 0.7rem 0.15rem;
}

.node-item,
.dropdown-item {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.85rem;
	padding: 0.75rem 1rem;
	border-radius: 0;
	border: 1px solid transparent;
	background: transparent;
	text-decoration: none;
	color: var(--nav-text);
	transition: all 0.2s;
	width: 100%;
	text-align: left;
	cursor: pointer;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.875rem;
}

.node-item:hover,
.dropdown-item:hover {
	background: #374151;
	border-color: transparent;
	color: var(--nav-accent-primary);
}

.node-labels,
.dropdown-labels {
	display: flex;
	flex-direction: column;
	gap: 0.16rem;
}

.node-title,
.dropdown-title {
	font-size: 0.86rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--nav-text);
}

.node-subtitle,
.dropdown-subtitle {
	color: var(--nav-muted);
	font-size: 0.72rem;
	line-height: 1.4;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.dropdown-icon {
	width: 1.5rem;
	height: 1.5rem;
	flex-shrink: 0;
	border-radius: 0.25rem;
	border: 1px solid #374151;
	background: #374151;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.875rem;
	color: var(--nav-text);
	box-shadow: none;
}

.mobile-menu-toggle,
.mobile-menu {
	display: none;
}

.auth-stack {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
}

@keyframes pulse {
	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.55;
	}
}

@media (max-width: 1100px) {
	.navbar-shell {
		justify-content: center;
		gap: 1rem;
	}

	.navbar-actions {
		justify-content: center;
	}
}

@media (max-width: 768px) {
	.navbar-shell {
		padding-inline: 1rem;
		padding-top: 0.9rem;
		padding-bottom: 0.9rem;
	}

	.brand-kicker {
		display: none;
	}

	.navbar-actions {
		display: none;
	}

	.mobile-menu-toggle {
		display: flex;
		flex-direction: column;
		gap: 0.4rem;
		background: transparent;
		border: 1px solid #374151;
		padding: 0.55rem;
		cursor: pointer;
		width: 2.6rem;
		height: 2.6rem;
		align-items: center;
		justify-content: center;
		border-radius: 0.375rem;
		box-shadow: none;
		transition: all 0.2s;
	}

	.mobile-menu-toggle span {
		width: 1.25rem;
		height: 2px;
		background: var(--nav-text);
		border-radius: 999px;
		transition: all 0.2s;
	}

	.mobile-menu-toggle.active span:nth-child(1) {
		transform: rotate(45deg) translateY(7px);
	}

	.mobile-menu-toggle.active span:nth-child(2) {
		opacity: 0;
	}

	.mobile-menu-toggle.active span:nth-child(3) {
		transform: rotate(-45deg) translateY(-7px);
	}

	.mobile-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #1f2937;
		border-bottom: 1px solid #374151;
		box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
		z-index: 999;
	}

	.mobile-menu.active {
		display: block;
}

	.mobile-menu-content {
		display: flex;
		flex-direction: column;
		padding: 0.6rem;
		gap: 0.3rem;
	}

	.mobile-menu-item {
		padding: 0.95rem 1rem;
		border-radius: 0;
		text-decoration: none;
		color: var(--nav-text);
		font-size: 0.875rem;
		font-weight: 500;
		border: none;
		background: transparent;
		cursor: pointer;
		transition: all 0.2s;
		text-align: left;
		font-family: 'Montserrat', sans-serif;
		letter-spacing: 0;
		text-transform: none;
	}

	.mobile-menu-item:hover {
		background: #374151;
		color: var(--nav-accent-primary);
		border-left: none;
	}

	.mobile-login-btn,
	.mobile-register-btn {
		background: transparent;
		border: 1px solid var(--nav-accent-primary);
		border-radius: 0.375rem;
		margin-top: 0.4rem;
		color: var(--nav-accent-primary);
		font-weight: 500;
		box-shadow: none;
		font-size: 0.875rem;
		font-family: 'Montserrat', sans-serif;
		padding: 0.6rem 1rem;
		width: 100%;
		cursor: pointer;
		transition: all 0.2s;
	}

	.mobile-login-btn:hover {
		background: rgba(59, 130, 246, 0.1);
		color: #2563eb;
	}

	.mobile-register-btn {
		background: var(--nav-accent-primary);
		color: white;
		border-color: var(--nav-accent-primary);
		box-shadow: none;
	}

	.mobile-register-btn:hover {
		background: #2563eb;
		border-color: #2563eb;
		color: white;
		box-shadow: none;
	}

	.mobile-logout-btn {
		color: #ef4444;
		border: 1px solid #ef4444;
		background: transparent;
		border-radius: 0.375rem;
		box-shadow: none;
		font-size: 0.875rem;
		font-family: 'Montserrat', sans-serif;
		padding: 0.6rem 1rem;
		width: 100%;
		margin-top: 0.4rem;
		cursor: pointer;
		transition: all 0.2s;
		font-weight: 500;
	}

	.mobile-logout-btn:hover {
		background: #ef4444;
		color: white;
		box-shadow: none;
	}
	}

	.node-menu,
	.dropdown-menu {
		left: 50%;
		transform: translateX(-50%);
		width: min(320px, calc(100vw - 2rem));
	}
}

@media (max-width: 560px) {
	.navbar-shell {
		padding-top: 0.75rem;
		padding-bottom: 0.75rem;
		flex-direction: row;
		align-items: center;
	}

	.brand-mark {
		width: 2.55rem;
		height: 2.55rem;
		font-size: 0.86rem;
	}

	.auth-stack {
		flex-direction: column;
		width: 100%;
	}

	.nav-link-register {
		width: 100%;
		text-align: center;
	}
}

.logout-btn {
	padding-inline: 1rem;
	border: 1px solid #ef4444;
	background: transparent;
	color: #ef4444;
	font-weight: 500;
	font-size: 0.875rem;
	box-shadow: none;
	text-decoration: none;
	border-radius: 0.375rem;
	transition: all 0.2s;
}

.logout-btn:hover {
	background: #ef4444;
	border-color: #ef4444;
	color: white;
	box-shadow: none;
}

.nav-btn {
	padding-inline: 1rem;
	border: 1px solid transparent;
	background: transparent;
	font-weight: 500;
	height: auto;
	border-radius: 0.375rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--nav-text);
	box-shadow: none;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.875rem;
	transition: all 0.2s;
}

.nav-btn-login {
	color: var(--nav-text);
	background: transparent;
	border-color: transparent;
}

.nav-btn-login:hover {
	background: var(--nav-hover);
	color: var(--nav-text);
	box-shadow: none;
}
}

.nav-btn-register {
	font-size: 0.8rem;
}

.user-welcome-trigger {
	gap: 0.55rem;
	padding-inline: 0.85rem;
	color: var(--nav-text);
	background: transparent;
	border-color: transparent;
	font-size: 0.875rem;
	box-shadow: none;
	border-radius: 0.375rem;
}

.user-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.8rem;
	height: 1.8rem;
	border-radius: 0.375rem;
	border: 1px solid #374151;
	background: #374151;
	flex-shrink: 0;
	overflow: hidden;
	box-shadow: none;
}

.user-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 0;
}

.user-welcome-text {
	display: none;
}

@media (min-width: 768px) {
	.user-welcome-text {
		display: inline;
	}
}

.user-dropdown-menu {
	position: absolute;
	top: calc(100% + 0.75rem);
	right: 0;
	background: #1f2937;
	border: 1px solid #374151;
	border-radius: 0.375rem;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
	min-width: 220px;
	z-index: 1000;
	display: none;
	flex-direction: column;
	overflow: hidden;
}

.user-dropdown-menu.active {
	display: flex;
}

.user-dropdown-menu .dropdown-item {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.75rem 1.05rem;
	color: var(--nav-text);
	border-radius: 0;
	border: none;
	background: transparent;
	font-size: 0.875rem;
}

.user-dropdown-menu .dropdown-item:hover {
	background: #374151;
	color: var(--nav-accent-primary);
}

.user-profile-btn .dropdown-icon {
	background: #374151;
	border-color: #4b5563;
	color: var(--nav-text);
}