/* ================================
   СЕРВЕРИ — жива статистика (у стилі панелей орбіти, home.css)
   ================================ */

/* Значок онлайну під назвою планети */
.node-live {
	margin-top: 4px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-align: center;
	white-space: nowrap;
	color: rgba(255, 255, 255, 0.6);
	pointer-events: none;
}

.node-live::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	margin-right: 5px;
	vertical-align: 1px;
	background: #6b7280;
}

.node-live.is-online::before {
	background: #22c55e;
	box-shadow: 0 0 8px #22c55e;
}

.node-live.is-soon {
	color: #c4b5fd;
}

.node-live.is-soon::before {
	background: #a78bfa;
	box-shadow: 0 0 8px #a78bfa;
}

.srv-strong {
	color: #fff;
	font-weight: 700;
}

/* Кнопки в панелях і вікні */
.srv-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.srv-btn {
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 14px;
	border-radius: 12px;
	border: 1px solid transparent;
	background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: 0 4px 15px rgba(167, 139, 250, 0.25);
	transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.srv-btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.1);
	box-shadow: 0 6px 20px rgba(167, 139, 250, 0.4);
}

.srv-btn--ghost {
	background: rgba(167, 139, 250, 0.08);
	border-color: rgba(167, 139, 250, 0.3);
	color: #c4b5fd;
	box-shadow: none;
}

.srv-btn--ghost:hover {
	background: rgba(167, 139, 250, 0.16);
	box-shadow: none;
}

/* Прогрес «Скоро» */
.srv-progress {
	height: 6px;
	border-radius: 100px;
	background: rgba(167, 139, 250, 0.14);
	overflow: hidden;
	margin: 6px 0 4px;
}

.srv-progress-bar {
	height: 100%;
	border-radius: 100px;
	background: linear-gradient(90deg, var(--accent-deep), var(--accent));
	box-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

/* Вікно «Детальніше» */
.srv-modal {
	position: fixed;
	inset: 0;
	z-index: 500;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(8, 8, 12, 0.6);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s;
}

.srv-modal.open {
	opacity: 1;
	visibility: visible;
}

.srv-modal-card {
	position: relative;
	width: 100%;
	max-width: 620px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	transform: translateY(12px);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.srv-modal.open .srv-modal-card {
	transform: translateY(0);
}

.srv-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	border: 1px solid rgba(167, 139, 250, 0.25);
	background: rgba(167, 139, 250, 0.08);
	color: #c4b5fd;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.srv-modal-close:hover {
	background: rgba(167, 139, 250, 0.18);
}

.srv-section {
	margin-top: 22px;
}

/* Графік онлайну */
.srv-chart-box {
	position: relative;
}

.srv-chart {
	display: block;
	width: 100%;
	height: auto;
}

.srv-grid {
	stroke: rgba(255, 255, 255, 0.07);
	stroke-width: 1;
}

.srv-axis {
	fill: rgba(255, 255, 255, 0.4);
	font-size: 10px;
	font-family: 'Outfit', sans-serif;
}

.srv-line {
	fill: none;
	stroke: #a78bfa;
	stroke-width: 2;
	stroke-linejoin: round;
	stroke-linecap: round;
}

.srv-area {
	fill: rgba(167, 139, 250, 0.12);
}

.srv-cross {
	stroke: rgba(255, 255, 255, 0.25);
	stroke-width: 1;
}

.srv-dot {
	fill: #a78bfa;
	stroke: #0e1016;
	stroke-width: 2;
}

.srv-tip {
	position: absolute;
	top: 0;
	padding: 6px 10px;
	border-radius: 10px;
	background: rgba(8, 8, 12, 0.92);
	border: 1px solid rgba(167, 139, 250, 0.25);
	font-size: 11px;
	color: rgba(255, 255, 255, 0.6);
	pointer-events: none;
	opacity: 0;
	white-space: nowrap;
	transition: opacity 0.1s;
}

.srv-tip strong {
	display: block;
	font-size: 14px;
	color: #fff;
}

/* Гравці онлайн */
.srv-players {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.srv-player {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px 4px 4px;
	border-radius: 100px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.06);
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.75);
}

.srv-player i {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 6px;
	background: rgba(167, 139, 250, 0.18);
	color: #c4b5fd;
	font-style: normal;
	font-size: 10px;
	font-weight: 800;
}

.srv-more {
	align-self: center;
	font-size: 12px;
	color: var(--muted);
}

/* Чекліст «Скоро» */
.srv-roadmap {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 10px;
}

.srv-roadmap li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.7);
}

.srv-check {
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	border-radius: 6px;
	border: 1.5px solid rgba(167, 139, 250, 0.3);
	font-size: 10px;
	color: #c4b5fd;
}

.srv-roadmap li.is-done {
	color: var(--muted);
	text-decoration: line-through;
}

.srv-roadmap li.is-done .srv-check {
	background: var(--accent);
	border-color: var(--accent);
	color: #0e1016;
}

.srv-roadmap li.is-now .srv-check {
	border-color: var(--accent);
	box-shadow: 0 0 8px rgba(167, 139, 250, 0.5);
}

/* Що нового */
.srv-updates {
	list-style: none;
	display: flex;
	flex-direction: column;
}

.srv-updates li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	padding: 10px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.srv-updates li:first-child {
	border-top: 0;
	padding-top: 0;
}

.srv-update-title {
	flex: 1 1 200px;
	font-size: 13.5px;
	color: #fff;
}

.srv-update-date {
	font-size: 12px;
	color: var(--muted);
}

/* На телефоні бічних панелей немає (home.css) — планету відкриває вікно */
@media (max-width: 600px) {
	.srv-modal {
		align-items: flex-end;
		padding: 0;
	}

	.srv-modal-card {
		max-height: 88vh;
		border-radius: 18px 18px 0 0;
	}
}
