/* EP Licenses Portal — CRM-aligned design */
:root {
	--epl-bg: #f4f4f5;
	--epl-card: #fff;
	--epl-text: #0a0a0a;
	--epl-muted: #737373;
	--epl-border: #e5e7eb;
	--epl-accent: #0a0a0a;
	--epl-success: #16a34a;
	--epl-success-bg: #dcfce7;
	--epl-danger: #dc2626;
	--epl-danger-bg: #fee2e2;
	--epl-radius: 8px;
	--epl-radius-pill: 999px;
	--epl-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--epl-header-height: 60px;
}

*, *::before, *::after { box-sizing: border-box; }

.epl-portal-body {
	margin: 0;
	padding: 0;
	background: var(--epl-bg);
	font-family: var(--epl-font);
	font-size: 14px;
	line-height: 1.6;
	color: var(--epl-text);
	-webkit-font-smoothing: antialiased;
}

.epl-portal-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.epl-portal-body:not(.epl-portal-body--checkout) .epl-portal-wrap {
	padding-top: var(--epl-header-height, 60px);
}
.epl-portal-body.admin-bar:not(.epl-portal-body--checkout) .epl-portal-wrap {
	padding-top: calc(var(--epl-header-height, 60px) + 32px);
}
.epl-portal-body.admin-bar .epl-app-header { top: 32px; }
@media screen and (max-width: 782px) {
	.epl-portal-body.admin-bar:not(.epl-portal-body--checkout) .epl-portal-wrap {
		padding-top: calc(var(--epl-header-height, 60px) + 46px);
	}
	.epl-portal-body.admin-bar .epl-app-header { top: 46px; }
}
.epl-container { max-width: min(1180px, 100%); margin: 0 auto; padding: 0 24px; width: 100%; }

/* ── Header (cp-app-header pattern) ── */
.epl-app-header {
	display: flex;
	align-items: center;
	background: var(--epl-card);
	border-bottom: 1px solid var(--epl-border);
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	z-index: 100;
	height: var(--epl-header-height, 60px);
	box-shadow: 0 1px 3px rgba(0,0,0,.04);
	overflow: visible;
}

.epl-app-header__mobile-menu {
	display: none;
	align-items: center;
	flex-shrink: 0;
	height: 100%;
	padding-left: 8px;
}

.epl-app-header__logo-area {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 24px;
	border-right: 1px solid var(--epl-border);
	flex-shrink: 0;
}

.epl-shell-brand {
	font-size: 16px;
	font-weight: 800;
	color: var(--epl-text);
	text-decoration: none;
	letter-spacing: -.02em;
	white-space: nowrap;
}
.epl-shell-brand--combined {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: min(100%, 360px);
}
.epl-shell-brand__text {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
	letter-spacing: inherit;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.epl-shell-brand__logo {
	height: 28px;
	width: auto;
	max-width: 140px;
	object-fit: contain;
	display: block;
	flex-shrink: 0;
}

.epl-app-header__pill-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0 20px;
	flex: 1;
	justify-content: center;
}

.epl-pill-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--epl-text, #0a0a0a);
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s, color .15s;
}
.epl-pill-nav__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	opacity: .85;
	color: currentColor;
}
.epl-pill-nav__icon svg { width: 18px; height: 18px; display: block; }
.epl-pill-nav__link.is-active .epl-pill-nav__icon { opacity: 1; }
.epl-pill-nav__link:hover {
	background: rgba(10,10,10,.07);
	color: var(--epl-text, #0a0a0a);
	text-decoration: none;
}
.epl-pill-nav__link.is-active {
	background: rgba(10,10,10,.1);
	color: var(--epl-text, #0a0a0a);
	box-shadow: inset 0 0 0 1px rgba(10,10,10,.08);
}
.epl-pill-nav__link.is-active:hover {
	background: rgba(10,10,10,.12);
	color: var(--epl-text, #0a0a0a);
}

.epl-app-header__right {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 16px;
	margin-left: auto;
	flex-shrink: 0;
}

/* ── Profile dropdown ── */
.epl-shell-profile { position: relative; }
.epl-shell-profile__trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 8px;
	border: none;
	background: none;
	cursor: pointer;
	font-family: var(--epl-font);
	font-size: 13px;
	font-weight: 600;
	color: var(--epl-text);
	border-radius: 8px;
	transition: background .15s;
}
.epl-shell-profile__trigger:hover { background: rgba(10,10,10,.04); }

.epl-shell-avatar {
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: var(--epl-accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 800;
	flex-shrink: 0;
	overflow: hidden;
	box-shadow: 0 3px 10px rgba(10,10,10,.28);
}
.epl-shell-avatar img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.epl-shell-profile__name {
	max-width: 140px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.epl-shell-profile__menu {
	display: none;
	position: fixed;
	top: calc(var(--epl-header-height, 60px) + 6px);
	right: 16px;
	background: var(--epl-card);
	border: 1px solid var(--epl-border);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0,0,0,.1);
	min-width: 180px;
	padding: 6px;
	z-index: 1000;
}
.epl-shell-profile__menu.is-open { display: block; }
.admin-bar .epl-shell-profile__menu { top: calc(var(--epl-header-height, 60px) + 32px + 6px); }
@media screen and (max-width: 782px) {
	.admin-bar .epl-shell-profile__menu { top: calc(var(--epl-header-height, 60px) + 46px + 6px); }
}
.epl-shell-profile__menu a {
	display: block;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--epl-text);
	text-decoration: none;
	border-radius: 6px;
	transition: background .1s;
}
.epl-shell-profile__menu a:hover { background: rgba(10,10,10,.04); }

/* ── Mobile toggle ── */
.epl-mobile-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: none;
	background: none;
	cursor: pointer;
	color: var(--epl-text);
	border-radius: 8px;
	padding: 0;
	flex-shrink: 0;
}
.epl-mobile-toggle:hover { background: rgba(10,10,10,.04); }

/* ── Mobile Menu — Full-screen overlay ── */
.epl-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 2147483600;
	pointer-events: none;
}
.epl-mobile-menu[hidden] { display: none; }
.epl-mobile-menu.is-open { pointer-events: auto; }

