/* ═══════════════════════════════════════
   DEDICATED SERVER MARKET
   Clean Table · Dark · Green Accent
   ═══════════════════════════════════════ */

/* ── Override WHMCS wrapper ── */
.app-main[data-tpl="products"] .main-header {
	display: none !important;
}
.app-main[data-tpl="products"] .main-body > .container {
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.app-main[data-tpl="products"] .main-content.col-md-12 {
	padding: 0 !important;
}
.app-main[data-tpl="products"] .sidebar {
	display: none !important;
}
section.plans.bottom.transparent {
	background: transparent !important;
	padding: 0 !important;
}
section.plans.bottom.transparent::after {
	display: none !important;
}

/* ── Dark Mode (default) ── */
.darkmode .app-main[data-tpl="products"],
.darkmode .app-main[data-tpl="products"] .main-body,
.darkmode .app-main[data-tpl="products"] .main-body > .container {
	background: #0a0a0a !important;
}

.darkmode .dm-wrapper {
	--dm-bg: #0a0a0a;
	--dm-surface: rgba(124, 171, 5, 0.03);
	--dm-surface-hover: rgba(124, 171, 5, 0.06);
	--dm-border: rgba(124, 171, 5, 0.12);
	--dm-border-hover: rgba(124, 171, 5, 0.3);
	--dm-text: #eaecf0;
	--dm-text-sec: #94a3b8;
	--dm-text-muted: #4b5563;
	--dm-green: #7CAB05;
	--dm-green-dim: rgba(124, 171, 5, 0.1);
	--dm-green-border: rgba(124, 171, 5, 0.2);
	--dm-orange: #f59e0b;
	--dm-orange-dim: rgba(245, 158, 11, 0.12);
	--dm-red: #ef4444;
}

/* ── Light Mode ── */
body:not(.darkmode) .app-main[data-tpl="products"],
body:not(.darkmode) .app-main[data-tpl="products"] .main-body,
body:not(.darkmode) .app-main[data-tpl="products"] .main-body > .container {
	background: #f8f9fa !important;
}

body:not(.darkmode) .dm-wrapper {
	--dm-bg: #f8f9fa;
	--dm-surface: #ffffff;
	--dm-surface-hover: #f0f2f5;
	--dm-border: rgba(124, 171, 5, 0.2);
	--dm-border-hover: rgba(124, 171, 5, 0.4);
	--dm-text: #1a1a2e;
	--dm-text-sec: #4a5568;
	--dm-text-muted: #a0aec0;
	--dm-green: #6a9204;
	--dm-green-dim: rgba(124, 171, 5, 0.08);
	--dm-green-border: rgba(124, 171, 5, 0.25);
	--dm-orange: #d97706;
	--dm-orange-dim: rgba(217, 119, 6, 0.08);
	--dm-red: #dc2626;
}

body:not(.darkmode) .dm-table thead th {
	background: #f0f2f5;
	color: #6b7280;
}

body:not(.darkmode) .dm-table {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

body:not(.darkmode) .dm-cart-btn {
	background: #7CAB05;
}

body:not(.darkmode) .dm-cart-btn:hover {
	background: #6a9204;
}

body:not(.darkmode) .dm-avail {
	color: #16a34a;
}

body:not(.darkmode) .dm-avail-dot::before {
	background: #16a34a;
}

body:not(.darkmode) .dm-avail-dot::after {
	background: #16a34a;
}

:root {
	--dm-bg: #0a0a0a;
	--dm-surface: rgba(124, 171, 5, 0.03);
	--dm-surface-hover: rgba(124, 171, 5, 0.06);
	--dm-border: rgba(124, 171, 5, 0.12);
	--dm-border-hover: rgba(124, 171, 5, 0.3);
	--dm-text: #eaecf0;
	--dm-text-sec: #94a3b8;
	--dm-text-muted: #4b5563;
	--dm-green: #7CAB05;
	--dm-green-dim: rgba(124, 171, 5, 0.1);
	--dm-green-border: rgba(124, 171, 5, 0.2);
	--dm-orange: #f59e0b;
	--dm-orange-dim: rgba(245, 158, 11, 0.12);
	--dm-red: #ef4444;
}

.dm-wrapper {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	background: var(--dm-bg);
	margin: -20px -15px 0;
	padding: 56px 0 72px;
	-webkit-font-smoothing: antialiased;
}

.dm-container {
	max-width: none;
	padding: 0 16px;
}

/* ── Hero ── */
.dm-hero {
	text-align: left;
	margin-bottom: 56px;
}

.dm-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	border-radius: 999px;
	background: var(--dm-green-dim);
	border: 1px solid var(--dm-green-border);
	color: var(--dm-green);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.3px;
	margin-bottom: 20px;
}

.dm-hero-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--dm-green);
	box-shadow: 0 0 8px var(--dm-green);
	animation: dm-blink 2s ease-in-out infinite;
}

