/* Premium Auth Modal CSS - Gaming Orange Theme */
.auth-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(8, 9, 14, 0.85);
	backdrop-filter: blur(12px);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.auth-modal-overlay.active {
	display: flex;
	opacity: 1;
}

.auth-modal-container {
	width: 100%;
	max-width: 450px;
	background: rgba(18, 20, 28, 0.95);
	backdrop-filter: blur(20px) saturate(180%);
	border: 1px solid rgba(255, 85, 0, 0.25);
	border-radius: 24px;
	padding: 40px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 85, 0, 0.15);
	transform: translateY(20px);
	transition: transform 0.3s ease;
	position: relative;
	color: #fff;
}

.auth-modal-overlay.active .auth-modal-container {
	transform: translateY(0);
}

.auth-modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.5);
	font-size: 24px;
	cursor: pointer;
	transition: color 0.2s;
}

.auth-modal-close:hover {
	color: #ff5500;
}

.auth-tabs {
	display: flex;
	gap: 20px;
	margin-bottom: 30px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	padding-bottom: 10px;
}

.auth-tab {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.5);
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	padding: 5px 0;
	position: relative;
	transition: color 0.3s;
}

.auth-tab.active {
	color: #ff5500;
}

.auth-tab.active::after {
	content: "";
	position: absolute;
	bottom: -11px;
	left: 0;
	width: 100%;
	height: 3px;
	background: #ff5500;
	border-radius: 3px;
	box-shadow: 0 0 10px rgba(255, 85, 0, 0.6);
}

.auth-form {
	display: none;
	flex-direction: column;
	gap: 20px;
}

.auth-form.active {
	display: flex;
	animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateX(10px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.input-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.input-group label {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
	font-weight: 500;
}

.input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.input-wrapper i {
	position: absolute;
	left: 15px;
	color: rgba(255, 255, 255, 0.4);
}

.input-wrapper input {
	width: 100%;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	padding: 12px 15px 12px 45px;
	color: #fff;
	font-size: 15px;
	outline: none;
	transition: all 0.3s;
}

.input-wrapper input:focus {
	border-color: #ff5500;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 0 0 4px rgba(255, 85, 0, 0.2);
}

.auth-btn {
	background: linear-gradient(135deg, #ff5500 0%, #ff7700 100%);
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 14px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	margin-top: 10px;
}

.auth-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(255, 85, 0, 0.4);
}

.auth-footer {
	text-align: center;
	margin-top: 25px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
}

.auth-footer a {
	color: #ff7700;
	font-weight: 600;
	text-decoration: none;
}

.auth-footer a:hover {
	color: #ff5500;
}

.auth-guest-line {
	margin-top: 8px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.4);
}

.guest-link {
	color: rgba(255, 119, 0, 0.9) !important;
	font-weight: 600;
	text-decoration: underline dotted;
	text-underline-offset: 3px;
	transition: color 0.2s;
}

.guest-link:hover {
	color: #ff5500 !important;
	text-decoration: underline;
}

.social-login {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-top: 30px;
}

.social-divider {
	display: flex;
	align-items: center;
	gap: 15px;
	color: rgba(255, 255, 255, 0.3);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.social-divider::before,
.social-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(255, 255, 255, 0.1);
}

.social-buttons {
	display: flex;
	justify-content: center;
	gap: 15px;
}

.social-btn {
	width: 50px;
	height: 50px;
	border-radius: 12px;
	background: rgba(255, 85, 0, 0.08);
	border: 1px solid rgba(255, 85, 0, 0.2);
	color: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 20px;
	cursor: pointer;
	transition: all 0.2s;
}

.social-btn:hover {
	background: rgba(255, 85, 0, 0.18);
	border-color: #ff5500;
	transform: scale(1.03);
}

/* Profile Dropdown Context Menu */
.profile-dropdown-wrapper {
	position: relative;
}

.profile-trigger {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 14px 5px 6px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
}

.profile-trigger:hover, .profile-trigger.active {
	background: rgba(255, 255, 255, 0.1);
	border-color: #ff5500;
}

.avatar-circle {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: linear-gradient(135deg, #ff5500 0%, #ff7700 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 0.85rem;
	box-shadow: 0 0 10px rgba(255, 85, 0, 0.4);
}

.avatar-username {
	font-size: 0.88rem;
	font-weight: 600;
	color: #fff;
	max-width: 120px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.profile-chevron {
	font-size: 0.65rem;
	color: #9ea4b0;
	transition: transform 0.2s ease;
}

.profile-trigger.active .profile-chevron {
	transform: rotate(180deg);
}

.profile-context-menu {
	display: none;
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 220px;
	background: rgba(15, 17, 26, 0.98);
	backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	padding: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 85, 0, 0.15);
	z-index: 10000;
	animation: menuSlideDown 0.2s ease-out;
}

.profile-context-menu.show {
	display: block;
}

@keyframes menuSlideDown {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: translateY(0); }
}

.profile-menu-header {
	padding: 10px 12px;
}

.profile-menu-name {
	font-weight: 700;
	font-size: 0.95rem;
	color: #fff;
	margin-bottom: 2px;
}

.profile-menu-status {
	font-size: 0.75rem;
	color: #9ea4b0;
	display: flex;
	align-items: center;
	gap: 6px;
}

.online-dot {
	color: #22c55e;
	font-size: 0.5rem;
}

.profile-menu-divider {
	height: 1px;
	background: rgba(255, 255, 255, 0.08);
	margin: 6px 0;
}

.profile-menu-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.88rem;
	font-weight: 500;
	border-radius: 8px;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	transition: all 0.15s ease;
	box-sizing: border-box;
	text-decoration: none;
}

