/**
 * Game Server Configurator — V14.0 — Dark Gaming Theme
 */

/* ─── Container ─────────────────────────────────────────────────── */
.amp-configurator {
	max-width: 900px;
	margin: 0 auto;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: #e0e0e0;
	overflow-x: hidden;
	word-wrap: break-word;
}

/* ─── Section ───────────────────────────────────────────────────── */
.amp-cfg-section {
	background: #1a1a2e;
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 16px;
	padding: 32px;
	margin-bottom: 24px;
	box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.amp-cfg-section__header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
}
.amp-cfg-section__header h3 {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: #fff;
}
.amp-cfg-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: linear-gradient(135deg, #7c3aed, #9333ea);
	color: #fff;
	font-weight: 800;
	font-size: 16px;
	flex-shrink: 0;
}
.amp-cfg-section__desc {
	color: #8892a4;
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 24px;
}

/* ─── Slots Display ─────────────────────────────────────────────── */
.amp-cfg-slots__display {
	text-align: center;
	margin-bottom: 8px;
}
.amp-cfg-slots__value {
	font-size: 72px;
	font-weight: 800;
	color: #fff;
	line-height: 1;
	display: inline;
}
.amp-cfg-slots__label {
	font-size: 28px;
	font-weight: 300;
	color: #8892a4;
	margin-left: 8px;
}
.amp-cfg-slots__desc {
	text-align: center;
	color: #8892a4;
	font-size: 13px;
	margin: 4px 0 24px;
	line-height: 1.5;
}

