/* =========================================================
   HERA MAKEUP ACADEMY — giao diện chính
   Đổi màu thương hiệu: sửa các biến trong :root bên dưới
   ========================================================= */
:root {
  --cream: #FBF7F3;
  --sand: #F4EBE4;
  --nude: #E8D3C5;
  --blush: #E7B9AC;
  --rose: #C27C6E;
  --rose-deep: #9E5A4F;
  --gold: #B8925A;
  --ink: #2B201E;
  --ink-2: #4A3B37;
  --muted: #7D6B65;
  --line: #E8DCD3;
  --white: #FFFFFF;
  --dark: #1E1716;
  --dark-2: #2A211F;
  --dark-line: #3B302D;
  --on-dark: #F4EAE4;
  --on-dark-muted: #BFAEA7;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -22px rgba(70, 35, 25, .35);
  --shadow-sm: 0 6px 18px -10px rgba(70, 35, 25, .3);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.18; margin: 0 0 .55em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.3rem); }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
em { font-style: italic; color: var(--rose); }

.container { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }
.container.narrow { width: min(820px, calc(100% - 32px)); }
.section { padding: clamp(68px, 9vw, 116px) 0; }
.section-soft { background: var(--sand); }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-head { max-width: 700px; margin: 0 auto 46px; text-align: center; }
.section-head > p:last-child { color: var(--muted); font-size: 1.05rem; }
.section-dark .section-head > p:last-child { color: var(--on-dark-muted); }
.eyebrow {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .2em;
  font-size: .74rem; font-weight: 600; color: var(--rose); margin: 0 0 1rem;
}
.eyebrow-light { color: var(--blush); }
.note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 24px; }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.5em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: .95rem; text-decoration: none; line-height: 1.2;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .6em 1.15em; font-size: .88rem; }
.btn-lg { padding: 1em 1.8em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--rose); color: var(--white); box-shadow: 0 10px 24px -12px rgba(158, 90, 79, .8); }
.btn-primary:hover { background: var(--rose-deep); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; }
.btn-ghost { background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline-dark { background: var(--white); color: var(--ink); border-color: var(--ink); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

/* ---------- Placeholder ảnh/video (xóa khi có ảnh thật) ---------- */
.ph { position: relative; overflow: hidden; background-color: var(--nude); isolation: isolate; }
.ph::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 25% 30%, rgba(255,255,255,.45), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(158,90,79,.25), transparent 50%);
}
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ph-label {
  position: absolute; right: 12px; bottom: 12px; z-index: 0;
  font-size: .7rem; letter-spacing: .02em; color: var(--ink-2);
  background: rgba(255,255,255,.7); padding: .35em .75em; border-radius: 999px; max-width: calc(100% - 24px);
}
.ph-label-left { right: auto; left: 12px; }
.tone-1 { background: linear-gradient(135deg, #F1D9CC, #D99C8E); }
.tone-2 { background: linear-gradient(135deg, #EFE2D6, #C9A88E); }
.tone-3 { background: linear-gradient(135deg, #E9C9C0, #A8675C); }
.tone-4 { background: linear-gradient(135deg, #F3E3D3, #D2A06E); }
.tone-5 { background: linear-gradient(135deg, #E6CFCB, #8E5B66); }
.tone-6 { background: linear-gradient(135deg, #F0DCD2, #B97F6A); }
.tone-before { background: linear-gradient(135deg, #D9D2CE, #A39893); }
.tone-after { background: linear-gradient(135deg, #F2CDBF, #C27C6E 70%, #9E5A4F); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  color: var(--white); transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled, .site-header.menu-open {
  background: rgba(251, 247, 243, .92); color: var(--ink);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.35rem; background: var(--dark); color: var(--blush);
}
.site-header:not(.scrolled):not(.menu-open) .logo-mark { background: rgba(255,255,255,.14); color: var(--white); border: 1px solid rgba(255,255,255,.3); }
.logo-text { font-family: var(--serif); font-size: 1.2rem; letter-spacing: .16em; line-height: 1; display: flex; flex-direction: column; }
.logo-text small { font-family: var(--sans); font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; opacity: .75; margin-top: 4px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: .92rem; opacity: .9; position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: currentColor; transition: right .25s ease; }
.nav a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; border: 1px solid currentColor; border-radius: 999px; padding: 2px; opacity: .9; }
.lang-switch button { background: none; border: 0; color: inherit; font-size: .75rem; font-weight: 600; letter-spacing: .06em; padding: .35em .75em; border-radius: 999px; }
.lang-switch button.active { background: var(--rose); color: var(--white); }
.menu-toggle { display: none; width: 40px; height: 40px; border: 0; background: none; color: inherit; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .25s ease, top .25s ease; }
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 24px; }
.menu-open .menu-toggle span:first-child { top: 19px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(231,185,172,.55), transparent 55%),
    radial-gradient(ellipse at 85% 30%, rgba(184,146,90,.45), transparent 50%),
    radial-gradient(ellipse at 60% 90%, rgba(158,90,79,.7), transparent 60%),
    linear-gradient(160deg, #3a2724, #1E1716);
  background-size: 160% 160%;
  animation: heroShift 18s ease-in-out infinite alternate;
}
.hero-fallback .ph-label { top: calc(var(--header-h) + 14px); bottom: auto; background: rgba(0,0,0,.35); color: rgba(255,255,255,.85); }
@keyframes heroShift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.no-video .hero-video { display: none; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,13,.45) 0%, rgba(20,14,13,.15) 35%, rgba(20,14,13,.75) 100%); }
.hero-content { position: relative; padding: calc(var(--header-h) + 80px) 0 64px; }
.hero h1 { max-width: 15ch; }
.hero h1 em { color: var(--blush); }
.hero-sub { max-width: 560px; font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255,255,255,.85); font-weight: 300; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 50px; }
.play-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--white); position: relative; flex: none; }
.play-dot::after { content: ""; position: absolute; left: 10px; top: 8px; border-left: 8px solid var(--rose); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.hero-stats { list-style: none; padding: 26px 0 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; border-top: 1px solid rgba(255,255,255,.2); max-width: 760px; }
.hero-stats strong { display: block; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 500; line-height: 1.1; }
.hero-stats span { font-size: .82rem; color: rgba(255,255,255,.72); }

/* ---------- USP ---------- */
.usp { background: var(--white); border-bottom: 1px solid var(--line); }
.usp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.usp-item { display: flex; gap: 14px; padding: 30px 22px; border-left: 1px solid var(--line); }
.usp-item:first-child { border-left: 0; padding-left: 0; }
.usp-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--rose); font-size: 1.05rem; }
.usp h3 { font-family: var(--sans); font-size: .98rem; font-weight: 600; margin: 0 0 4px; }
.usp p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }

/* ---------- Tabs & khóa học ---------- */
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.tab { border: 1px solid var(--line); background: var(--white); color: var(--ink-2); padding: .6em 1.3em; border-radius: 999px; font-size: .9rem; transition: all .2s ease; }
.tab:hover { border-color: var(--rose); }
.tab.active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.course {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
  animation: fadeUp .45s ease both;
}
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.course-thumb { aspect-ratio: 16 / 10; }
.course-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; z-index: 2; }
.badge { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .4em .8em; border-radius: 999px; background: var(--white); color: var(--ink); }
.badge-online { background: #E5F0EA; color: #2F6B4F; }
.badge-offline { background: #F6E6DA; color: #8A4B2F; }
.badge-hot { background: var(--ink); color: var(--blush); }
.course-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.course-level { font-size: .78rem; color: var(--rose); font-weight: 600; letter-spacing: .04em; margin-bottom: 6px; }
.course h3 { font-size: 1.35rem; margin-bottom: 8px; }
.course-desc { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .84rem; color: var(--ink-2); margin: 0 0 14px; padding: 0; list-style: none; }
.course-meta li::before { content: "·"; margin-right: 6px; color: var(--rose); }
.course-meta li:first-child::before { content: none; }
.course-price { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-main { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; }
.price-alt { font-size: .85rem; color: var(--muted); }
.price-old { font-size: .85rem; color: var(--muted); text-decoration: line-through; }
.course-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.course-actions .btn { padding-inline: .8em; }

/* ---------- Video ---------- */
.video-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }
.vcard { display: block; width: 100%; text-align: left; background: none; border: 0; color: inherit; padding: 0; }
.vthumb { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.vthumb img { transition: transform .5s ease; }
.vcard:hover .vthumb img { transform: scale(1.04); }
.vthumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.55)); z-index: 1; }
.vplay {
  position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%;
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.92);
  box-shadow: 0 0 0 10px rgba(255,255,255,.18); transition: transform .25s ease;
}
.vplay::after { content: ""; position: absolute; left: 26px; top: 21px; border-left: 16px solid var(--rose); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.vcard:hover .vplay { transform: scale(1.08); }
.vdur { position: absolute; z-index: 2; right: 12px; bottom: 12px; font-size: .75rem; background: rgba(0,0,0,.6); color: #fff; padding: .2em .6em; border-radius: 6px; }
.vthumb .ph-label { z-index: 0; top: 12px; bottom: auto; }
.video-feature .vinfo { padding-top: 16px; }
.video-feature h3 { font-size: 1.6rem; margin-bottom: 4px; }
.vinfo p { color: var(--on-dark-muted); font-size: .9rem; margin: 0; }
.video-list { display: flex; flex-direction: column; gap: 14px; }
.video-list .vcard { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: var(--radius-sm); transition: background-color .2s ease; }
.video-list .vcard:hover { background: var(--dark-2); }
.video-list .vthumb { border-radius: 10px; }
.video-list .vplay { width: 36px; height: 36px; box-shadow: none; }
.video-list .vplay::after { left: 14px; top: 11px; border-left-width: 10px; border-top-width: 7px; border-bottom-width: 7px; }
.video-list .vthumb .ph-label { display: none; }
.video-list h4 { font-family: var(--sans); font-size: .95rem; font-weight: 500; margin: 0 0 4px; line-height: 1.35; }
.vtag { font-size: .72rem; color: var(--blush); letter-spacing: .05em; text-transform: uppercase; }
.reels-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 64px 0 20px; }
.reels-head h3 { font-size: 1.5rem; margin: 0; }
.link-light { color: var(--blush); text-decoration: none; font-size: .92rem; }
.reels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.reel { scroll-snap-align: start; }
.reel .vthumb { aspect-ratio: 9 / 16; }
.reel .vplay { width: 46px; height: 46px; }
.reel .vplay::after { left: 18px; top: 14px; border-left-width: 13px; border-top-width: 9px; border-bottom-width: 9px; }
.reel .vcap { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; font-size: .82rem; line-height: 1.35; }
.reel .ph-label { display: none; }

/* ---------- Các bước ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step-n { font-family: var(--serif); font-size: 2.4rem; color: var(--blush); line-height: 1; display: block; margin-bottom: 18px; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Trước / sau ---------- */
.results-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center; }
.ba { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); user-select: none; touch-action: pan-y; }
.ba-img { position: absolute; inset: 0; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-tag { position: absolute; top: 16px; z-index: 3; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: rgba(255,255,255,.88); padding: .4em .9em; border-radius: 999px; }
.ba-tag-l { left: 16px; }
.ba-tag-r { right: 16px; }
.ba-handle { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--white); translate: -1px 0; pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 46px; height: 46px; border-radius: 50%; background: var(--white); display: grid; place-items: center; color: var(--rose); font-size: 1.1rem; box-shadow: var(--shadow-sm); }
.ba input[type="range"] { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.testimonials { display: grid; gap: 16px; }
.tcard { background: var(--white); border-radius: var(--radius); padding: 24px 26px; border: 1px solid var(--line); }
.tstars { color: var(--gold); letter-spacing: 2px; font-size: .9rem; margin-bottom: 8px; }
.tquote { font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; margin-bottom: 14px; }
.tauthor { display: flex; align-items: center; gap: 12px; font-size: .88rem; }
.tavatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--nude); color: var(--rose-deep); font-weight: 600; flex: none; }
.tauthor small { display: block; color: var(--muted); }
.sample-note { font-size: .75rem; color: var(--muted); text-align: right; margin: 0; }

/* ---------- Lịch khai giảng ---------- */
.schedule-list { display: grid; gap: 12px; }
.srow {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) 220px auto; align-items: center; gap: 24px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.srow:hover { border-color: var(--blush); box-shadow: var(--shadow-sm); }
.sdate { text-align: center; border-right: 1px solid var(--line); padding-right: 20px; }
.sdate strong { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; font-weight: 500; }
.sdate span { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.sinfo h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; margin: 0 0 4px; }
.sinfo p { margin: 0; font-size: .86rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.seats { font-size: .82rem; }
.seats-bar { height: 6px; border-radius: 999px; background: var(--sand); overflow: hidden; margin-top: 6px; }
.seats-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blush), var(--rose)); border-radius: inherit; }
.seats.low { color: var(--rose-deep); font-weight: 600; }