.profile-menu-item:hover {
	background: rgba(255, 85, 0, 0.12);
	color: #fff;
}

.profile-menu-item i {
	font-size: 0.9rem;
	color: #ff5500;
	width: 18px;
	text-align: center;
}

.profile-menu-item.logout-item:hover {
	background: rgba(239, 68, 68, 0.15);
	color: #f87171;
}

.profile-menu-item.logout-item:hover i {
	color: #f87171;
}

/* Lofi Radio Player Header Button */
.lofi-player {
	position: relative;
	display: flex;
	align-items: center;
}

.lofi-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.85rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	outline: none;
}

.lofi-btn:hover {
	background: rgba(255, 85, 0, 0.15);
	border-color: #ff5500;
	color: #fff;
	transform: scale(1.05);
}

.lofi-btn.playing {
	background: rgba(255, 85, 0, 0.25);
	border-color: #ff5500;
	color: #ff5500;
	animation: lofiPulse 2s infinite;
}

@keyframes lofiPulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 85, 0, 0.5); }
	70% { box-shadow: 0 0 0 8px rgba(255, 85, 0, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 85, 0, 0); }
}

.lofi-popup {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	background: rgba(15, 17, 26, 0.98);
	backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 85, 0, 0.3);
	border-radius: 20px;
	padding: 8px 16px 8px 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 195px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	pointer-events: none;
	z-index: 10000;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 85, 0, 0.15);
}

.lofi-popup::before {
	content: "";
	position: absolute;
	top: -16px;
	left: 0;
	width: 100%;
	height: 16px;
}

.lofi-player:hover .lofi-popup,
.lofi-popup:hover {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.lofi-vol-ic {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.5);
	flex-shrink: 0;
}

.lofi-lbl {
	font-size: 0.72rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.5);
	white-space: nowrap;
	flex-shrink: 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.lofi-lbl.playing {
	color: #ff5500;
}

.lofi-slider {
	-webkit-appearance: none;
	appearance: none;
	flex: 1;
	height: 4px;
	border-radius: 4px;
	background: linear-gradient(to right, #ff5500 60%, rgba(255, 255, 255, 0.15) 60%);
	outline: none;
	cursor: pointer;
}

.lofi-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #ff5500;
	cursor: pointer;
	box-shadow: 0 0 8px rgba(255, 85, 0, 0.6);
}

.lofi-slider::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #ff5500;
	border: none;
	cursor: pointer;
}