/* ─── Slider ────────────────────────────────────────────────────── */
.amp-cfg-slider-wrap {
	padding: 0 8px;
}
.amp-cfg-slider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 6px;
	background: rgba(255,255,255,0.1);
	border-radius: 3px;
	outline: none;
	cursor: pointer;
}
.amp-cfg-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: linear-gradient(135deg, #f59e0b, #f97316);
	cursor: pointer;
	box-shadow: 0 0 12px rgba(245,158,11,0.5);
	border: 3px solid #1a1a2e;
	transition: transform 0.15s;
}
.amp-cfg-slider::-webkit-slider-thumb:hover {
	transform: scale(1.2);
}
.amp-cfg-slider::-moz-range-thumb {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: linear-gradient(135deg, #f59e0b, #f97316);
	cursor: pointer;
	box-shadow: 0 0 12px rgba(245,158,11,0.5);
	border: 3px solid #1a1a2e;
}
.amp-cfg-slider__ticks {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	padding: 0 4px;
	overflow-x: auto;
	gap: 2px;
}
.amp-cfg-tick {
	font-size: 10px;
	color: #555;
	font-weight: 600;
	min-width: 20px;
	text-align: center;
	transition: color 0.2s;
}
.amp-cfg-tick--active {
	color: #f59e0b;
}

/* ─── Upgrade Cards ─────────────────────────────────────────────── */
.amp-cfg-upgrades {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
}
.amp-cfg-upgrade-card {
	background: #0f0f1a;
	border: 2px solid rgba(255,255,255,0.08);
	border-radius: 12px;
	padding: 20px;
	text-align: center;
	cursor: pointer;
	transition: all 0.25s;
}
.amp-cfg-upgrade-card:hover {
	border-color: rgba(124,58,237,0.4);
	transform: translateY(-2px);
}
.amp-cfg-upgrade-card--active {
	border-color: #7c3aed;
	background: rgba(124,58,237,0.1);
	box-shadow: 0 0 20px rgba(124,58,237,0.2);
}
.amp-cfg-upgrade-card__price {
	font-size: 13px;
	font-weight: 700;
	color: #f59e0b;
	margin-bottom: 12px;
}
.amp-cfg-upgrade-card--active .amp-cfg-upgrade-card__price {
	color: #10b981;
}
.amp-cfg-upgrade-card__icon {
	font-size: 28px;
	margin-bottom: 8px;
	filter: grayscale(0.3);
}
.amp-cfg-upgrade-card--active .amp-cfg-upgrade-card__icon {
	filter: none;
}
.amp-cfg-upgrade-card__label {
	font-size: 14px;
	font-weight: 700;
	color: #fff;
}

/* ─── Extra Cards ───────────────────────────────────────────────── */
.amp-cfg-extras {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.amp-cfg-extra-card {
	display: block;
	cursor: pointer;
}
.amp-cfg-extra-check {
	display: none;
}
.amp-cfg-extra-card__inner {
	background: #0f0f1a;
	border: 2px solid rgba(255,255,255,0.08);
	border-radius: 12px;
	padding: 18px 24px;
	transition: all 0.25s;
}
.amp-cfg-extra-card:hover .amp-cfg-extra-card__inner {
	border-color: rgba(124,58,237,0.3);
}
.amp-cfg-extra-card--active .amp-cfg-extra-card__inner {
	border-color: #7c3aed;
	background: rgba(124,58,237,0.08);
}
.amp-cfg-extra-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}
.amp-cfg-extra-card__name {
	font-size: 15px;
	font-weight: 700;
	color: #fff;
}
.amp-cfg-extra-card__price {
	font-size: 14px;
	font-weight: 700;
	color: #f59e0b;
}
.amp-cfg-extra-card--active .amp-cfg-extra-card__price {
	color: #10b981;
}
.amp-cfg-extra-card__desc {
	margin: 0;
	font-size: 13px;
	color: #8892a4;
	line-height: 1.4;
}

/* ─── Summary ───────────────────────────────────────────────────── */
.amp-cfg-summary {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
	border: 1px solid rgba(124,58,237,0.3);
	border-radius: 16px;
	padding: 28px 32px;
	margin-top: 8px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.amp-cfg-summary__line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	font-size: 14px;
	color: #8892a4;
}
.amp-cfg-summary__total-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 0 0;
	margin-top: 12px;
	border-top: 1px solid rgba(255,255,255,0.1);
	font-size: 13px;
	font-weight: 600;
	color: #8892a4;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.amp-cfg-summary__total {
	font-size: 28px;
	font-weight: 800;
	color: #fff;
	transition: color 0.3s;
}
.amp-cfg-price-flash {
	color: #10b981 !important;
}
.amp-cfg-add-to-cart {
	display: block;
	width: 100%;
	margin-top: 24px;
	padding: 16px 32px;
	background: linear-gradient(135deg, #7c3aed, #9333ea);
	color: #fff;
	border: none;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: all 0.25s;
	box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}
.amp-cfg-add-to-cart:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(124,58,237,0.5);
}
.amp-cfg-add-to-cart:active {
	transform: translateY(0);
}
.amp-cfg-add-to-cart:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
	.amp-cfg-section {
		padding: 18px 14px;
		border-radius: 12px;
	}
	.amp-cfg-section__header {
		flex-wrap: wrap;
	}
	.amp-cfg-section__header h3 {
		font-size: 16px;
	}
	.amp-cfg-section__desc {
		font-size: 12px;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}
	.amp-cfg-slots__value {
		font-size: 48px;
	}
	.amp-cfg-slots__label {
		font-size: 18px;
	}
	.amp-cfg-slots__desc {
		font-size: 12px;
		padding: 0 4px;
	}
	.amp-cfg-upgrades {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
	.amp-cfg-upgrade-card {
		padding: 14px 10px;
	}
	.amp-cfg-upgrade-card__label {
		font-size: 12px;
	}
	.amp-cfg-upgrade-card__price {
		font-size: 11px;
	}
	.amp-cfg-extra-card__inner {
		padding: 14px 16px;
	}
	.amp-cfg-extra-card__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
	.amp-cfg-extra-card__name {
		font-size: 14px;
	}
	.amp-cfg-extra-card__desc {
		font-size: 12px;
		word-wrap: break-word;
	}
	.amp-cfg-summary {
		padding: 18px 14px;
		border-radius: 12px;
	}
	.amp-cfg-summary__total {
		font-size: 22px;
	}
	.amp-cfg-add-to-cart {
		padding: 14px 24px;
		font-size: 14px;
	}
	.amp-cfg-slider__ticks {
		display: none;
	}
}