@keyframes dm-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.3; }
}

.dm-hero h1 {
	font-weight: 800;
	font-size: 42px;
	color: var(--dm-text);
	margin: 0 0 14px;
	letter-spacing: -1px;
	line-height: 1.1;
}

.dm-hero p {
	font-size: 17px;
	color: var(--dm-text-sec);
	margin: 0;
	max-width: 620px;
	line-height: 1.6;
}

/* ── Table ── */
.dm-table {
	width: 100%;
	border: 1px solid var(--dm-border);
	border-radius: 16px;
	overflow: hidden;
	border-spacing: 0;
	border-collapse: separate;
}

.dm-table thead th {
	background: var(--dm-surface);
	padding: 14px 24px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: var(--dm-text-muted);
	text-align: left;
	border-bottom: 1px solid var(--dm-border);
}

.dm-table thead th:last-child {
	text-align: right;
}

.dm-table tbody tr {
	transition: background 0.15s ease;
	cursor: pointer;
}

.dm-table tbody tr:hover {
	background: var(--dm-surface-hover);
}

.dm-table tbody tr:not(:last-child) td {
	border-bottom: 1px solid var(--dm-border);
}

.dm-table tbody td {
	padding: 22px 24px;
	font-size: 14px;
	color: var(--dm-text-sec);
	vertical-align: middle;
}

/* Server name cell */
.dm-srv {
	display: flex;
	align-items: center;
	gap: 14px;
}

.dm-srv-icon {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: var(--dm-green-dim);
	border: 1px solid var(--dm-green-border);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.dm-srv-icon i {
	color: var(--dm-green);
	font-size: 14px;
}

.dm-srv-name {
	font-weight: 600;
	font-size: 15px;
	color: var(--dm-text);
	line-height: 1.3;
}

.dm-srv-sub {
	font-size: 12px;
	color: var(--dm-text-muted);
	margin-top: 2px;
}

/* Availability */
.dm-avail {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	color: var(--dm-green);
}

.dm-avail-dot {
	position: relative;
	width: 8px;
	height: 8px;
}

.dm-avail-dot::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--dm-green);
}

.dm-avail-dot::after {
	content: '';
	position: absolute;
	inset: -3px;
	border-radius: 50%;
	background: var(--dm-green);
	opacity: 0.4;
	animation: dm-pulse 2s ease-in-out infinite;
}

@keyframes dm-pulse {
	0%, 100% { transform: scale(1); opacity: 0.4; }
	50% { transform: scale(1.6); opacity: 0; }
}

/* Location */
.dm-loc {
	display: flex;
	align-items: center;
	gap: 8px;
}

.dm-flag {
	width: 20px;
	height: auto;
	border-radius: 2px;
}

/* Price */
.dm-price-cell {
	text-align: right;
	white-space: nowrap;
}

.dm-price {
	display: inline;
	font-weight: 700;
	font-size: 18px;
	color: var(--dm-green);
	line-height: 1;
	white-space: nowrap;
}

.dm-price.has-discount {
	color: var(--dm-red);
}

.dm-price-old {
	font-size: 12px;
	color: var(--dm-text-muted);
	text-decoration: line-through;
	margin-top: 1px;
}

/* Cart button */
.dm-cart-cell {
	text-align: right;
	width: 60px;
}

.dm-cart-btn {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--dm-green);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.dm-cart-btn i {
	color: #fff;
	font-size: 14px;
}

.dm-cart-btn:hover {
	background: #6a9204;
	box-shadow: 0 0 20px rgba(124, 171, 5, 0.25);
}

/* ── Empty State ── */
.dm-empty {
	text-align: center;
	padding: 80px 20px;
	background: var(--dm-surface);
	border: 1px solid var(--dm-border);
	border-radius: 16px;
}

