/* ==========================================================================
   AdsDigi IELTS — Landing mobile (front-page < 768px)
   Thiết kế gốc 402px, giữ layout mobile tối đa 480px, canh giữa.
   Nhận diện: gradient tím #8B5CF6 → hồng #D946EF, font Be Vietnam Pro.
   ========================================================================== */

#adm-root {
	font-family: 'Be Vietnam Pro', system-ui, sans-serif;
	color: #241B3A;
	background: #fff;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}
#adm-root *,
#adm-root *::before,
#adm-root *::after { box-sizing: border-box; }
#adm-root img { display: block; max-width: 100%; }
/* Reset specificity 0 (:where) để các class .adm-* đè được */
:where(#adm-root h1, #adm-root h2, #adm-root h3, #adm-root p) { margin: 0; }
:where(#adm-root button) {
	font-family: inherit;
	border: 0;
	background: none;
	cursor: pointer;
	color: inherit;
}
#adm-root [hidden] { display: none !important; }

.adm-wrap {
	max-width: 480px;
	margin: 0 auto;
	background: #fff;
	position: relative;
}

/* Ẩn/hiện theo breakpoint: mobile < 768px, desktop giữ bản React từ /dist */
#outer, #ad-desktop-footer { display: none; }
@media (min-width: 768px) {
	#outer, #ad-desktop-footer { display: block; }
	#adm-root { display: none; }
}

/* --- Header dính ------------------------------------------------------- */
.adm-header {
	position: sticky;
	top: 0;
	z-index: 40;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: calc(env(safe-area-inset-top, 0px) + 14px) 18px 12px;
	background: rgba(255, 255, 255, 0.88);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid #EEEAF7;
}
body.admin-bar .adm-header { top: 46px; }

.adm-brand { display: flex; align-items: center; gap: 9px; }
.adm-logo {
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: linear-gradient(135deg, #8B5CF6, #D946EF);
	color: #fff;
	font-weight: 800;
	font-size: 15px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
}
.adm-logo-img { height: 32px; width: auto; max-width: 150px; object-fit: contain; }
.adm-logo-img--sm { height: 26px; max-width: 120px; }
.adm-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.adm-brand-text strong { font-size: 14px; font-weight: 800; letter-spacing: 0.3px; }
.adm-brand-text small { font-size: 9px; font-weight: 600; letter-spacing: 2.5px; color: #8B84A3; }

.adm-burger {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: #F5F2FC;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
}
.adm-burger span { width: 16px; height: 2px; border-radius: 2px; background: #5B4B7A; }

/* --- Menu overlay ------------------------------------------------------- */
.adm-menu { position: fixed; inset: 0; z-index: 60; }
.adm-scrim {
	position: absolute;
	inset: 0;
	background: rgba(36, 27, 58, 0.5);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}
.adm-panel {
	position: absolute;
	top: 0;
	right: 0;
	width: 74%;
	max-width: 355px;
	height: 100%;
	background: #fff;
	padding: 64px 22px 24px;
	box-shadow: -20px 0 60px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}
.adm-panel-title { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: #B4ADC7; margin-bottom: 6px; }
.adm-menu-item {
	font-size: 16px;
	font-weight: 600;
	color: #3A2E56;
	padding: 14px 6px;
	border-bottom: 1px solid #F1EEF8;
	text-align: left;
}
.adm-menu-cta {
	margin-top: auto;
	background: linear-gradient(135deg, #8B5CF6, #D946EF);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	border-radius: 14px;
	padding: 15px;
	text-align: center;
}

/* --- Hero --------------------------------------------------------------- */
.adm-hero {
	position: relative;
	overflow: hidden;
	padding: 30px 22px 40px;
	background: linear-gradient(165deg, #6D28D9 0%, #9333EA 46%, #D946EF 100%);
	color: #fff;
}
.adm-hero-circle { position: absolute; border-radius: 50%; pointer-events: none; }
.adm-hero-circle--tr { width: 200px; height: 200px; top: -60px; right: -60px; background: rgba(255, 255, 255, 0.12); }
.adm-hero-circle--bl { width: 180px; height: 180px; bottom: -70px; left: -60px; background: rgba(255, 255, 255, 0.08); }

.adm-badge {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.25);
	padding: 7px 13px;
	border-radius: 100px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.5px;
	margin-bottom: 16px;
}
.adm-badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #FDE68A;
	box-shadow: 0 0 8px 1px rgba(253, 230, 138, 0.9);
}
.adm-hero h1 {
	position: relative;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.5px;
	margin-bottom: 12px;
}
.adm-hero h1 span {
	background: linear-gradient(90deg, #FDE68A, #FBCFE8);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.adm-hero-sub {
	position: relative;
	font-size: 15px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.85);
	max-width: 300px;
	margin-bottom: 20px;
}
.adm-hero-media {
	position: relative;
	height: 210px;
	border-radius: 22px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.28);
	box-shadow: 0 18px 40px rgba(40, 10, 80, 0.28);
	margin-bottom: 20px;
}
.adm-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.adm-hero-ctas { position: relative; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.adm-btn-primary {
	background: #fff;
	color: #7C2FCE;
	font-size: 16px;
	font-weight: 700;
	border-radius: 15px;
	padding: 16px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
	transition: filter 0.15s;
}
.adm-btn-primary:hover { filter: brightness(0.94); }
.adm-btn-ghost {
	border: 1.5px solid rgba(255, 255, 255, 0.5);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	border-radius: 15px;
	padding: 15px;
	transition: background 0.15s;
}
.adm-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.adm-chips { position: relative; display: flex; gap: 8px; }
.adm-chip {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 13px;
	padding: 12px 8px;
	text-align: center;
}
.adm-chip span { font-size: 10.5px; font-weight: 600; color: rgba(255, 255, 255, 0.92); }

/* --- Eyebrow / heading dùng chung --------------------------------------- */
.adm-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: #A855F7; margin-bottom: 8px; }
:where(#adm-root) h2 { font-size: 23px; font-weight: 800; line-height: 1.2; margin-bottom: 10px; }
.adm-body { font-size: 14px; color: #7A7291; line-height: 1.55; }

/* --- Stats --------------------------------------------------------------- */
.adm-stats {
	padding: 30px 22px 8px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.adm-stat {
	background: #FBFAFE;
	border: 1px solid #EFEBF9;
	border-radius: 18px;
	padding: 18px 16px;
}
.adm-stat-num {
	font-size: 28px;
	font-weight: 800;
	background: linear-gradient(135deg, #8B5CF6, #D946EF);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.adm-stat-label { font-size: 12.5px; font-weight: 500; color: #6B6386; margin-top: 7px; }

/* --- Về Adsdigi ----------------------------------------------------------- */
.adm-about { padding: 30px 22px 8px; }
.adm-about-media {
	height: 190px;
	border-radius: 22px;
	overflow: hidden;
	border: 1px solid #EEEAF7;
	box-shadow: 0 12px 30px rgba(124, 58, 237, 0.08);
	margin-bottom: 18px;
}
.adm-about-media img { width: 100%; height: 100%; object-fit: cover; }

/* --- Phương pháp ----------------------------------------------------------- */
.adm-method { padding: 34px 22px 8px; }
.adm-method-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.adm-method-row {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: #fff;
	border: 1px solid #EEEAF7;
	border-radius: 17px;
	padding: 15px 16px;
	box-shadow: 0 4px 16px rgba(124, 58, 237, 0.04);
}
.adm-method-num {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	background: linear-gradient(135deg, #F3E8FF, #FCE7F3);
	color: #9333EA;
	font-size: 15px;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.adm-method-title { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.adm-method-desc { font-size: 12.5px; color: #7A7291; line-height: 1.45; }

/* --- Lộ trình --------------------------------------------------------------- */
.adm-levels { padding: 34px 22px 8px; }
.adm-levels-media {
	height: 150px;
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid #EEEAF7;
	background: linear-gradient(135deg, #F5F0FF, #FDF2FB);
	margin: 16px 0;
}
.adm-levels-media img { width: 100%; height: 100%; object-fit: cover; }

.adm-level-list { display: flex; flex-direction: column; gap: 11px; }
.adm-level {
	position: relative;
	display: flex;
	gap: 14px;
	align-items: center;
	text-align: left;
	width: 100%;
	background: #fff;
	border: 1px solid #EEEAF7;
	border-radius: 18px;
	padding: 16px;
}
.adm-level.is-active::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 18px;
	border: 2px solid #A855F7;
	background: rgba(168, 85, 247, 0.05);
	pointer-events: none;
}
.adm-level-band {
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 13px;
	background: linear-gradient(135deg, #EDE9FE, #FAE8FF);
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1.1;
}
.adm-level-band b { font-size: 15px; font-weight: 800; color: #7C3AED; }
.adm-level-band i { font-style: normal; font-size: 7px; font-weight: 700; color: #A78BC7; letter-spacing: 0.5px; }
.adm-level-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.adm-level-info strong { font-size: 16px; font-weight: 700; }
.adm-level-info small { font-size: 12px; color: #7A7291; line-height: 1.4; }
.adm-level-arrow { flex: none; font-size: 20px; color: #C7BEE0; }

/* --- Review học viên --------------------------------------------------------- */
.adm-reviews { padding: 34px 0 8px; }
.adm-reviews-head { padding: 0 22px; }
.adm-review-track {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding: 2px 22px 14px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}
.adm-review {
	flex: none;
	width: 250px;
	scroll-snap-align: start;
	background: #fff;
	border: 1px solid #EEEAF7;
	border-radius: 18px;
	padding: 17px;
	box-shadow: 0 6px 20px rgba(124, 58, 237, 0.05);
}
.adm-review-head { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.adm-avatar {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, #8B5CF6, #D946EF);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.adm-review-who { display: flex; flex-direction: column; gap: 2px; }
.adm-review-who strong { font-size: 14px; font-weight: 700; }
.adm-review-who small { font-size: 11px; font-weight: 600; color: #A855F7; }
.adm-review p { font-size: 13px; color: #5B5375; line-height: 1.55; }

/* --- Form lead --------------------------------------------------------------- */
.adm-lead {
	padding: 34px 20px 32px;
	background: linear-gradient(180deg, #F6F0FF, #FCF2FA);
}
.adm-lead-title { font-size: 24px; font-weight: 800; line-height: 1.18; margin-bottom: 18px; }
.adm-lead-title span { color: #9333EA; }

.adm-benefits { display: flex; flex-direction: column; gap: 13px; margin-bottom: 24px; }
.adm-benefit { display: flex; gap: 12px; align-items: flex-start; }
.adm-benefit-icon {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	background: #fff;
	border: 1px solid #ECE4F8;
	box-shadow: 0 3px 10px rgba(124, 58, 237, 0.06);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.adm-benefit > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.adm-benefit strong { font-size: 14px; font-weight: 700; color: #2E2547; }
.adm-benefit small { font-size: 12.5px; color: #7A7291; }

.adm-card {
	background: #fff;
	border: 1px solid #EDE7F7;
	border-radius: 22px;
	padding: 22px;
	box-shadow: 0 20px 46px rgba(124, 58, 237, 0.1);
}
.adm-label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: #5B5375;
	margin: 14px 0 7px;
}
.adm-label:first-child { margin-top: 0; }
.adm-input {
	width: 100%;
	border: 1.5px solid #E7E1F5;
	border-radius: 13px;
	padding: 14px 15px;
	font-family: inherit;
	font-size: 15px;
	background: #F8F6FD;
	color: #241B3A;
	outline: none;
}
.adm-input:focus { border-color: #A855F7; }
.adm-input::placeholder { color: #9A93AE; }

.adm-goals { display: flex; gap: 9px; }
.adm-goal {
	position: relative;
	flex: 1;
	border: 1.5px solid #E2D9F5;
	background: #fff;
	color: #6B6386;
	font-size: 15px;
	font-weight: 700;
	border-radius: 12px;
	padding: 13px 0;
	text-align: center;
}
.adm-goal.is-active::after {
	content: '';
	position: absolute;
	inset: -1.5px;
	border-radius: 12px;
	border: 2px solid #9333EA;
	background: rgba(147, 51, 234, 0.07);
	pointer-events: none;
}
.adm-goal.is-active { color: #9333EA; }

.adm-submit {
	width: 100%;
	margin-top: 18px;
	background: linear-gradient(135deg, #8B5CF6, #D946EF);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.3px;
	border-radius: 14px;
	padding: 16px;
	box-shadow: 0 14px 30px rgba(139, 92, 246, 0.28);
	transition: filter 0.15s;
}
.adm-submit:hover { filter: brightness(1.06); }
.adm-submit:disabled { opacity: 0.65; cursor: default; }

.adm-err { font-size: 11.5px; color: #DC2626; margin-top: 6px; }
.adm-err--api { text-align: center; margin-top: 10px; }
.adm-input.is-invalid { border-color: #DC2626; }

.adm-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 11px;
	color: #9A93AE;
	margin-top: 12px;
}

/* Màn hình thành công trong card */
.adm-success { text-align: center; padding: 8px 0; }
.adm-success-tick {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(135deg, #8B5CF6, #D946EF);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}
.adm-success h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.adm-success p { font-size: 13.5px; color: #6B6386; line-height: 1.55; margin-bottom: 18px; }
.adm-again {
	border: 1.5px solid #E2D9F5;
	color: #7C3AED;
	font-size: 14px;
	font-weight: 700;
	border-radius: 13px;
	padding: 13px 22px;
}

/* --- Footer --------------------------------------------------------------- */
.adm-footer { padding: 30px 22px 26px; text-align: center; }
.adm-footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 800;
	margin-bottom: 10px;
}
.adm-logo--sm { width: 26px; height: 26px; font-size: 13px; border-radius: 8px; }
.adm-footer p { font-size: 12px; color: #9A93AE; line-height: 1.6; }

/* --- Thanh CTA dính đáy ------------------------------------------------------ */
.adm-bar {
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 480px;
	z-index: 35;
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 12px 18px calc(env(safe-area-inset-bottom, 0px) + 14px);
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-top: 1px solid #EEEAF7;
}
.adm-bar-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.adm-bar-text strong { font-size: 13px; font-weight: 800; color: #241B3A; }
.adm-bar-text small { font-size: 11px; color: #8B84A3; }
.adm-bar-btn {
	flex: none;
	background: linear-gradient(135deg, #8B5CF6, #D946EF);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	border-radius: 13px;
	padding: 13px 20px;
	box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}
/* Chừa chỗ cho thanh CTA ở cuối trang */
#adm-root .adm-footer { padding-bottom: 110px; }
#adm-root.adm-bar-hidden .adm-bar { display: none; }
#adm-root.adm-bar-hidden .adm-footer { padding-bottom: 26px; }

@media (min-width: 480px) {
	.adm-bar { border-left: 1px solid #EEEAF7; border-right: 1px solid #EEEAF7; }
	.adm-wrap { border-left: 1px solid #EEEAF7; border-right: 1px solid #EEEAF7; }
}