@media (max-width: 480px) {
	.amp-cfg-upgrades {
		grid-template-columns: 1fr;
	}
	.amp-cfg-section__header h3 {
		font-size: 15px;
	}
}

/* ═══════════════════════════════════════════════════════════════
   SERVER UPGRADE PAGE
   ═══════════════════════════════════════════════════════════════ */

.amp-upgrade {
	display: flex;
	justify-content: center;
	padding: 40px 20px;
}
.amp-upgrade__card {
	position: relative;
	max-width: 440px;
	width: 100%;
	background: #0e0e1e;
	border: 1px solid rgba(124,58,237,0.2);
	border-radius: 24px;
	padding: 48px 40px;
	text-align: center;
	overflow: hidden;
	box-shadow: 0 12px 48px rgba(0,0,0,0.5);
}
.amp-upgrade__glow {
	position: absolute;
	top: -60px;
	left: -60px;
	right: -60px;
	height: 200px;
	pointer-events: none;
	z-index: 0;
}
.amp-upgrade__icon-wrap {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	border: 2px solid rgba(124,58,237,0.3);
	background: rgba(124,58,237,0.08);
	margin: 0 auto 24px;
}
.amp-upgrade__title {
	position: relative;
	z-index: 1;
	font-size: 26px;
	font-weight: 800;
	color: #fff;
	margin: 0 0 12px;
	letter-spacing: -0.02em;
}
.amp-upgrade__desc {
	position: relative;
	z-index: 1;
	font-size: 15px;
	color: #8892a4;
	line-height: 1.6;
	margin: 0 0 28px;
}
.amp-upgrade__server-box {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 14px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 32px;
	text-align: left;
}
.amp-upgrade__server-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #10b981;
	box-shadow: 0 0 8px rgba(16,185,129,0.5);
	flex-shrink: 0;
}
.amp-upgrade__server-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.amp-upgrade__server-name {
	font-size: 15px;
	font-weight: 700;
	color: #fff;
}
.amp-upgrade__server-slots {
	font-size: 12px;
	color: #8892a4;
}
.amp-upgrade__price-box {
	position: relative;
	z-index: 1;
	margin-bottom: 32px;
}
.amp-upgrade__price-main {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 4px;
}
.amp-upgrade__price-currency {
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	margin-top: 8px;
}
.amp-upgrade__price-value {
	font-size: 56px;
	font-weight: 900;
	color: #fff;
	line-height: 1;
	letter-spacing: -0.03em;
}
.amp-upgrade__price-period {
	display: block;
	font-size: 14px;
	color: #8892a4;
	font-weight: 500;
	margin-top: 4px;
}
.amp-upgrade__buy-btn {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	padding: 18px 32px;
	background: linear-gradient(135deg, #7c3aed, #9333ea);
	color: #fff;
	border: none;
	border-radius: 14px;
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: all 0.3s;
	box-shadow: 0 6px 24px rgba(124,58,237,0.35);
	font-family: 'Inter', -apple-system, sans-serif;
}
.amp-upgrade__buy-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 36px rgba(124,58,237,0.5);
}
.amp-upgrade__buy-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}
.amp-upgrade__back {
	position: relative;
	z-index: 1;
	display: inline-block;
	margin-top: 20px;
	font-size: 14px;
	color: #8892a4;
	text-decoration: none;
	transition: color 0.2s;
}
.amp-upgrade__back:hover {
	color: #06b6d4;
}
.amp-upgrade-done {
	text-align: center;
	padding: 48px 24px;
	background: #0e0e1e;
	border: 1px solid rgba(16,185,129,0.3);
	border-radius: 24px;
	max-width: 440px;
	margin: 40px auto;
}
.amp-upgrade-done p {
	color: #c8ccd4;
	font-size: 16px;
	margin-bottom: 20px;
}

@media (max-width: 480px) {
	.amp-upgrade__card {
		padding: 32px 20px;
		border-radius: 16px;
	}
	.amp-upgrade__title {
		font-size: 22px;
	}
	.amp-upgrade__price-value {
		font-size: 44px;
	}
}