/* ---------- Giảng viên ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-media { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.about-text p { color: var(--ink-2); font-size: 1.02rem; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--rose); color: #fff; font-size: .7rem; display: grid; place-items: center; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 500; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%; font-size: 1.4rem; color: var(--rose); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Đăng ký ---------- */
.section-register { background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; }
.section-register::before { content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%; left: -220px; top: -220px; background: radial-gradient(circle, rgba(194,124,110,.35), transparent 65%); pointer-events: none; }
.register-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.register-info > p { color: var(--on-dark-muted); font-size: 1.05rem; }
.perks { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; gap: 12px; }
.perks li { padding-left: 30px; position: relative; }
.perks li::before { content: "✦"; position: absolute; left: 0; color: var(--blush); }
.quick-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qc { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--dark-line); text-decoration: none; transition: background-color .2s ease, border-color .2s ease; }
.qc:hover { background: var(--dark-2); border-color: var(--rose); }
.qc-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; }
.zalo .qc-ic { background: #0068FF; }
.whatsapp .qc-ic { background: #25D366; }
.qc small { display: block; color: var(--on-dark-muted); font-size: .78rem; }
.register-card { background: var(--white); color: var(--ink); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 4vw, 36px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: .84rem; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--cream);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8em 1em; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(194,124,110,.18); background: var(--white); }
.field .invalid { border-color: #C0392B; }
.consent { display: flex; gap: 10px; font-size: .84rem; color: var(--muted); align-items: flex-start; }
.consent input { margin-top: 4px; accent-color: var(--rose); width: 16px; height: 16px; flex: none; }
.consent a { color: var(--rose-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { margin: 0; color: #B03A2E; font-size: .88rem; }
.form-success h3 { font-size: 1.6rem; margin-bottom: 6px; }
.form-success .ok-ic { width: 52px; height: 52px; border-radius: 50%; background: #E5F0EA; color: #2F6B4F; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px; }
.pay-box { margin-top: 20px; border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 18px; display: grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: center; }
.pay-qr { width: 160px; aspect-ratio: 1; border-radius: 10px; background: var(--sand); display: grid; place-items: center; text-align: center; font-size: .72rem; color: var(--muted); padding: 10px; overflow: hidden; }
.pay-qr img { width: 100%; height: 100%; object-fit: contain; }
.pay-info dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .88rem; }
.pay-info dt { color: var(--muted); }
.pay-info dd { margin: 0; font-weight: 500; word-break: break-word; }
.success-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- Liên hệ ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.contact-list { display: grid; grid-template-columns: 130px 1fr; gap: 14px 20px; margin: 24px 0 0; }
.contact-list dt { color: var(--muted); font-size: .88rem; }
.contact-list dd { margin: 0; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.socials a { color: var(--rose-deep); }
.map { aspect-ratio: 16 / 11; border-radius: var(--radius); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-muted); padding: 56px 0 28px; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--dark-line); }
.logo-light { color: var(--on-dark); }
.footer-desc { max-width: 340px; margin-top: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; align-content: flex-start; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--on-dark); }
.footer-bottom { padding-top: 22px; font-size: .82rem; }

/* ---------- Chat nổi & thanh mobile ---------- */
.float-chat { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.fc { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .78rem; text-decoration: none; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); transition: transform .2s ease; }
.fc:hover { transform: scale(1.08); }
.fc-zalo { background: #0068FF; }
.fc-wa { background: #25D366; }
.mobile-cta { display: none; }

/* ---------- Hộp thoại ---------- */
.modal { border: 0; padding: 0; border-radius: var(--radius); width: min(860px, calc(100% - 32px)); max-height: calc(100svh - 48px); background: var(--white); color: var(--ink); overflow: auto; }
.modal::backdrop { background: rgba(20, 14, 13, .72); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .25s ease both; }
.modal-close { position: absolute; top: 10px; right: 10px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 1.5rem; line-height: 1; color: var(--ink); box-shadow: var(--shadow-sm); }
.modal.is-video { background: #000; width: min(1000px, calc(100% - 32px)); }
.modal.is-reel { width: min(400px, calc(100% - 32px)); }
.embed { position: relative; aspect-ratio: 16 / 9; }
.is-reel .embed { aspect-ratio: 9 / 16; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-empty { aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; color: #ddd; padding: 32px; background: linear-gradient(160deg, #3a2724, #1E1716); }
.is-reel .embed-empty { aspect-ratio: 9 / 16; }
.embed-empty code { background: rgba(255,255,255,.1); padding: .15em .45em; border-radius: 5px; color: var(--blush); }
.cd-hero { aspect-ratio: 21 / 8; }
.cd-body { padding: 28px clamp(20px, 4vw, 36px) 32px; }
.cd-body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.cd-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; margin-top: 18px; }
.cd-grid h4 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--rose); margin-bottom: 12px; }
.curriculum { margin: 0; padding: 0; list-style: none; counter-reset: c; display: grid; gap: 8px; }
.curriculum li { counter-increment: c; display: grid; grid-template-columns: 32px 1fr; font-size: .93rem; }
.curriculum li::before { content: counter(c, decimal-leading-zero); color: var(--muted); font-size: .8rem; padding-top: 2px; }
.cd-side { background: var(--sand); border-radius: var(--radius-sm); padding: 20px; align-self: start; }
.cd-side ul { margin: 0 0 16px; padding-left: 18px; font-size: .9rem; color: var(--ink-2); }
.cd-side .price-main { display: block; }

/* ---------- Hiệu ứng ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usp-item { padding: 22px 18px; }
  .usp-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .usp-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .srow { grid-template-columns: 76px minmax(0, 1fr) 150px auto; gap: 18px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--cream); color: var(--ink); padding: 8px 16px 20px; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s ease;
  }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a::after { content: none; }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; }
  .video-layout, .results-layout, .about, .register-layout, .contact-layout { grid-template-columns: 1fr; }
  .about-media { aspect-ratio: 4 / 3; }
  .ba { max-width: 520px; width: 100%; margin-inline: auto; }
  .cd-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { padding-bottom: 76px; }
  .hero { min-height: 92svh; }
  .hero-content { padding-bottom: 40px; }
  .hero-ctas { margin: 24px 0 36px; }
  .hero-ctas .btn { width: 100%; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .hero-fallback .ph-label { font-size: .62rem; }
  .usp-grid { grid-template-columns: 1fr; }
  .usp-item, .usp-item:nth-child(odd) { border-left: 0; padding: 18px 0; }
  .usp-item + .usp-item { border-top: 1px solid var(--line); }
  .course-grid, .steps { grid-template-columns: 1fr; }
  .video-list .vcard { grid-template-columns: 120px 1fr; padding: 6px 0; }
  .srow { grid-template-columns: 64px minmax(0, 1fr); gap: 14px 16px; padding: 16px; }
  .sdate { padding-right: 14px; }
  .sdate strong { font-size: 1.6rem; }
  .seats, .srow .btn { grid-column: 1 / -1; }
  .srow .btn { width: 100%; }
  .field-row, .quick-contact { grid-template-columns: 1fr; }
  .pay-box { grid-template-columns: 1fr; justify-items: center; }
  .pay-info { width: 100%; }
  .contact-list { grid-template-columns: 1fr; gap: 2px; }
  .contact-list dd { margin-bottom: 12px; }
  .float-chat { display: none; }
  .mobile-cta {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(251,247,243,.95);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  .mobile-cta .btn-outline-dark { min-width: 108px; }
  .mobile-cta .btn-primary { flex: 1; }
  .reels { grid-auto-columns: 62%; }
  .cd-hero { aspect-ratio: 16 / 8; }
}
