/**
 * iEmpire Engine — frontend styles.
 * Self-contained and scoped under .iee-app so it won't fight the host theme.
 */

.iee-app {
	--iee-bg: #0b0f1a;
	--iee-panel: #131a2b;
	--iee-accent: #00e0b8;
	--iee-accent-2: #6c8cff;
	--iee-text: #e8edf6;
	--iee-muted: #9aa6bd;
	--iee-critical: #ff5c6c;
	--iee-warning: #ffb547;
	--iee-info: #6c8cff;
	max-width: 760px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--iee-text);
}

.iee-hero {
	background: linear-gradient(160deg, #131a2b 0%, #0b0f1a 100%);
	border: 1px solid #1e2740;
	border-radius: 18px;
	padding: 40px 32px;
	text-align: center;
}

.iee-title {
	font-size: 30px;
	line-height: 1.15;
	margin: 0 0 10px;
	font-weight: 800;
	color: var(--iee-text);
}

.iee-subtitle {
	color: var(--iee-muted);
	margin: 0 0 26px;
	font-size: 16px;
}

.iee-form {
	display: flex;
	gap: 10px;
	max-width: 520px;
	margin: 0 auto;
}

.iee-input {
	flex: 1;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid #2a3550;
	background: #0b0f1a;
	color: var(--iee-text);
	font-size: 16px;
	outline: none;
}

.iee-input:focus {
	border-color: var(--iee-accent);
}

.iee-btn {
	padding: 14px 22px;
	border-radius: 12px;
	border: none;
	background: var(--iee-accent);
	color: #042019;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	transition: transform .08s ease, opacity .2s ease;
}

.iee-btn:hover { transform: translateY(-1px); }
.iee-btn:disabled { opacity: .55; cursor: not-allowed; }

.iee-note {
	margin: 16px 0 0;
	color: var(--iee-muted);
	font-size: 14px;
	min-height: 18px;
}

/* Loading */
.iee-loading {
	text-align: center;
	padding: 40px 20px;
	color: var(--iee-muted);
}
.iee-spinner {
	width: 46px; height: 46px;
	border: 4px solid #1e2740;
	border-top-color: var(--iee-accent);
	border-radius: 50%;
	margin: 0 auto 18px;
	animation: iee-spin 0.9s linear infinite;
}
@keyframes iee-spin { to { transform: rotate(360deg); } }

/* Scoreboard */
.iee-results { margin-top: 26px; }

.iee-board {
	background: var(--iee-panel);
	border: 1px solid #1e2740;
	border-radius: 18px;
	padding: 28px;
}

.iee-total {
	text-align: center;
	margin-bottom: 26px;
}
.iee-total .iee-grade {
	font-size: 64px;
	font-weight: 900;
	line-height: 1;
}
.iee-total .iee-grade small { font-size: 24px; color: var(--iee-muted); font-weight: 600; }
.iee-total .iee-domain { color: var(--iee-muted); margin-top: 6px; }

.iee-pillars {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-bottom: 26px;
}
.iee-pillar {
	background: #0b0f1a;
	border: 1px solid #1e2740;
	border-radius: 14px;
	padding: 18px;
	text-align: center;
}
.iee-pillar h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: .08em; color: var(--iee-muted); text-transform: uppercase; }
.iee-pillar .iee-score { font-size: 34px; font-weight: 800; }
.iee-ring {
	height: 6px; border-radius: 3px; background: #1e2740; margin-top: 12px; overflow: hidden;
}
.iee-ring span { display: block; height: 100%; border-radius: 3px; background: var(--iee-accent); }

/* Issues */
.iee-issues h3 { margin: 0 0 14px; font-size: 18px; }
.iee-issue {
	display: flex;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #0b0f1a;
	border: 1px solid #1e2740;
	margin-bottom: 10px;
	align-items: flex-start;
}
.iee-badge {
	flex-shrink: 0;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: 999px;
	letter-spacing: .04em;
}
.iee-badge.critical { background: rgba(255,92,108,.15); color: var(--iee-critical); }
.iee-badge.warning  { background: rgba(255,181,71,.15); color: var(--iee-warning); }
.iee-badge.info     { background: rgba(108,140,255,.15); color: var(--iee-info); }
.iee-issue p { margin: 0; font-size: 14px; color: var(--iee-text); }
.iee-pill-tag { font-size: 11px; color: var(--iee-muted); text-transform: uppercase; margin-left: 6px; }

/* Email gate */
.iee-gate {
	background: linear-gradient(160deg, #16203a, #0b0f1a);
	border: 1px solid #243152;
	border-radius: 16px;
	padding: 26px;
	text-align: center;
	margin-top: 22px;
}
.iee-gate h3 { margin: 0 0 8px; font-size: 20px; }
.iee-gate p { color: var(--iee-muted); margin: 0 0 18px; }
.iee-gate-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; }
.iee-gate-form input { flex: 1; min-width: 160px; padding: 13px 15px; border-radius: 10px; border: 1px solid #2a3550; background: #0b0f1a; color: var(--iee-text); font-size: 15px; }

/* Services CTA */
.iee-cta {
	margin-top: 22px;
	background: var(--iee-accent);
	color: #042019;
	border-radius: 16px;
	padding: 24px;
	text-align: center;
}
.iee-cta h3 { margin: 0 0 14px; font-size: 20px; color: #042019; }
.iee-cta a {
	display: inline-block;
	background: #042019;
	color: var(--iee-accent);
	padding: 12px 26px;
	border-radius: 10px;
	font-weight: 700;
	text-decoration: none;
}

.iee-error { color: var(--iee-critical); text-align: center; padding: 20px; }

@media (max-width: 560px) {
	.iee-form { flex-direction: column; }
	.iee-pillars { grid-template-columns: 1fr; }
	.iee-title { font-size: 24px; }
}

/* =========================================================
   Contact / booking form ([iempire_contact])
   ========================================================= */
.iee-contact {
	background: var(--iee-panel);
	border: 1px solid #1e2740;
	border-radius: 18px;
	padding: 30px;
}
.iee-contact-title { margin: 0 0 8px; font-size: 22px; font-weight: 800; color: var(--iee-text); }
.iee-contact-sub { margin: 0 0 22px; color: var(--iee-muted); font-size: 15px; }
.iee-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 12px;
}
.iee-c-field {
	width: 100%;
	padding: 13px 15px;
	border-radius: 11px;
	border: 1px solid #2a3550;
	background: #0b0f1a;
	color: var(--iee-text);
	font-size: 15px;
	outline: none;
	font-family: inherit;
}
.iee-c-field:focus { border-color: var(--iee-accent); }
.iee-c-textarea { resize: vertical; min-height: 96px; margin-bottom: 16px; }
.iee-c-submit { width: 100%; }

@media (max-width: 560px) {
	.iee-contact-grid { grid-template-columns: 1fr; }
}
