:root {
	--primary-color: #6d28d9;
	--secondary-color: #10b981;
	--accent-color: #f59e0b;
	--text-color: #e2e8f0;
	--bg-primary: #0f172a;
	--bg-secondary: #1e293b;
	--card-bg: #1e293b;
	--border-color: #334155;
}

.light-theme {
	--primary-color: #8b5cf6;
	--secondary-color: #10b981;
	--accent-color: #f59e0b;
	--text-color: #1e293b;
	--bg-primary: #f8fafc;
	--bg-secondary: #e2e8f0;
	--card-bg: #ffffff;
	--border-color: #cbd5e1;
}

.rtl {
	direction: rtl;
	text-align: right;
}

body {
	font-family: 'Roboto', sans-serif;
	background-color: var(--bg-primary);
	color: var(--text-color);
	transition: all 0.3s ease;
	overflow-y: scroll !important;
}

.futuristic-font {
	font-family: 'Orbitron', sans-serif;
}

.futuristic-border {
	border: 1px solid var(--border-color);
	box-shadow: 0 0 15px rgba(109, 40, 217, 0.2);
}

.futuristic-card {
	background-color: var(--card-bg);
	border-radius: 16px;
	border: 1px solid var(--border-color);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	transition: transform 0.3s, box-shadow 0.3s;
}

.futuristic-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 25px rgba(109, 40, 217, 0.3);
}

.glow-effect {
	position: relative;
}

.glow-effect::after {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	background: linear-gradient(45deg, #6d28d9, #10b981, #f59e0b, #6d28d9);
	border-radius: 16px;
	z-index: -1;
	opacity: 0;
	transition: opacity 0.3s;
}

.glow-effect:hover::after {
	opacity: 1;
	animation: glow 1.5s linear infinite;
}

.nav-icon {
	cursor: pointer;
	position: relative;
	transition: transform 0.3s;
}

.nav-icon:hover {
	transform: translateY(-3px);
}

.progress-bar {
	height: 8px;
	background-color: var(--bg-secondary);
	border-radius: 4px;
	overflow: hidden;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
	border-radius: 4px;
	transition: width 0.5s ease-in-out;
}

.tooltip {
	visibility: hidden;
	position: absolute;
	bottom: -35px;
	left: 50%;
	transform: translateX(-50%);
	background-color: var(--bg-secondary);
	color: var(--text-color);
	padding: 5px 10px;
	border-radius: 5px;
	font-size: 0.75rem;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.3s, visibility 0.3s;
	z-index: 10;
}

.nav-icon:hover .tooltip {
	visibility: visible;
	opacity: 1;
}

.user-sidebar {
	position: fixed;
	top: 0;
	right: -320px;
	width: 320px;
	height: 100vh;
	background-color: var(--bg-secondary);
	z-index: 1000;
	transition: right 0.3s ease;
	overflow-y: auto;
}

.user-sidebar.show {
	right: 0;
}

.user-sidebar-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 999;
	display: none;
}

.user-sidebar-overlay.show {
	display: block;
}

.rtl .user-sidebar {
	right: auto;
	left: -320px;
}

.rtl .user-sidebar.show {
	right: auto;
	left: 0;
}

/* Animated background */
.animated-bg {
	position: relative;
	overflow: hidden;
}

.animated-bg::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: linear-gradient(-45deg, #6d28d9, #10b981, #f59e0b, #6d28d9);
	background-size: 400% 400%;
	animation: gradientBG 15s ease infinite;
	opacity: 0.05;
	z-index: -1;
}

@keyframes gradientBG {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

@keyframes glow {
	0% {
		opacity: 0.5;
	}
	50% {
		opacity: 0.7;
	}
	100% {
		opacity: 0.5;
	}
}

/* Pulse animation for CTC tokens */
.pulse {
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(109, 40, 217, 0.7);
	}
	70% {
		box-shadow: 0 0 0 10px rgba(109, 40, 217, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(109, 40, 217, 0);
	}
}

/* Language submenu */
.language-submenu {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	background-color: var(--bg-secondary);
	border-radius: 8px;
	padding: 10px;
	z-index: 100;
	min-width: 150px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rtl .language-submenu {
	right: auto;
	left: 0;
}

.language-icon:hover .language-submenu {
	display: block;
}

.premium-content-overlay {
	position: relative;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 5;
	border-radius: 16px;
}

.md\:text-6xl {
	line-height: 1.5;
}

.member-only-content, .premium-content, .private-content {display: inline-table;}