﻿:root {
	--bg-top: #020617;
	--bg-bottom: #000010;
	--card-bg: rgba(5, 8, 30, 0.78);
	--border-glow: rgba(88, 101, 242, 0.65);
	--accent: #60a5ff;
	--accent-soft: rgba(96, 165, 255, 0.2);
	--text-main: #e5e7eb;
	--text-muted: #9ca3af;
	--status-green: #22c55e;
}

html,
body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.18), transparent 55%), radial-gradient(circle at 80% 70%, rgba(129, 140, 248, 0.18), transparent 60%), linear-gradient(to bottom, var(--bg-top), var(--bg-bottom));
	color: var(--text-main);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	overflow: hidden;
}


	body::before {
		content: "";
		position: fixed;
		inset: 0;
		pointer-events: none;
		background-image: radial-gradient(circle, rgba(255, 255, 255, 0.16) 1px, transparent 1px), radial-gradient(circle, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
		background-position: 0 0, 50px 50px;
		background-size: 140px 140px;
		opacity: 0.7;
		mix-blend-mode: screen;
		z-index: 0;
	}

a {
	color: #0078ff;
}

#earth {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	touch-action: manipulation;
	z-index: 1;
}

/* ================= Overlay Layout ================= */

.overlay {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: 32px clamp(24px, 6vw, 64px);
	box-sizing: border-box;
}

.overlay-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.logo img {
	height: 40px;
	width: auto;
	object-fit: contain;
}


.logo-placeholder {
	height: 40px;
	display: inline-flex;
	align-items: center;
	padding-inline: 14px;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.5);
	color: var(--text-main);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-size: 11px;
}

.badge {
	padding: 4px 12px;
	border-radius: 999px;
	border: 1px solid var(--accent-soft);
	background: radial-gradient(circle at top left, rgba(96, 165, 255, 0.2), transparent 60%);
	color: var(--accent);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.overlay-main {
	flex: 1;
	display: flex;
	align-items: center;
}


.content-card {
	max-width: 520px;
	padding: clamp(24px, 4vw, 32px);
	border-radius: 24px;
	background: var(--card-bg);
	border: 1px solid rgba(148, 163, 184, 0.4);
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8), 0 24px 60px rgba(15, 23, 42, 0.95);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	position: relative;
	overflow: hidden;
}


	.content-card::before {
		content: "";
		position: absolute;
		inset: -1px;
		border-radius: inherit;
		border: 1px solid var(--border-glow);
		opacity: 0.6;
		mix-blend-mode: screen;
		pointer-events: none;
	}

	.content-card h1 {
		margin: 0 0 12px;
		font-size: clamp(32px, 4vw, 40px);
		letter-spacing: 0.04em;
	}

	.content-card p {
		margin: 0 0 20px;
		font-size: 15px;
		line-height: 1.7;
		color: var(--text-muted);
	}

/* ردیف وضعیت */
.status-row {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.8);
	border: 1px solid rgba(55, 65, 81, 0.8);
	font-size: 13px;
	color: var(--text-main);
}

.status-dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: var(--status-green);
	box-shadow: 0 0 16px rgba(34, 197, 94, 0.9);
	animation: pulse 1.6s ease-out infinite;
}

.overlay-footer {
	font-size: 11px;
	color: var(--text-muted);
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	opacity: 0.8;
}

/* ================ Animations ================ */

@keyframes pulse {
	0%, 100% {
		transform: scale(1);
		opacity: 0.85;
	}

	50% {
		transform: scale(1.35);
		opacity: 1;
	}
}

@keyframes fadeUp {
	0% {
		opacity: 0;
		transform: translateY(12px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

.content-card {
	animation: fadeUp 0.9s ease-out 0.2s both;
}

/* ================ Responsive ================ */

@media (max-width: 768px) {
	.overlay {
		padding: 20px 18px;
	}

	.overlay-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.overlay-main {
		justify-content: center;
	}

	.overlay-footer {
		justify-content: center;
		text-align: center;
	}
}
