.aside-panel {
    position: fixed;
    top: 0;
    left: -320px;
    height: 100vh;
    width: 320px;
    background: linear-gradient(135deg, rgba(18, 18, 26, 0.3) 0%, rgba(30, 30, 45, 0.25) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 200;
    padding: 30px 20px;
    transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.aside-panel.show {
    left: 0;
    transform: scale(1);
}

.aside-toggle {
    position: fixed;
    top: 55%;
    left: 0;
    z-index: 9999;
    transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: bolder;
    writing-mode: vertical-rl;
    text-decoration: upright;
}

.aside-panel.show ~ .aside-toggle {
    left: 320px;
}

.aside-toggle > span {
    cursor: pointer;
    padding: 14px 10px;
    transform-origin: left top;
    white-space: nowrap;
    position: absolute;
    left: 50%;
    bottom: 0;
    background: linear-gradient(135deg, rgba(88, 86, 214, 0.9), rgba(139, 92, 246, 0.9));
    box-shadow:
        0 4px 15px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-bottom-right-radius: 12px;
    border-top-right-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.aside-toggle > span:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 1), rgba(168, 85, 247, 1));
    box-shadow:
        0 6px 25px rgba(139, 92, 246, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.vertical-text {
	display: inline-block;
	white-space: pre;
}

.vertical-text::before {
	content: attr(data-text);
	display: block;
	white-space: pre;
	transform: rotate(90deg);
	transform-origin: left top 0;
}

#asideToggle .vertical-text {
	writing-mode: vertical-rl;
	text-orientation: upright;
}


.user-info a, .link-item a {
	color: inherit;
	text-decoration: none; 
}

.link-item {
	display: block;
	margin: 0.75rem 0;
	padding: 0.85rem 1.2rem;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	color: #ffffff;
	text-decoration: none;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	box-shadow:
		0 4px 15px rgba(0, 0, 0, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.link-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
	transition: left 0.5s ease;
}

.link-item:hover::before {
	left: 100%;
}

.link-item:hover {
	color: #ffffff;
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(168, 85, 247, 0.2) 100%);
	backdrop-filter: blur(25px);
	-webkit-backdrop-filter: blur(25px);
	border-color: rgba(139, 92, 246, 0.5);
	box-shadow:
		0 8px 25px rgba(139, 92, 246, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.15);
	transform: translateX(5px) scale(1.02);
}

@media (max-width: 991.98px) {
	.aside-panel, .aside-toggle {
		display: none; 
	}
}

/*
@media (min-width: 1700px) {
	.aside-panel {
		width: 30%; 
		max-width: 200px;
	}

	.aside-panel:hover, .aside-panel.show {
		left:0;
		width: 200px !important;
	}

	.aside-panel, .aside-panel > .user-info > div {
		display: flex;
		flex-direction: column; 
		align-items: flex-end; 
		left: 0;
		width: 25%;
	}

	.aside-toggle {
		display: none;
	}
}
*/

.link-item {
	position: relative;
	padding: 0.85rem 1.2rem;
	margin-bottom: 0.75rem;
}

.link-item i {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	filter: drop-shadow(0 0 3px rgba(139, 92, 246, 0.3));
}

@media (min-width: 768px) {
	.link-item i {
		float: right;
		margin-left: 15px;
		transform: scale(1.4);
		opacity: 0.6;
	}
	.link-item:hover i {
		transform: scale(1.8) rotate(10deg);
		opacity: 1;
		filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.8));
	}
	.link-item:hover span {
		transform: scale(1.05);
		font-weight: 600;
	}
}

/* Custom scrollbar for aside panel */
.aside-panel::-webkit-scrollbar {
	width: 8px;
}

.aside-panel::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.03);
	border-radius: 10px;
}

.aside-panel::-webkit-scrollbar-thumb {
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), rgba(168, 85, 247, 0.6));
	border-radius: 10px;
	transition: background 0.3s ease;
}

.aside-panel::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(168, 85, 247, 0.9));
}

/* Modern user-info styling - átlátszó, keret nélkül */
.aside-panel .user-info {
	position: relative;
	padding: 20px 15px;
	margin-bottom: 25px;
	background: transparent;
	border: none;
	box-shadow: none;
}

.aside-panel .user-info img {
	border-radius: 50%;
	border: none;
	box-shadow:
		0 0 20px rgba(139, 92, 246, 0.4),
		0 0 40px rgba(139, 92, 246, 0.2);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
}

.aside-panel .user-info img:hover {
	transform: scale(1.08) rotate(5deg);
	box-shadow:
		0 0 30px rgba(139, 92, 246, 0.7),
		0 0 60px rgba(139, 92, 246, 0.4);
}

.aside-panel .user-info a {
	display: inline-block;
	font-size: 1.15rem;
	font-weight: 700;
	padding: 8px 16px;
	background: transparent;
	border-radius: 8px;
	margin-top: 8px;
	transition: all 0.3s ease;
	border: none;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.aside-panel .user-info a:hover {
	background: transparent;
	transform: translateY(-2px);
	text-shadow: 0 0 15px rgba(139, 92, 246, 0.8);
}

/* Credit point styling */
.link-item .credit-point {
	font-weight: 700;
	color: #fbbf24;
	text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
	transition: all 0.3s ease;
}

.link-item:hover .credit-point {
	color: #fcd34d;
	text-shadow: 0 0 15px rgba(251, 191, 36, 0.8);
}

/* Pulse animation for icons */
@keyframes pulse-glow {
	0%, 100% {
		filter: drop-shadow(0 0 3px rgba(139, 92, 246, 0.3));
	}
	50% {
		filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
	}
}

.link-item i.fad,
.link-item i.bi {
	animation: pulse-glow 3s ease-in-out infinite;
}

.link-item:hover i.fad,
.link-item:hover i.bi {
	animation: none;
}