.epl-mobile-menu__overlay {
	all: unset;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.4);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease;
	z-index: -1;
	cursor: default;
}
.epl-mobile-menu.is-open .epl-mobile-menu__overlay {
	opacity: 1;
	pointer-events: auto;
}

.epl-mobile-menu__panel {
	position: fixed;
	inset: 0;
	display: flex;
	flex-direction: column;
	background: var(--epl-card, #fff);
	color: var(--epl-text, #0a0a0a);
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
	z-index: 1;
	font-family: var(--epl-font);
	contain: strict;
	isolation: isolate;
	overflow: hidden;
}
.epl-mobile-menu.is-open .epl-mobile-menu__panel {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.epl-mobile-menu__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: max(10px, env(safe-area-inset-top)) 20px 10px;
	min-height: 60px;
	background: var(--epl-card, #fff);
	border-bottom: 1px solid var(--epl-border, #e5e7eb);
	flex-shrink: 0;
}

.epl-mobile-menu__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1;
}
.epl-mobile-menu__logo {
	height: 36px;
	width: auto;
	max-width: 120px;
	object-fit: contain;
	display: block;
	flex-shrink: 0;
}
.epl-mobile-menu__brand-text {
	font-size: 18px;
	font-weight: 700;
	color: var(--epl-text, #0a0a0a);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

.epl-mobile-menu__close-btn {
	all: unset;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	background: rgba(0,0,0,.06);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
}
.epl-mobile-menu__close-btn svg {
	display: block;
	width: 18px;
	height: 18px;
}

.epl-mobile-menu__welcome {
	padding: 24px 20px 16px;
	text-align: center;
	flex-shrink: 0;
}
.epl-mobile-menu__greet {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.1;
	color: var(--epl-text, #0a0a0a);
}
.epl-mobile-menu__sub {
	margin: 6px 0 0;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--epl-muted, #737373);
}

.epl-mobile-menu__nav {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 10px 16px;
	align-content: start;
}

.epl-mobile-menu__link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 46px;
	padding: 11px 16px;
	border-radius: 10px;
	border: 1px solid rgba(0,0,0,.1);
	background: var(--epl-card, #fff);
	text-decoration: none;
	color: var(--epl-text, #0a0a0a);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.epl-mobile-menu__link.is-active {
	background: var(--epl-accent, #0a0a0a);
	border-color: var(--epl-accent, #0a0a0a);
	color: #fff;
}
.epl-mobile-menu__link:hover,
.epl-mobile-menu__link:focus-visible {
	background: #262626;
	border-color: #262626;
	color: #fff;
	text-decoration: none;
	outline: none;
}
.epl-mobile-menu__icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: .6;
}
.epl-mobile-menu__link.is-active .epl-mobile-menu__icon { opacity: 1; }

.epl-mobile-menu__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 12px 16px max(16px, env(safe-area-inset-bottom));
	flex-shrink: 0;
	border-top: 1px solid var(--epl-border, #e5e7eb);
}
.epl-mobile-menu__action {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid var(--epl-border, #e5e7eb);
	background: var(--epl-card, #fff);
	color: var(--epl-text, #0a0a0a);
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .01em;
	line-height: 1.2;
	transition: background .12s ease, border-color .12s ease;
	box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.epl-mobile-menu__action:hover,
.epl-mobile-menu__action:focus-visible {
	background: rgba(0,0,0,.03);
	border-color: var(--epl-text, #0a0a0a);
	color: var(--epl-text, #0a0a0a);
	text-decoration: none;
	outline: none;
}

/* Scroll lock */
html.epl-nav-lock,
html.epl-nav-lock body {
	overflow: hidden !important;
	height: 100% !important;
}

@media (prefers-reduced-motion: reduce) {
	.epl-mobile-menu__overlay,
	.epl-mobile-menu__panel {
		transition: none;
	}
}

/* ── Main ── */
.epl-main { flex: 1; padding: 24px 0; }

/* ── Footer (cp-app-footer pattern) ── */
.epl-footer {
	padding: 18px 0;
	border-top: 1px solid var(--epl-border);
	font-size: 12px;
	color: var(--epl-muted);
}
.epl-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.epl-footer__copy { margin: 0; }
.epl-footer__links { display: flex; gap: 16px; }
.epl-footer__links a { color: var(--epl-muted); text-decoration: none; font-weight: 600; }
.epl-footer__links a:hover { color: var(--epl-text); }

/* ── Page Title ── */
.epl-page-title {
	margin: 0 0 24px;
	font-size: clamp(1.4rem, 1.2rem + .6vw, 1.8rem);
	font-weight: 800;
	letter-spacing: -.02em;
}

.epl-portal-body h1,
.epl-portal-body h2,
.epl-portal-body h3,
.epl-portal-body h4 {
	color: var(--epl-text, #0a0a0a);
	line-height: 1.2;
	letter-spacing: -.02em;
}
.epl-portal-body h1 { font-size: clamp(1.75rem, 1.5rem + .8vw, 2.25rem); }
.epl-portal-body h2 { font-size: clamp(1.4rem, 1.25rem + .5vw, 1.75rem); }
.epl-portal-body h3 { font-size: clamp(1.15rem, 1.05rem + .3vw, 1.35rem); }
.epl-portal-body h4 { font-size: clamp(1rem, .95rem + .15vw, 1.15rem); }

/* ── Cards ── */
.epl-card {
	background: var(--epl-card);
	border: 1px solid var(--epl-border);
	border-radius: var(--epl-radius);
	padding: 24px;
	margin-bottom: 16px;
}

/* ── Badges (solid bg + white text) ── */
.epl-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 12px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #fff;
}
.epl-badge--active { background: var(--epl-success); }
.epl-badge--expired { background: var(--epl-danger); }
.epl-badge--inactive { background: #9ca3af; }

/* ── License Key ── */
.epl-license-key {
	font-family: ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
	font-weight: 700;
	font-size: 13px;
	color: var(--epl-text);
	letter-spacing: .04em;
	background: rgba(10,10,10,.04);
	padding: 5px 11px;
	border-radius: 8px;
	border: 1px solid var(--epl-border);
	user-select: all;
}

/* ── Dashboard: License Cards ── */
.epl-license-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	flex-wrap: wrap;
}
.epl-license-header__info { flex: 1; min-width: 200px; }
.epl-license-header__name { font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.epl-license-header__key-row { display: flex; align-items: center; gap: 8px; }
.epl-license-header__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	flex-shrink: 0;
}
.epl-meta-text { font-size: 12px; color: var(--epl-muted); font-weight: 600; }

.epl-copy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid var(--epl-border);
	border-radius: 8px;
	background: #fff;
	color: var(--epl-muted);
	cursor: pointer;
	padding: 0;
}

.epl-license-section {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(10,10,10,.06);
}
.epl-license-section__label {
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: rgba(10,10,10,.5);
	margin-bottom: 10px;
}
.epl-license-actions { display: flex; align-items: center; gap: 10px; }

.epl-act-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 7px 0;
	gap: 12px;
}
.epl-act-row--border { border-top: 1px solid rgba(10,10,10,.06); }
.epl-act-row__domain { font-size: 13px; font-weight: 600; word-break: break-all; }

.epl-download-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0;
	gap: 16px;
}
.epl-download-row--border { border-top: 1px solid rgba(10,10,10,.06); }
.epl-download-row__title { font-size: 14px; font-weight: 700; }
.epl-download-row__version { font-size: 12px; color: var(--epl-muted); margin-top: 1px; }

.epl-checkout-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 22px;
	border: none;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s, box-shadow .15s;
	white-space: nowrap;
}
.epl-checkout-btn--primary {
	background: var(--epl-accent, #0a0a0a);
	color: #fff !important;
}
.epl-checkout-btn--primary:hover {
	background: #262626;
	box-shadow: 0 2px 8px rgba(0,0,0,.12);
	color: #fff !important;
	text-decoration: none;
}
.epl-checkout-btn--sm {
	padding: 8px 18px;
	font-size: 13px;
}

.epl-btn-danger {
	display: inline-flex;
	align-items: center;
	padding: 4px 14px;
	border: 1px solid #fca5a5;
	border-radius: 999px;
	background: #fff;
	color: #dc2626;
	font-size: 11px;
	font-weight: 700;
	font-family: var(--epl-font);
	cursor: pointer;
	white-space: nowrap;
}
.epl-btn-danger:hover { background: #fef2f2; }

/* ── Billing: Card Layout ── */
.epl-billing-cards { display: flex; flex-direction: column; gap: 12px; }
.epl-billing-card__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	flex-wrap: wrap;
}
.epl-billing-card__left { flex: 1; min-width: 140px; }
.epl-billing-card__title { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.epl-billing-card__date { font-size: 12px; color: var(--epl-muted); font-weight: 600; }
.epl-billing-card__right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	flex-shrink: 0;
}
.epl-billing-card__amount { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.epl-billing-card__refund {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--epl-border);
	font-size: 13px;
	font-weight: 600;
	color: var(--epl-danger);
}
.epl-billing-card__txn {
	margin-top: 6px;
	font-family: ui-monospace, monospace;
	font-size: 11px;
	letter-spacing: .02em;
	color: var(--epl-muted);
}

/* ── Checkout: Full-page layout ── */
.epl-portal-body--checkout {
	background: #fff !important;
	color: #0a0a0a !important;
}
.epl-portal-body--checkout,
.epl-portal-body--checkout * {
	font-family: var(--epl-font) !important;
	line-height: 1.6;
}
.epl-portal-body--checkout h1,
.epl-portal-body--checkout h2,
.epl-portal-body--checkout h3,
.epl-portal-body--checkout h4 {
	color: var(--epl-text, #0a0a0a) !important;
	font-family: var(--epl-font) !important;
}
.epl-portal-body--checkout p,
.epl-portal-body--checkout span,
.epl-portal-body--checkout label {
	color: inherit;
	font-family: var(--epl-font) !important;
}
.epl-portal-body--checkout input,
.epl-portal-body--checkout textarea,
.epl-portal-body--checkout select {
	color: var(--epl-text, #0a0a0a) !important;
	font-family: var(--epl-font) !important;
}
/* Do not force button text color globally — it overwrote white labels on accent buttons (black on black). */
.epl-portal-body--checkout button {
	font-family: var(--epl-font) !important;
}
.epl-portal-body--checkout a {
	color: var(--epl-text, #0a0a0a);
	text-decoration: none;
	font-family: var(--epl-font) !important;
}
.epl-portal-body--checkout input[type="text"],
.epl-portal-body--checkout input[type="email"],
.epl-portal-body--checkout input[type="checkbox"] {
	appearance: auto;
	-webkit-appearance: auto;
}
.epl-portal-body--checkout .epl-main { padding: 0; }

.epl-checkout-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; width: 100%; }

.epl-co { min-height: 100vh; display: flex; flex-direction: column; }

.epl-co__topbar {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px 0;
	border-bottom: 1px solid var(--epl-border);
	text-align: center;
}
.epl-co__brand {
	font-size: 18px;
	font-weight: 800;
	color: var(--epl-text);
	text-decoration: none;
	letter-spacing: -.02em;
}
.epl-co__brand--combined {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	max-width: 100%;
}
.epl-co__brand-text {
	display: block;
	font-size: 18px;
	font-weight: 800;
	color: var(--epl-text);
	letter-spacing: -.02em;
	line-height: 1.2;
}
.epl-co__brand-logo {
	height: 32px;
	width: auto;
	max-width: min(280px, 85vw);
	object-fit: contain;
	display: block;
}

.epl-co__heading { padding: 32px 0 28px; }
.epl-co__heading h1 {
	margin: 0;
	font-size: clamp(22px, 2vw + 14px, 32px);
	font-weight: 800;
	letter-spacing: -.03em;
	color: var(--epl-text);
}

.epl-co__grid {
	display: grid;
	grid-template-columns: 1fr 420px;
	gap: 48px;
	align-items: start;
	padding-bottom: 48px;
}

/* Left column */
.epl-co__section {
	padding: 28px;
	border: 1px solid var(--epl-border);
	border-radius: var(--epl-radius);
	margin-bottom: 20px;
	background: #fff;
}
.epl-co__section-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -.01em;
}
.epl-co__section-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: var(--epl-accent);
	color: #fff !important;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 800;
	flex-shrink: 0;
}
.epl-co__section-hint {
	margin: 0 0 18px;
	font-size: 14px;
	color: #525252 !important;
}
.epl-co__req { color: var(--epl-danger); }

.epl-co__fields { display: flex; flex-wrap: wrap; gap: 14px; }
.epl-co__field { flex: 1 1 100%; }
.epl-co__field--half { flex: 1 1 calc(50% - 7px); min-width: 180px; }
.epl-co__field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #374151 !important;
	margin-bottom: 5px;
}
.epl-co__field input[type="text"],
.epl-co__field input[type="email"] {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #d5dbe3;
	border-radius: 10px;
	font-size: 14px;
	font-family: var(--epl-font);
	transition: border-color .15s;
	background: #fff;
}
.epl-co__field input:focus { outline: none; border-color: var(--epl-accent); box-shadow: 0 0 0 3px rgba(10,10,10,.06); }
.epl-co__field input[readonly] { background: #f9fafb; color: var(--epl-muted); cursor: default; }

/* Packages */
.epl-co__packages { display: flex; flex-direction: column; gap: 10px; }
.epl-co__pkg {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	border: 2px solid var(--epl-border);
	border-radius: var(--epl-radius);
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.epl-co__pkg input[type="radio"] { display: none; }
.epl-co__pkg:hover { border-color: #b0b5bf; }
.epl-co__pkg--selected { border-color: var(--epl-accent); background: rgba(10,10,10,.015); }

.epl-co__pkg-radio {
	width: 20px;
	height: 20px;
	border: 2px solid #d1d5db;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: border-color .15s;
}
.epl-co__pkg-radio span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: transparent;
	transition: background .15s;
}
.epl-co__pkg--selected .epl-co__pkg-radio { border-color: var(--epl-accent); }
.epl-co__pkg--selected .epl-co__pkg-radio span { background: var(--epl-accent); }

.epl-co__pkg-info { flex: 1; }
.epl-co__pkg-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.epl-co__pkg-desc { font-size: 13px; color: #525252 !important; }
.epl-co__pkg-price {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -.02em;
	white-space: nowrap;
	flex-shrink: 0;
}
.epl-co__pkg-price span { font-size: 13px; font-weight: 600; color: #737373 !important; }

/* Contract / TOS */
.epl-co__tos {
	max-height: 200px;
	overflow-y: auto;
	padding: 16px;
	border: 1px solid var(--epl-border);
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.7;
	color: #374151 !important;
	margin-bottom: 12px;
	background: #fafafa;
}
.epl-co__agree {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.epl-co__agree input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--epl-accent); }

/* Right sidebar */
.epl-co__right { position: sticky; top: 24px; }
.epl-co__sidebar {
	background: #fafbfc;
	border: 1px solid var(--epl-border);
	border-radius: var(--epl-radius);
	padding: 28px;
}
.epl-co__sidebar-title {
	margin: 0 0 20px;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -.01em;
}

.epl-co__order-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 10px 0;
	font-size: 14px;
	font-weight: 600;
	border-bottom: 1px solid var(--epl-border);
	gap: 12px;
}
.epl-co__order-row--header {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #737373 !important;
	border-bottom: 2px solid var(--epl-border);
}

/* Discount inputs */
.epl-co__discount-section { margin-top: 18px; }
.epl-co__discount-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #374151 !important;
	margin-bottom: 6px;
}
.epl-co__discount-input { display: flex; gap: 8px; }
.epl-co__discount-input input[type="text"] {
	flex: 1;
	padding: 9px 12px;
	border: 1.5px solid #d5dbe3;
	border-radius: 8px;
	font-size: 13px;
	font-family: var(--epl-font);
}
.epl-co__discount-input input:focus { outline: none; border-color: var(--epl-accent); }
.epl-co__discount-btn {
	padding: 9px 16px;
	background: #fff;
	color: var(--epl-text, #0a0a0a) !important;
	border: 1px solid var(--epl-text, #0a0a0a);
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	font-family: var(--epl-font);
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s, border-color .15s;
}
.epl-co__discount-btn:hover {
	background: #f5f5f5;
	border-color: var(--epl-text, #0a0a0a);
	color: var(--epl-text, #0a0a0a) !important;
}

.epl-co__msg {
	font-size: 12px;
	font-weight: 600;
	margin-top: 6px;
}
.epl-co__msg--ok { color: #166534; }
.epl-co__msg--err { color: #991b1b; }

/* Breakdown */
.epl-co__breakdown { margin-top: 20px; border-top: 1px solid var(--epl-border); padding-top: 12px; }
.epl-co__break-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	font-size: 14px;
	color: #525252 !important;
}
.epl-co__break-row--total {
	border-top: 2px solid var(--epl-border);
	margin-top: 6px;
	padding-top: 14px;
	font-weight: 800;
	font-size: 17px;
	color: var(--epl-text);
}

/* PayPal / payment area */
.epl-co__pay { margin-top: 20px; }
.epl-co__checkout-btn {
	display: block;
	width: 100%;
	padding: 14px;
	background: var(--epl-accent);
	color: #fff !important;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	font-family: var(--epl-font);
	cursor: pointer;
	text-align: center;
	transition: opacity .15s;
}
.epl-co__checkout-btn:hover { opacity: .85; color: #fff !important; }

.epl-co__err {
	padding: 12px;
	border-radius: 10px;
	background: var(--epl-danger-bg);
	color: #991b1b;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	margin-top: 12px;
}
.epl-co__success {
	padding: 16px;
	border-radius: 10px;
	background: var(--epl-success-bg);
	color: #166534;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	margin-top: 12px;
}
.epl-co__empty {
	text-align: center;
	padding: 48px;
	color: #525252 !important;
}

.epl-co-empty {
	text-align: center;
	padding: 48px;
	color: #525252 !important;
}
.epl-co-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 16px;
	padding: 12px 24px;
	border: none;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	font-family: var(--epl-font);
	cursor: pointer;
	text-decoration: none;
	transition: opacity .15s;
}
.epl-co-btn:hover { opacity: .85; }
.epl-co-btn--primary { background: var(--epl-accent); color: #fff !important; }

/* Footer */
.epl-co__footer {
	margin-top: auto;
	padding: 20px 0;
	text-align: center;
	font-size: 12px;
	color: #737373 !important;
	border-top: 1px solid var(--epl-border);
}

/* ── Confirmation Page ── */
.epl-confirm {
	max-width: 640px;
	margin: 0 auto;
	padding: 48px 24px 32px;
	text-align: center;
}
.epl-confirm__icon { margin-bottom: 20px; }
.epl-confirm__title {
	margin: 0 0 8px;
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 800;
	letter-spacing: -.03em;
	color: var(--epl-text);
}
.epl-confirm__subtitle {
	margin: 0 0 32px;
	font-size: 16px;
	color: #525252 !important;
}
.epl-confirm__card {
	background: #fafbfc;
	border: 1px solid var(--epl-border);
	border-radius: var(--epl-radius);
	padding: 24px;
	margin-bottom: 16px;
	text-align: left;
}
.epl-confirm__card-header {
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #525252 !important;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--epl-border);
}
.epl-confirm__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	font-size: 14px;
	color: #525252 !important;
}
.epl-confirm__row span { color: #737373 !important; }
.epl-confirm__row strong { color: #0a0a0a !important; font-weight: 700; }
.epl-confirm__row--key {
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding-top: 14px;
	margin-top: 6px;
	border-top: 1px solid var(--epl-border);
}
.epl-confirm__key {
	display: block;
	width: 100%;
	padding: 12px 16px;
	background: #fff;
	border: 1.5px solid var(--epl-border);
	border-radius: 8px;
	font-family: ui-monospace, 'SF Mono', monospace;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .03em;
	color: var(--epl-text);
	word-break: break-all;
	user-select: all;
}
.epl-confirm__copy-wrap { text-align: center; margin-top: 10px; }
.epl-confirm__copy-btn {
	padding: 8px 20px;
	background: var(--epl-accent);
	color: #fff !important;
	border: none;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	font-family: var(--epl-font);
	cursor: pointer;
	transition: opacity .15s;
}
.epl-confirm__copy-btn:hover { opacity: .85; color: #fff !important; }

.epl-confirm__dl-hint {
	font-size: 13px;
	color: #525252 !important;
	margin: 0 0 14px;
}
.epl-confirm__dl-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	background: #fff;
	border: 1.5px solid var(--epl-border);
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	color: var(--epl-text) !important;
	text-decoration: none !important;
	transition: border-color .15s, background .15s;
	margin-bottom: 8px;
}
.epl-confirm__dl-link:hover { border-color: var(--epl-accent); background: rgba(10,10,10,.015); }
.epl-confirm__dl-link:last-child { margin-bottom: 0; }

.epl-confirm__next { display: flex; flex-direction: column; gap: 16px; }
.epl-confirm__next-item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}
.epl-confirm__next-num {
	width: 28px;
	height: 28px;
	background: var(--epl-accent);
	color: #fff;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 800;
	flex-shrink: 0;
	margin-top: 2px;
}
.epl-confirm__next-item strong {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #0a0a0a !important;
	margin-bottom: 3px;
}
.epl-confirm__next-item p {
	margin: 0;
	font-size: 13px;
	color: #525252 !important;
	line-height: 1.5;
}
.epl-confirm__next-item a { color: #0a0a0a !important; font-weight: 700; text-decoration: underline !important; }

.epl-confirm__actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 28px;
	flex-wrap: wrap;
}
.epl-co-btn--ghost {
	background: transparent;
	color: var(--epl-text);
	border: 1.5px solid var(--epl-border);
}
.epl-co-btn--ghost:hover { background: rgba(10,10,10,.03); }

.epl-confirm__email-note {
	margin: 20px 0 0;
	font-size: 12px;
	color: #737373 !important;
}

/* Responsive: checkout */
@media (max-width: 900px) {
	.epl-co__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.epl-co__right { position: static; }
}
@media (max-width: 640px) {
	.epl-checkout-container { padding: 0 16px; }
	.epl-co__heading h1 { font-size: 22px; }
	.epl-co__section { padding: 20px 16px; }
	.epl-co__sidebar { padding: 20px 16px; }
	.epl-co__field--half { flex: 1 1 100%; }
	.epl-co__pkg { flex-wrap: wrap; gap: 10px; }
	.epl-co__pkg-price { width: 100%; text-align: right; }
}

/* ── Settings page ── */
.epl-settings-overview-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--epl-muted, rgba(11,13,16,.64));
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--epl-border, rgba(11,13,16,.06));
}
.epl-settings-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 12px;
}
.epl-settings-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 16px 12px;
	background: var(--epl-fill, rgba(11,13,16,.02));
	border: 1px solid var(--epl-border, rgba(11,13,16,.09));
	border-radius: 12px;
	transition: border-color .15s ease;
}
.epl-settings-stat:hover { border-color: var(--epl-border-hover, #b0b5bf); }
.epl-settings-stat__icon {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	margin-bottom: 8px;
	color: #fff;
	flex-shrink: 0;
}
.epl-settings-stat__icon--date { background: #6366f1; }
.epl-settings-stat__icon--licenses { background: #0ea5e9; }
.epl-settings-stat__icon--total { background: #f59e0b; }
.epl-settings-stat__val {
	font-size: 18px;
	font-weight: 800;
	color: var(--epl-text, #0a0a0a);
	line-height: 1.2;
	margin-bottom: 2px;
}
.epl-settings-stat__label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--epl-muted, #525252);
}
.epl-settings-form { display: flex; flex-direction: column; gap: 16px; }
.epl-settings-header { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.epl-settings-avatar {
	position: relative;
	width: 80px !important;
	height: 80px !important;
	min-width: 80px !important;
	min-height: 80px !important;
	max-width: 80px !important;
	max-height: 80px !important;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 50% !important;
}
.epl-settings-avatar__img {
	width: 80px !important;
	height: 80px !important;
	min-width: 80px !important;
	min-height: 80px !important;
	max-width: 80px !important;
	max-height: 80px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	display: block !important;
	border: 2px solid var(--epl-border, rgba(11,13,16,.12)) !important;
	aspect-ratio: 1/1 !important;
	box-sizing: border-box !important;
}
.epl-settings-avatar__initial {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: var(--epl-fill, rgba(11,13,16,.035));
	border: 2px dashed var(--epl-border, #d5dbe3);
	color: var(--epl-muted, #525252);
	font-size: 28px;
	font-weight: 800;
}
.epl-settings-header__info h2 { margin: 0 0 2px; font-size: 20px; font-weight: 800; color: var(--epl-text, #0a0a0a); }
.epl-settings-header__info p { margin: 0; font-size: 13px; color: var(--epl-muted, #525252); }

/* Upload row — match CRM dashed wrapper */
.epl-settings-upload { display: flex; flex-direction: column; gap: 5px; }
.epl-settings-upload > label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--epl-muted, #525252);
}
.epl-settings-upload__wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border: 2px dashed var(--epl-border, #d5dbe3);
	border-radius: 10px;
	background: var(--epl-fill, rgba(11,13,16,.02));
	transition: border-color .15s ease;
	box-sizing: border-box;
	cursor: pointer;
	position: relative;
}
.epl-settings-upload__wrap:hover { border-color: var(--epl-muted, #525252); }
.epl-settings-upload__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 36px;
	padding: 8px 16px;
	background: var(--epl-surface, #fff) !important;
	color: var(--epl-text, #0a0a0a) !important;
	font-size: 12px;
	font-weight: 600;
	font-family: inherit;
	border: 1px solid var(--epl-border, #d5dbe3);
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background .15s ease, border-color .15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.epl-settings-upload__btn:hover { background: var(--epl-fill, rgba(11,13,16,.035)) !important; border-color: var(--epl-text, #0a0a0a); }
.epl-settings-upload__name {
	font-size: 13px;
	color: var(--epl-muted, #525252);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}
.epl-settings-upload__real {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0,0,0,0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
	opacity: 0 !important;
}
.epl-settings-upload__hint {
	font-size: 11px;
	color: var(--epl-muted, #525252);
	margin-top: 2px;
}

.epl-settings-divider { border: 0; border-top: 1px solid var(--epl-border, rgba(11,13,16,.09)); margin: 8px 0; }
.epl-settings-row { display: flex; gap: 12px; }
.epl-settings-row > .epl-settings-field { flex: 1; }
.epl-settings-field { display: flex; flex-direction: column; gap: 5px; }
.epl-settings-field label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--epl-muted, #525252);
}
.epl-settings-field input[type="text"],
.epl-settings-field input[type="tel"] {
	display: block;
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--epl-border, #d5dbe3);
	border-radius: 999px;
	background: var(--epl-surface, #fff);
	font-size: 13px;
	font-family: inherit;
	color: var(--epl-text, #0a0a0a);
	box-sizing: border-box;
	transition: border-color .15s ease;
	outline: none;
}
.epl-settings-field input:focus {
	border-color: var(--epl-text, #0a0a0a);
	box-shadow: 0 0 0 3px rgba(11,13,16,.1);
}
.epl-settings-readonly { display: flex; flex-direction: column; gap: 5px; }
.epl-settings-readonly label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--epl-muted, #525252);
}
.epl-settings-readonly__val {
	font-size: 13px;
	font-weight: 600;
	color: var(--epl-text, #0a0a0a);
	padding: 10px 14px;
	background: var(--epl-fill, rgba(11,13,16,.02));
	border: 1px solid var(--epl-border, rgba(11,13,16,.09));
	border-radius: 999px;
}
.epl-settings-actions { display: flex; gap: 10px; margin-top: 4px; }
.epl-settings-save {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 28px;
	background: var(--epl-accent, #0a0a0a);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	font-family: inherit;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background .15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.epl-settings-save:hover { background: #262626; }
.epl-settings-save:disabled { opacity: .5; cursor: not-allowed; }
.epl-settings-note {
	font-size: 12px;
	color: var(--epl-muted, #525252);
	margin-top: 8px;
	line-height: 1.5;
}
.epl-settings-note a { color: var(--epl-text, #0a0a0a); font-weight: 700; text-decoration: none; }
.epl-settings-note a:hover { text-decoration: underline; }
.epl-settings-msg {
	padding: 10px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	display: none;
	text-align: center;
}
.epl-settings-msg--ok { display: block; background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.epl-settings-msg--err { display: block; background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Responsive (portal — CRM mobile breakpoint; single 1024px block) ── */
@media (max-width: 1024px) {
	.epl-app-header__mobile-menu {
		display: flex !important;
		align-items: center;
	}
	.epl-mobile-toggle {
		display: flex;
	}
	.epl-app-header__logo-area { display: none !important; }
	.epl-app-header__pill-nav { display: none !important; }
	.epl-shell-profile__name { display: none !important; }
	.epl-app-header {
		box-shadow: none !important;
		border-bottom: 0 !important;
	}
	.epl-shell-profile__trigger {
		pointer-events: none !important;
		cursor: default !important;
		padding: 0 !important;
		background: transparent !important;
	}
	.epl-shell-profile__menu { display: none !important; }
	.epl-shell-profile__trigger svg { display: none !important; }

	.epl-portal-body:not(.epl-portal-body--checkout) .epl-portal-wrap {
		background: var(--epl-card, #fff);
	}

	.epl-main {
		padding: 8px 0 0;
		background: var(--epl-bg, #f4f4f5);
		border-radius: 20px 20px 0 0;
		position: relative;
		z-index: 1;
		overflow: hidden;
		min-height: calc(100vh - var(--epl-header-height, 60px) - 8px);
	}
	.epl-container { padding: 0 12px; }

	.epl-card {
		padding: 16px;
		margin-bottom: 10px;
		border-radius: 8px;
		box-shadow: none;
	}

	.epl-page-title {
		font-size: clamp(1.25rem, 1rem + .72vw, 1.5rem);
		margin: 0 0 12px;
		margin-block-start: 0;
	}
	.epl-container > .epl-page-title:first-child {
		margin-top: 0;
		margin-block-start: 0;
		padding-top: 0;
	}

	.epl-license-header { flex-direction: column; }
	.epl-license-header__meta { align-items: flex-start; }
	.epl-billing-card__top { flex-direction: column; }
	.epl-billing-card__right { align-items: flex-start; }

	.epl-footer {
		background: var(--epl-bg, #f4f4f5);
		border-top: none;
	}
	.epl-footer__inner { flex-direction: column; text-align: center; gap: 8px; }

	.epl-settings-row { flex-direction: column; gap: 16px; }
	.epl-settings-header { flex-direction: column; text-align: center; }
	.epl-settings-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1025px) {
	.epl-app-header__mobile-menu { display: none; }
	.epl-mobile-menu { display: none !important; }
}
