/*
 * Kesatria Hosting Plans — frontend (pricing cards)
 *
 * DEFAULT: light, blends into a white host page — transparent wrapper,
 * white cards, Kesatria brand yellow #f3c82e, 12px radius.
 * [kesatria_hosting_plans theme="dark"] switches to the boxed KA Panel
 * dark look (pure variable override below).
 */

.khp-wrap {
	--khp-card: #ffffff;
	--khp-card-hover: #fffdf5;
	--khp-border: #e8e8e8;
	--khp-border-focus: #d8dce3;
	--khp-accent: #f3c82e;
	--khp-accent-strong: #e0b41a;
	--khp-accent-tint: rgba(243, 200, 46, 0.15);
	--khp-on-accent: #1a1408;
	--khp-text: #1a1a1a;
	--khp-text-soft: #525252;
	--khp-text-faint: #8a8f9c;
	--khp-popular-ring: rgba(224, 180, 26, 0.55);
	--khp-popular-shadow: rgba(23, 26, 31, 0.1);
	--khp-radius: 12px;

	color: var(--khp-text-soft);
	font-family: inherit;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

/* Boxed dark variant */
.khp-wrap--dark {
	--khp-card: #0b1120;
	--khp-card-hover: #0f1526;
	--khp-border: #191f2e;
	--khp-border-focus: #263044;
	--khp-accent: #facc20;
	--khp-accent-strong: #e1b505;
	--khp-accent-tint: rgba(250, 204, 21, 0.14);
	--khp-on-accent: #0a0e14;
	--khp-text: #e2e8f0;
	--khp-text-soft: #94a3b8;
	--khp-text-faint: #64748b;
	--khp-popular-ring: rgba(250, 204, 21, 0.45);
	--khp-popular-shadow: rgba(0, 0, 0, 0.35);

	background: #020617;
	border: 1px solid var(--khp-border);
	padding: 32px 28px;
}

.khp-error {
	padding: 16px 20px;
	border: 1px solid rgba(244, 63, 94, 0.4);
	border-radius: var(--khp-radius);
	color: #f43f5e;
	background: rgba(244, 63, 94, 0.08);
	font-size: 14px;
}

/* ─────────  Section header  ───────── */

.khp-section {
	margin-bottom: 8px;
}

.khp-section__head {
	margin-bottom: 24px;
	text-align: center;
}

.khp-section__overline {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--khp-on-accent);
	background: var(--khp-accent);
	padding: 4px 12px;
	border-radius: 999px;
}

.khp-section__title {
	font-size: 32px;
	font-weight: 800;
	color: var(--khp-text);
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin: 14px 0 0;
}

.khp-section__subtitle {
	color: var(--khp-text-soft);
	font-size: 15px;
	margin: 8px 0 0;
}

/* ─────────  Cards grid  ───────── */

.khp-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 18px;
	align-items: stretch;
}

.khp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--khp-card);
	border: 1px solid var(--khp-border);
	border-radius: var(--khp-radius);
	padding: 26px 22px 22px;
	text-align: center;
	box-shadow: 0 1px 2px rgba(23, 26, 31, 0.05);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.khp-card:hover {
	border-color: var(--khp-border-focus);
	box-shadow: 0 8px 24px var(--khp-popular-shadow);
	transform: translateY(-3px);
}

.khp-card--popular {
	border-color: var(--khp-popular-ring);
	box-shadow: 0 0 0 1px var(--khp-popular-ring), 0 16px 40px var(--khp-popular-shadow);
	background: linear-gradient(180deg, var(--khp-accent-tint), transparent 55%), var(--khp-card);
}

.khp-card__flag {
	position: absolute;
	top: -11px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--khp-accent);
	color: var(--khp-on-accent);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 3px 12px;
	border-radius: 999px;
	white-space: nowrap;
}

.khp-card__name {
	font-size: 16px;
	font-weight: 800;
	color: var(--khp-text);
	letter-spacing: 0.01em;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.khp-card__cpu {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--khp-accent-strong);
	background: var(--khp-accent-tint);
	border-radius: 999px;
	padding: 2px 8px;
}

.khp-card__price {
	margin: 16px 0 4px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.khp-price {
	color: var(--khp-text);
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.05;
	white-space: nowrap;
}

.khp-card--popular .khp-price {
	color: var(--khp-accent-strong);
}

.khp-per {
	font-size: 12px;
	color: var(--khp-text-faint);
}

/* ─────────  Feature checklist  ───────── */

.khp-card__features {
	list-style: none;
	margin: 18px 0 22px;
	padding: 18px 0 0;
	border-top: 1px solid var(--khp-border);
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-align: left;
}

.khp-card__features li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--khp-text-soft);
}

.khp-check {
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
	color: var(--khp-accent-strong);
}

/* ─────────  CTA  ───────── */

.khp-cta {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: var(--khp-accent);
	color: var(--khp-on-accent);
	border-radius: 8px;
	padding: 12px 20px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease, transform 0.15s ease;
}

.khp-cta:hover {
	background: var(--khp-accent-strong);
	color: var(--khp-on-accent);
	transform: translateY(-1px);
}

.khp-card--popular .khp-cta {
	box-shadow: 0 6px 18px rgba(224, 180, 26, 0.3);
}

/* ─────────  Responsive  ───────── */

@media (max-width: 640px) {
	.khp-wrap--dark {
		padding: 24px 16px;
	}

	.khp-section__title {
		font-size: 26px;
	}

	.khp-cards {
		grid-template-columns: 1fr;
	}
}
