:root {
	--bg-color: #000000;
	--card-bg: rgba(20, 20, 20, 0.8);
	--text-primary: #ffffff;
	--text-secondary: #a3a3a3;
	--accent-color: #ff6700;
	--accent-glow: rgba(255, 103, 0, 0.4);
	--success-color: #4ade80;
	--font-family:
		'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
		Arial, sans-serif;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: var(--font-family);
	background-color: var(--bg-color);
	color: var(--text-primary);
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	background-image: radial-gradient(circle at 50% 0%, #3a1800 0%, #000000 80%);
}

.container {
	width: 100%;
	height: 100%;
	max-width: 480px;
	padding: 2rem;
	text-align: center;
	position: relative;
	z-index: 10;
}

/* Glassmorphism Card Effect */
.glass-panel {
	height: 100%;
	display: flex;
	flex-direction: column;
	background: var(--card-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 24px;
	padding: 3rem 2rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
	transition:
		transform 0.3s ease,
		height 0.3s ease;
}

.logo-img {
	height: 30px;
	width: auto;
	margin-bottom: 0.5rem;
	display: inline-block;
	filter: drop-shadow(0 0 10px rgba(255, 103, 0, 0.2));
}

.subtitle {
	color: var(--text-secondary);
	font-size: 0.95rem;
	margin-bottom: 2.5rem;
}

/* Content Area - Fills remaining space */
.content {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	min-height: 0;
}

/* Loading Animation */
.loader-container {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 120px;
}

.spinner {
	width: 50px;
	height: 50px;
	border: 3px solid rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	border-top-color: var(--accent-color);
	animation: spin 1s ease-in-out infinite;
	margin-bottom: 1.5rem;
	box-shadow: 0 0 15px var(--accent-glow);
}

.status-text {
	font-size: 0.9rem;
	color: var(--text-secondary);
	animation: pulse 2s infinite;
}

/* Manual List Styles (Hidden by default) */
.domain-list {
	display: none;
	flex-direction: column;
	gap: 1rem;
	padding-top: 0.5rem;
	margin-top: 0.5rem;

	/* Scroll support */
	flex: 1;
	overflow-y: auto;
	padding-right: 0.5rem;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Custom Scrollbar */
.domain-list::-webkit-scrollbar {
	width: 6px;
}
.domain-list::-webkit-scrollbar-track {
	background: transparent;
}
.domain-list::-webkit-scrollbar-thumb {
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 20px;
}
.domain-list::-webkit-scrollbar-thumb:hover {
	background-color: rgba(255, 255, 255, 0.4);
}

.domain-list.visible {
	display: flex;
	animation: fadeIn 0.5s ease-out;
}

.domain-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.05);
	padding: 1rem 1.25rem;
	border-radius: 12px;
	text-decoration: none;
	color: var(--text-primary);
	transition: all 0.2s ease;
	cursor: pointer;
}

.domain-item:hover {
	background: rgba(255, 255, 255, 0.08);
	transform: translateY(-2px);
	border-color: var(--accent-color);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.domain-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.domain-name {
	font-weight: 600;
	font-size: 1rem;
}

.domain-desc {
	font-size: 0.75rem;
	color: var(--text-secondary);
	margin-top: 0.25rem;
}

.recommended-badge {
	display: inline-block;
	background: var(--accent-color);
	color: #000;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 0.15rem 0.5rem;
	border-radius: 4px;
	margin-top: 0.3rem;
	letter-spacing: 0.5px;
}

.domain-status {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: var(--text-secondary);
}

.domain-status.active {
	background-color: var(--success-color);
	box-shadow: 0 0 8px var(--success-color);
}

/* Footer */
.footer {
	margin-top: 2rem;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
}

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

/* Responsive adjustments */
@media (max-width: 480px) {
	.container {
		padding: 0.5rem;
		height: 100vh;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
	.glass-panel {
		padding: 1.5rem 1rem;
		max-height: 95vh;
		display: flex;
		flex-direction: column;
	}
	/* Ensure internal content scrolls nicely on mobile */
	.content {
		flex: 1;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		min-height: 0;
	}
	.domain-list {
		max-height: none; /* Let flex handle height on mobile */
		flex: 1;
		padding-bottom: 20px;
	}
}

/* Error Module */
.error-module {
	display: none; /* Controlled by JS */
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem;
	color: var(--text-secondary);
	animation: fadeIn 0.5s ease-out;
	flex: 1;
}

.error-icon {
	font-size: 3.5rem;
	margin-bottom: 1rem;
	filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.4));
}

.error-module h3 {
	color: var(--text-primary);
	margin-bottom: 0.5rem;
	font-weight: 600;
	font-size: 1.2rem;
}

.error-module p {
	font-size: 0.9rem;
	max-width: 280px;
	line-height: 1.5;
}

.retry-btn {
	margin-top: 2rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: var(--text-primary);
	padding: 0.75rem 2rem;
	border-radius: 99px;
	cursor: pointer;
	font-size: 0.9rem;
	transition: all 0.2s ease;
	font-family: var(--font-family);
}

.retry-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: var(--accent-color);
	color: var(--accent-color);
	transform: translateY(-2px);
}
