* {
	box-sizing: border-box;
}

body {
	font-family: 'Inter', sans-serif;
}

a {
	text-decoration: none;
}

::-webkit-scrollbar {
	width: 6px;
}

::-webkit-scrollbar-track {
	background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
	background: #a1a1a1;
}

.nav-link {
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	color: #4b5563;
	transition: all 0.15s;
}

.nav-link:hover {
	background: #f3f4f6;
	color: #1f2937;
}

.nav-link.active {
	background: #e8f5e9;
	color: #2e7d32;
}

.search-input {
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	padding: 10px 16px 10px 42px;
	font-size: 14px;
	width: 100%;
	outline: none;
	transition: border-color 0.15s;
	background: #fff;
}

.search-input:focus {
	border-color: #43a047;
}

.search-input::placeholder {
	color: #9ca3af;
}

.sidebar-section-title {
	font-size: 12px;
	font-weight: 700;
	color: #374151;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.filter-item {
	padding: 6px 12px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	color: #4b5563;
	transition: all 0.15s;
	border: 1px solid transparent;
	display: inline-flex;
}

.filter-item:hover {
	background: #f0fdf4;
	color: #2e7d32;
}

.filter-item.selected {
	background: #e8f5e9;
	color: #2e7d32;
	border-color: #43a047;
	font-weight: 500;
}

.server-card {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	transition: all 0.2s;
	cursor: pointer;
	background: #fff;
}

.server-card:hover {
	border-color: #43a047;
	box-shadow: 0 4px 20px rgba(67, 160, 71, 0.1);
	transform: translateY(-1px);
}

.online-dot {
	width: 8px;
	height: 8px;
	background: #43a047;
	border-radius: 50%;
	display: inline-block;
	animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

.ip-copy {
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 4px 10px;
	font-family: 'Courier New', monospace;
	font-size: 13px;
	color: #374151;
	cursor: pointer;
	transition: all 0.15s;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ip-copy:hover {
	background: #e8f5e9;
	border-color: #43a047;
}

.tag {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 500;
	background: #f3f4f6;
	color: #6b7280;
}

.tag-green {
	background: #e8f5e9;
	color: #2e7d32;
}

.tag-orange {
	background: #fff7ed;
	color: #ea580c;
}

.tag-blue {
	background: #eff6ff;
	color: #2563eb;
}

.tag-purple {
	background: #f5f3ff;
	color: #7c3aed;
}

.badge-popular {
	background: linear-gradient(135deg, #ff6b35, #ff8f5e);
	color: white;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 20px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.faq-item {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	transition: all 0.2s;
}

.faq-item:hover {
	border-color: #43a047;
}

.faq-q {
	padding: 16px 20px;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #fff;
	user-select: none;
}

.faq-a {
	padding: 0 20px 16px;
	font-size: 14px;
	color: #6b7280;
	line-height: 1.7;
	display: none;
}

.faq-item.open .faq-a {
	display: block;
}

.faq-item.open .faq-chevron {
	transform: rotate(180deg);
}

.faq-chevron {
	transition: transform 0.2s;
}

.toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	background: #1f2937;
	color: white;
	padding: 12px 24px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
	z-index: 9999;
	opacity: 0;
	transition: all 0.3s;
	pointer-events: none;
}

.toast.show {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

.line-clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.story-text p {
	margin-bottom: 0.75rem;
}

.story-text ul,
.story-text ol {
	padding-left: 1.25rem;
	margin: 0.75rem 0;
}

.story-text ul {
	list-style: disc;
}

.story-text ol {
	list-style: decimal;
}

.navigation {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 32px;
}

.navigation .pages {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
}

.navigation a,
.navigation span {
	min-width: 40px;
	height: 40px;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #4b5563;
	font-size: 14px;
	font-weight: 600;
	padding: 0 12px;
}

.navigation span {
	background: #43a047;
	border-color: #43a047;
	color: #fff;
}

.navigation a:hover {
	border-color: #43a047;
	color: #2e7d32;
}

.berrors,
.box.berrors {
	border: 1px solid #fecaca;
	background: #fef2f2;
	color: #991b1b;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 20px;
}

.comments .box,
.comments form,
.form_submit {
	margin-top: 16px;
}

@media (max-width: 640px) {
	.server-card {
		padding: 16px;
	}

	.faq-q {
		padding: 14px 16px;
	}
}