.dm-empty-icon {
	font-size: 52px;
	color: var(--dm-text-muted);
	margin-bottom: 20px;
	opacity: 0.25;
}

.dm-empty h3 {
	font-weight: 700;
	font-size: 22px;
	color: var(--dm-text);
	margin: 0 0 10px;
}

.dm-empty p {
	font-size: 15px;
	color: var(--dm-text-sec);
	max-width: 480px;
	margin: 0 auto 28px;
	line-height: 1.6;
}

.dm-btn-sub {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 22px;
	border-radius: 10px;
	border: 1px solid var(--dm-green-border);
	background: var(--dm-green-dim);
	color: var(--dm-green);
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.25s ease;
	text-decoration: none;
}

.dm-btn-sub:hover {
	background: rgba(34, 197, 94, 0.18);
	border-color: var(--dm-green);
	box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
	text-decoration: none;
	color: var(--dm-green);
}

/* ── Info Box ── */
.dm-info {
	margin-top: 48px;
	background: var(--dm-surface);
	border: 1px solid var(--dm-border);
	border-radius: 16px;
	padding: 28px 32px;
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.dm-info-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--dm-green-dim);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--dm-green);
	font-size: 16px;
}

.dm-info h4 {
	font-weight: 600;
	font-size: 16px;
	color: var(--dm-text);
	margin: 0 0 6px;
}

.dm-info p {
	font-size: 14px;
	color: var(--dm-text-sec);
	line-height: 1.7;
	margin: 0;
}

/* ── DataTable hide ── */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
	display: none !important;
}
.dataTables_wrapper {
	border: none !important;
	background: none !important;
}
#dedicatedRestposten {
	display: none !important;
}

/* ── Responsive ── */
@media (max-width: 900px) {
	.dm-wrapper { padding: 28px 0 40px; margin: -10px -15px 0; }
	.dm-container { padding: 0 16px; }
	.dm-hero { margin-bottom: 32px; }
	.dm-hero h1 { font-size: 28px; letter-spacing: -0.5px; }
	.dm-hero p { font-size: 14px; max-width: 100%; }

	.dm-table thead { display: none; }
	.dm-table, .dm-table tbody, .dm-table tr, .dm-table td { display: block; }
	.dm-table { border: none; border-radius: 0; }

	.dm-table tbody tr {
		background: var(--dm-surface);
		border: 1px solid var(--dm-border);
		border-radius: 14px;
		margin-bottom: 12px;
		padding: 18px;
		cursor: pointer;
	}

	.dm-table tbody tr:not(:last-child) td { border-bottom: none; }
	.dm-table tbody td { padding: 4px 0; }

	.dm-table tbody td[data-label]::before {
		content: attr(data-label);
		font-size: 10px;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 0.8px;
		color: var(--dm-text-muted);
		display: block;
		margin-bottom: 2px;
	}

	.dm-td-server { margin-bottom: 10px; }
	.dm-srv { gap: 10px; }
	.dm-srv-icon { width: 32px; height: 32px; border-radius: 8px; }
	.dm-srv-icon i { font-size: 12px; }
	.dm-srv-name { font-size: 14px; }
	.dm-srv-sub { font-size: 11px; }

	.dm-price-cell {
		text-align: left !important;
		margin-top: 12px;
		padding-top: 14px !important;
		border-top: 1px solid var(--dm-border) !important;
		display: flex !important;
		align-items: center;
		justify-content: space-between;
	}

	.dm-cart-cell {
		display: none !important;
	}

	.dm-price { font-size: 16px; }

	.dm-loc { font-size: 13px; }
	.dm-flag { width: 16px; }
	.dm-avail { font-size: 12px; gap: 6px; }

	.dm-empty { padding: 48px 16px; border-radius: 14px; }
	.dm-empty h3 { font-size: 18px; }
	.dm-empty p { font-size: 13px; }

	.dm-info { flex-direction: column; padding: 18px; gap: 14px; border-radius: 14px; margin-top: 32px; }
	.dm-info-icon { width: 32px; height: 32px; border-radius: 8px; font-size: 14px; }
	.dm-info h4 { font-size: 14px; }
	.dm-info p { font-size: 13px; }
}

@media (max-width: 400px) {
	.dm-hero h1 { font-size: 24px; }
	.dm-container { padding: 0 12px; }
	.dm-table tbody tr { padding: 14px; }
}
