/* ============================================================
   Chill Chill Cũng 9 — Frontend design system
   Theo BỘ NHẬN DIỆN THƯƠNG HIỆU chính thức
   Màu: Pink1 #C257A0 · Blue2 #005BB5 · Pink2/3 · Blue1/3 · Brown
   Font: PODIUM (display) · Binomic (label) · SF Pro Display (body)
   ============================================================ */

/* ---------- Fonts thương hiệu ---------- */
@font-face { font-family: "Podium"; src: url("/frontend/fonts/podium-heavy.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Binomic"; src: url("/frontend/fonts/binomic-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Binomic"; src: url("/frontend/fonts/binomic-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Binomic"; src: url("/frontend/fonts/binomic-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Binomic"; src: url("/frontend/fonts/binomic-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "SFPro"; src: url("/frontend/fonts/sfpro-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "SFPro"; src: url("/frontend/fonts/sfpro-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "SFPro"; src: url("/frontend/fonts/sfpro-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "SFPro"; src: url("/frontend/fonts/sfpro-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
    /* Brand — Pink */
    --pink: #c257a0;          /* PINK 1 — primary */
    --pink-600: #a8458a;      /* hover */
    --pink-300: #e690b7;      /* PINK 2 */
    --pink-100: #efb3cd;      /* PINK 3 */
    --pink-050: #fbeaf3;      /* soft pink wash */

    /* Brand — Blue */
    --blue: #005bb5;          /* BLUE 2 — accent */
    --blue-600: #004890;
    --blue-300: #62a1b5;      /* BLUE 1 */
    --blue-100: #cfe9eb;      /* BLUE 3 */
    --blue-050: #eef8f9;

    --brown: #52371a;         /* BROWN */

    /* Ink / neutrals (ấm) */
    --ink: #3a2c1e;
    --ink-700: #5b4a3a;
    --muted: #8a7b6d;
    --border: #efe6dc;
    --border-strong: #e2d6c9;

    /* Surfaces */
    --bg: #fdfaf6;            /* nền kem ấm */
    --surface: #ffffff;
    --bg-pink: #fdeef6;       /* section hồng */
    --bg-blue: #edf7f8;       /* section xanh */

    /* Legacy aliases (giữ trang cũ chạy) */
    --brand: #c257a0;
    --brand-dark: #a8458a;
    --brand-050: #fbeaf3;
    --brand-100: #efb3cd;
    --coral: #e690b7;
    --coral-dark: #c257a0;
    --amber: #ffcf5a;
    --navy: #005bb5;
    --navy-700: #004890;
    --bg-soft: #fdeef6;
    --bg-mint: #fdeef6;
    --bg-navy: #06305c;
    --text: #4a3c30;

    /* Shape & shadow */
    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 26px;
    --shadow-sm: 0 1px 2px rgba(82, 55, 26, .05), 0 6px 16px rgba(82, 55, 26, .06);
    --shadow: 0 2px 6px rgba(82, 55, 26, .06), 0 18px 40px rgba(82, 55, 26, .10);
    --shadow-pink: 0 10px 26px rgba(194, 87, 160, .30);
    --shadow-blue: 0 10px 26px rgba(0, 91, 181, .26);

    --container: 1160px;
    --font-display: "Podium", "Arial Narrow", system-ui, sans-serif;
    --font-label: "Binomic", "Segoe UI", system-ui, sans-serif;
    --font: "SFPro", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden; /* chặn cuộn ngang do tràn nhỏ trên mobile */
}

[class^="ri-"], [class*=" ri-"] { vertical-align: -.05em; line-height: 1; }

a { color: var(--blue); text-decoration: none; transition: color .15s, opacity .15s; }
a:hover { color: var(--blue-600); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; overflow-wrap: break-word; }
h1, h2 { font-family: var(--font-display); font-weight: 900; letter-spacing: .2px; }
h3, h4, h5 { font-family: var(--font); font-weight: 700; letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.eyebrow-tag {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-label); font-weight: 600; font-size: 13px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--pink); padding: 7px 15px; border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.eyebrow-tag i { color: var(--pink); font-size: 15px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-label); font-weight: 700; font-size: 15px;
    padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; white-space: nowrap; line-height: 1;
    transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s;
}
.btn i { font-size: 18px; }
.btn-primary { background: var(--pink); color: #fff; box-shadow: var(--shadow-pink); }
.btn-primary:hover { background: var(--pink-600); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(194,87,160,.36); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(194,87,160,.3); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-blue:hover { background: var(--blue-600); color: #fff; transform: translateY(-2px); }
.btn-coral, .btn-navy { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-coral:hover, .btn-navy:hover { background: var(--blue-600); color: #fff; transform: translateY(-2px); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--pink); color: var(--pink); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--pink); padding-left: 6px; padding-right: 6px; }
.btn-ghost:hover { color: var(--pink-600); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(253, 250, 246, .85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .brand-logo { height: 38px; width: auto; }
.brand .logo-badge {   /* fallback nếu thiếu ảnh */
    width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(140deg, var(--pink), var(--pink-300));
    color: #fff; display: grid; place-items: center;
    font-family: var(--font-display); font-size: 20px;
}
.nav-menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-cta-item { display: none; } /* chỉ hiện trong menu mobile */
.nav-menu a { color: var(--ink-700); font-family: var(--font-label); font-weight: 600; font-size: 15px; }
.nav-menu a:hover { color: var(--pink); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 28px; color: var(--ink); cursor: pointer; line-height: 1; }

/* ---------- Hero ---------- */
.hero {
    position: relative; padding: 78px 0 74px; overflow: hidden;
    background:
        radial-gradient(760px 460px at 88% -4%, #ffe3f1 0%, transparent 60%),
        radial-gradient(680px 460px at -6% 100%, #dcf0f7 0%, transparent 58%),
        radial-gradient(500px 360px at 42% 120%, #fff2c9 0%, transparent 60%),
        linear-gradient(180deg, #fffdfa, var(--bg));
}
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.hero h1 { font-size: 54px; margin: 18px 0 16px; line-height: 1.04; }
.hero h1 .hl-blue { color: var(--blue); }
.hero h1 .hl {
    position: relative; white-space: nowrap;
    background: linear-gradient(100deg, var(--pink), #e0509d 45%, var(--blue));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .hl::after {
    content: ""; position: absolute; left: -3px; right: -3px; bottom: 2px; height: 13px;
    background: linear-gradient(90deg, var(--pink-100), var(--blue-100)); opacity: .7;
    border-radius: 8px; z-index: -1; transform: rotate(-1deg);
}

/* Hoạ tiết trang trí bay lơ lửng trong hero */
.hero-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-deco i, .hero-deco .blob { position: absolute; }
.hero-deco i {
    font-size: 30px; opacity: .8;
    animation: floaty 6s ease-in-out infinite;
    filter: drop-shadow(0 6px 10px rgba(82,55,26,.10));
}
.hero-deco .d1 { top: 14%; left: 6%;  color: var(--pink);    font-size: 26px; animation-delay: .2s; }
.hero-deco .d2 { top: 62%; left: 3%;  color: var(--blue);    font-size: 30px; animation-delay: 1.1s; }
.hero-deco .d3 { top: 82%; left: 44%; color: var(--amber);   font-size: 24px; animation-delay: .6s; }
.hero-deco .d4 { top: 8%;  left: 52%; color: var(--blue-300);font-size: 22px; animation-delay: 1.6s; }
.hero-deco .d5 { top: 30%; right: 2%; color: var(--pink-300);font-size: 26px; animation-delay: .9s; }
.hero-deco .blob {
    border-radius: 50%; filter: blur(2px); opacity: .5;
    animation: floaty 8s ease-in-out infinite;
}
.hero-deco .b1 { width: 90px; height: 90px; top: 20%; right: 12%; background: radial-gradient(circle at 30% 30%, #ffd0e6, transparent 70%); }
.hero-deco .b2 { width: 70px; height: 70px; bottom: 12%; left: 20%; background: radial-gradient(circle at 30% 30%, #cfeaf2, transparent 70%); animation-delay: 1.4s; }
.hero p.lead { font-size: 18px; color: var(--ink-700); margin: 0 0 28px; max-width: 520px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 30px; color: var(--muted); font-size: 14px; }
.hero-proof .stars { color: #ffb62e; font-size: 17px; letter-spacing: 1px; }
.hero-proof b { color: var(--ink); font-family: var(--font-label); font-weight: 700; }
.hero-proof .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }

/* visual bên phải — mascot trên blob + card nổi */
.hero-visual { position: relative; display: grid; place-items: center; padding: 10px; }
.hero-blob {
    position: relative; width: 100%; max-width: 460px; aspect-ratio: 1/1;
    display: grid; place-items: center;
}
.hero-blob::before {
    content: ""; position: absolute; inset: 4%;
    background: conic-gradient(from 210deg at 50% 50%, #ffd9ec, #d6eef6, #fff0c9, #ffd9ec);
    border-radius: 46% 54% 52% 48% / 50% 46% 54% 50%;
    box-shadow: var(--shadow);
    animation: blobmorph 12s ease-in-out infinite, spinslow 26s linear infinite;
}
.hero-blob::after {
    content: ""; position: absolute; inset: 4%;
    border-radius: 46% 54% 52% 48% / 50% 46% 54% 50%;
    background:
        radial-gradient(circle, rgba(255,255,255,.9) 1.4px, transparent 1.6px) 0 0/18px 18px;
    -webkit-mask: radial-gradient(circle at 50% 50%, #000 62%, transparent 63%);
            mask: radial-gradient(circle at 50% 50%, #000 62%, transparent 63%);
    opacity: .5; animation: blobmorph 12s ease-in-out infinite;
}
@keyframes blobmorph {
    0%,100% { border-radius: 46% 54% 52% 48% / 50% 46% 54% 50%; }
    50% { border-radius: 54% 46% 48% 52% / 46% 54% 46% 54%; }
}
@keyframes spinslow { to { transform: rotate(360deg); } }
.hero-mascot { position: relative; width: 84%; z-index: 1; filter: drop-shadow(0 18px 28px rgba(82,55,26,.18)); animation: floaty 5s ease-in-out infinite; }
.hero-card {
    position: absolute; z-index: 2;
    background: var(--surface); border-radius: 16px;
    box-shadow: 0 14px 34px rgba(82, 55, 26, .18);
    padding: 12px 15px; display: flex; align-items: center; gap: 11px;
}
.hero-card .hc-icon { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 21px; color: #fff; }
.hero-card .hc-label { font-size: 12px; color: var(--muted); }
.hero-card .hc-value { font-family: var(--font-label); font-weight: 700; color: var(--ink); font-size: 17px; line-height: 1.1; }
.hero-card .hc-up { color: var(--pink); font-family: var(--font-label); font-weight: 700; font-size: 13px; }
.hero-card.card-score { top: 8%; left: -4%; }
.hero-card.card-score .hc-icon { background: linear-gradient(140deg, var(--pink), var(--pink-300)); }
.hero-card.card-exam { bottom: 10%; right: -4%; }
.hero-card.card-exam .hc-icon { background: linear-gradient(140deg, var(--blue), var(--blue-300)); }

/* ---------- Trust bar ---------- */
.trust-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.trust-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 500; }
.trust-item i { font-size: 22px; color: var(--pink); }
.trust-item b { color: var(--ink); font-family: var(--font-label); font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 74px 0; }
.section.soft { background: var(--bg-pink); }
.section.blue { background: var(--bg-blue); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head .eyebrow { color: var(--pink); font-family: var(--font-label); font-weight: 700; letter-spacing: .6px; text-transform: uppercase; font-size: 13px; }
.section-head h2 { font-size: 40px; margin-top: 10px; }
.section-head p { color: var(--ink-700); font-size: 17px; margin: 0; }

/* ---------- Stats ---------- */
.stats-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-card .sc-num { font-family: var(--font-display); font-weight: 900; font-size: 42px; color: var(--pink); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-card:nth-child(even) .sc-num { color: var(--blue); }
.stat-card .sc-label { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ---------- Course cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.course-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--pink-100); }
.course-card .thumb { position: relative; aspect-ratio: 16/9; display: grid; place-items: center; color: #fff; font-size: 46px; background: linear-gradient(140deg, var(--pink), var(--pink-300)); overflow: hidden; }
.course-card .thumb.g2 { background: linear-gradient(140deg, var(--blue), var(--blue-300)); }
.course-card .thumb.g3 { background: linear-gradient(140deg, #d96aa8, var(--pink-100)); }
.course-card .thumb .thumb-img { width: 100%; height: 100%; object-fit: cover; }
.course-card .thumb .thumb-mascot { position: absolute; right: 8px; bottom: -6px; width: 96px; opacity: .96; }
.course-card .thumb .thumb-badge { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.94); color: var(--ink); font-family: var(--font-label); font-weight: 700; font-size: 12px; padding: 4px 11px; border-radius: 999px; }
.course-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.badge-grade { align-self: flex-start; background: var(--pink-050); color: var(--pink); font-family: var(--font-label); font-weight: 700; font-size: 12px; padding: 5px 12px; border-radius: 999px; }
.course-card h3 { font-size: 19px; margin: 2px 0; }
.course-card p { color: var(--muted); font-size: 14px; margin: 0; flex: 1; }
.course-meta { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; margin-top: 2px; }
.course-meta .star { color: #ffb62e; }
.course-meta span { display: inline-flex; align-items: center; gap: 5px; }
.course-card .card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 4px; }
.course-card .link { color: var(--pink); font-family: var(--font-label); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 5px; }
.course-card .link:hover { gap: 9px; color: var(--pink-600); }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; transition: transform .18s, box-shadow .18s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.feature-card .fi { width: 54px; height: 54px; border-radius: 15px; margin-bottom: 16px; display: grid; place-items: center; font-size: 26px; color: var(--pink); background: var(--pink-050); }
.feature-card.alt .fi { color: var(--blue); background: var(--blue-050); }
.feature-card h3 { font-size: 18px; margin: 0 0 6px; }
.feature-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; text-align: center; box-shadow: var(--shadow-sm); }
.step .num { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 18px; background: linear-gradient(140deg, var(--pink), var(--pink-300)); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 24px; box-shadow: var(--shadow-pink); }
.step:nth-child(2) .num { background: linear-gradient(140deg, var(--blue), var(--blue-300)); box-shadow: var(--shadow-blue); }
.step:nth-child(3) .num { background: linear-gradient(140deg, #d96aa8, var(--pink-100)); box-shadow: var(--shadow-pink); }
.step h3 { font-size: 18px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Testimonials ---------- */
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tm-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; }
.tm-card .tm-stars { color: #ffb62e; font-size: 16px; letter-spacing: 1px; }
.tm-card .tm-quote { color: var(--ink-700); font-size: 15px; line-height: 1.7; flex: 1; }
.tm-card .tm-person { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border); padding-top: 14px; }
.tm-card .tm-ava { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-family: var(--font-label); font-weight: 700; font-size: 17px; background: linear-gradient(140deg, var(--pink), var(--pink-300)); }
.tm-card:nth-child(2) .tm-ava { background: linear-gradient(140deg, var(--blue), var(--blue-300)); }
.tm-card:nth-child(3) .tm-ava { background: linear-gradient(140deg, #d96aa8, var(--pink-100)); }
.tm-card .tm-name { font-family: var(--font-label); font-weight: 700; color: var(--ink); font-size: 15px; }
.tm-card .tm-role { color: var(--muted); font-size: 13px; }
.tm-card .tm-gain { margin-left: auto; text-align: right; }
.tm-card .tm-gain b { display: block; font-family: var(--font-display); color: var(--pink); font-size: 20px; }
.tm-card .tm-gain span { font-size: 11px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--pink), #d96aa8);
    color: #fff; border-radius: var(--radius-lg); padding: 52px;
    display: flex; align-items: center; justify-content: space-between; gap: 28px;
    box-shadow: var(--shadow); padding-right: 200px;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 260px at 92% 0%, rgba(255,255,255,.20), transparent 60%); }
.cta-band > *:not(.cta-mascot) { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: 34px; margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .92); font-size: 16px; }
.cta-band .cta-mascot { position: absolute; right: 28px; bottom: -8px; width: 158px; opacity: .96; z-index: 0; }
.cta-band .btn-primary { background: #fff; color: var(--pink); box-shadow: 0 10px 26px rgba(0,0,0,.16); }
.cta-band .btn-primary:hover { background: #fff; color: var(--pink-600); }

/* ---------- Lead ---------- */
.lead-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.lead-benefits { list-style: none; padding: 0; margin: 20px 0 0; }
.lead-benefits li { color: var(--ink-700); font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.lead-benefits li i { color: var(--pink); font-size: 20px; }
.lead-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, #06345f, #04203c); color: rgba(255, 255, 255, .72); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; font-family: var(--font-label); font-size: 15px; margin-bottom: 16px; }
.site-footer a { color: rgba(255, 255, 255, .72); display: block; margin-bottom: 10px; font-size: 14px; }
.site-footer a:hover { color: var(--pink-100); }
.footer-brand .footer-logo { height: 44px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; margin: 0; display: grid; place-items: center; font-size: 18px; background: rgba(255,255,255,.10); color: #fff; }
.footer-social a:hover { background: var(--pink); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 40px; padding-top: 22px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .55); }

/* ---------- Auth ---------- */
.auth-wrap {
    min-height: calc(100vh - 74px); display: grid; place-items: center; padding: 40px 20px;
    background: radial-gradient(680px 400px at 82% 4%, var(--pink-050), transparent 60%), radial-gradient(560px 360px at 6% 96%, var(--blue-050), transparent 60%), var(--bg);
}
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; max-width: 440px; padding: 40px; text-align: center; }
.auth-card .auth-mascot { width: 108px; margin: 0 auto 6px; }
.auth-card h1 { font-size: 28px; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.auth-card form { text-align: left; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-family: var(--font-label); font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 7px; }
.form-control { width: 100%; padding: 13px 15px; font-size: 15px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); outline: none; transition: border-color .15s, box-shadow .15s; font-family: inherit; background: var(--surface); color: var(--ink); }
.form-control:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(194,87,160,.12); }
.form-control::placeholder { color: #b3a595; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.form-check input { accent-color: var(--pink); width: 16px; height: 16px; }

/* ---------- Alerts ---------- */
.alert { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.alert-danger { background: #fdecec; color: #b42318; border: 1px solid #f6cfca; }
.alert-success { background: var(--pink-050); color: #9a2f7a; border: 1px solid var(--pink-100); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 34px; }
    .hero-visual { max-width: 420px; margin: 0 auto; width: 100%; }
    .stats-band { grid-template-columns: repeat(2, 1fr); }
    .card-grid, .steps, .feature-grid, .tm-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-menu, .header-actions .btn { display: none; }
    .nav-toggle { display: block; }
    .nav-menu.open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; position: absolute; top: 74px; left: 0; right: 0; background: var(--surface); padding: 16px 20px 20px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); max-height: calc(100vh - 74px); overflow-y: auto; }
    .nav-menu.open li { padding: 8px 0; }
    .nav-menu.open li a { display: block; font-size: 16px; }
    /* Nút CTA trong menu mobile */
    .nav-cta-item { display: flex !important; flex-direction: column; gap: 10px; margin-top: 8px; padding-top: 16px !important; border-top: 1px solid var(--border); }
    .nav-cta-item .btn { width: 100%; justify-content: center; }
    .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
    .cta-band .cta-mascot { display: none; }
    .hero h1 { font-size: 40px; }
    .section-head h2 { font-size: 30px; }
    .lead-wrap { grid-template-columns: 1fr; }
}
/* Trust bar: xếp dọc trên mobile để không tràn/cắt chữ */
@media (max-width: 700px) {
    .trust-bar .container { flex-direction: column; align-items: flex-start; gap: 14px; }
    .promo-slide h3, .promo-slide p, .promo-card h3, .promo-card p { overflow-wrap: break-word; }
}
@media (max-width: 560px) {
    .hero { padding: 44px 0 52px; }
    .stats-band, .footer-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 30px 22px; }
    .hero-card { display: none; }
    .section { padding: 52px 0; }
    .hero h1 { font-size: 30px; }
    .hero p.lead { font-size: 16px; }
    .hero-proof { gap: 8px 12px; font-size: 13px; }
    .promo-slide { padding: 22px 18px; }
    .promo-slide h3 { font-size: 21px; }
    .cd-info h1 { font-size: 24px; }
    .container { padding: 0 16px; }
}
@media (max-width: 400px) {
    .hero h1 { font-size: 26px; }
    .section-head h2 { font-size: 25px; }
}

/* ============================================================
   Khảo sát · Kết quả · Lead (GĐ2)
   ============================================================ */
.survey-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.survey-block h3 { font-size: 18px; margin-bottom: 16px; }
.option-row { display: flex; flex-wrap: wrap; gap: 12px; }
.option-pill { position: relative; cursor: pointer; }
.option-pill input { position: absolute; opacity: 0; }
.option-pill span { display: inline-block; padding: 10px 22px; border: 1.5px solid var(--border-strong); border-radius: 999px; font-weight: 600; color: var(--ink); transition: all .15s; }
.option-pill input:checked + span { background: var(--pink); border-color: var(--pink); color: #fff; }
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.option-check { position: relative; cursor: pointer; }
.option-check input { position: absolute; opacity: 0; }
.option-check span { display: block; padding: 14px 16px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); font-weight: 500; transition: all .15s; }
.option-check input:checked + span { border-color: var(--pink); background: var(--pink-050); color: var(--pink); font-weight: 600; }

.survey-loading { min-height: calc(100vh - 74px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: var(--bg-pink); }
.loader-ring { width: 66px; height: 66px; border-radius: 50%; border: 6px solid var(--pink-100); border-top-color: var(--pink); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { color: var(--ink); font-weight: 600; font-size: 17px; }

.result-summary { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 18px; }
.chip { background: var(--blue); color: #fff; padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.chip-soft { background: var(--pink-050); color: var(--pink); border: 1px solid var(--pink-100); }
.result-advice { text-align: center; font-size: 17px; color: var(--text); max-width: 640px; margin: 0 auto 20px; }
.problem-advice { background: var(--bg-pink); border: 1px solid var(--pink-100); border-radius: var(--radius); padding: 20px 24px; max-width: 660px; margin: 0 auto 28px; }
.problem-advice ul { list-style: none; padding: 0; margin: 10px 0 0; }
.problem-advice li { margin-bottom: 8px; color: var(--text); }
.problem-advice li i { color: var(--pink); margin-right: 4px; }
.suggest-card { background: linear-gradient(150deg, #fff, var(--pink-050)); border: 2px solid var(--pink); border-radius: var(--radius); padding: 32px; text-align: center; box-shadow: var(--shadow); position: relative; margin-bottom: 30px; }
.suggest-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--pink); color: #fff; font-family: var(--font-label); font-weight: 700; font-size: 13px; padding: 6px 18px; border-radius: 999px; box-shadow: var(--shadow-pink); }
.suggest-card h3 { font-size: 24px; margin: 8px 0; }
.suggest-card .phases { color: var(--muted); font-size: 14px; margin-top: 12px; }

.cta-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cta-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.cta-box h3 { font-size: 19px; }
.cta-box p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.cta-box-alt { background: var(--bg-blue); display: flex; flex-direction: column; }
.cta-box-alt .btn { margin-top: auto; }
@media (max-width: 768px) { .option-grid, .cta-two { grid-template-columns: 1fr; } }

/* ============================================================
   Test đầu vào (GĐ3)
   ============================================================ */
.test-bar { position: sticky; top: 74px; z-index: 20; display: flex; justify-content: space-between; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 18px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.test-timer { font-family: var(--font-display); font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.test-timer.danger { color: #b42318; }
.q-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.q-title { font-weight: 600; margin: 0 0 14px; }
.q-no { display: inline-block; background: var(--pink); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-right: 6px; }
.q-options { display: grid; gap: 8px; }
.q-option { position: relative; cursor: pointer; }
.q-option input { position: absolute; opacity: 0; }
.q-option span { display: block; padding: 12px 14px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); transition: all .12s; }
.q-option input:checked + span { border-color: var(--pink); background: var(--pink-050); }
.score-circle { width: 156px; height: 156px; margin: 0 auto; border-radius: 50%; display: grid; place-content: center; text-align: center; background: linear-gradient(140deg, var(--pink), #d96aa8); color: #fff; box-shadow: var(--shadow-pink); }
.score-circle b { font-family: var(--font-display); font-size: 48px; line-height: 1; }
.score-circle span { font-size: 15px; opacity: .9; }
.detail-item { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; background: var(--surface); }
.detail-head { display: flex; justify-content: space-between; align-items: center; }
.detail-status { font-size: 13px; font-weight: 700; }
.blurred { filter: blur(7px); pointer-events: none; user-select: none; }
.unlock-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; }
.unlock-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 32px; max-width: 420px; width: 100%; text-align: center; }
.unlock-box h3 { margin: 8px 0; }

/* ============================================================
   Portal học sinh (GĐ4)
   ============================================================ */
.student-topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.student-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.student-tabs a { padding: 9px 17px; border-radius: 999px; font-family: var(--font-label); font-weight: 600; font-size: 14px; color: var(--ink-700); background: var(--surface); border: 1px solid var(--border); }
.student-tabs a:hover { border-color: var(--pink); color: var(--pink); }
.student-tabs a.active { background: var(--pink); color: #fff; border-color: var(--pink); }
.sched-list { display: flex; flex-direction: column; gap: 12px; }
.sched-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--pink); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.sched-item.live { border-left-color: var(--blue); }
.sched-when { text-align: center; }
.sched-when b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.sched-when span { font-size: 13px; color: var(--muted); }
.sched-title { font-weight: 600; margin-top: 4px; }
.sched-note { font-size: 13px; color: var(--muted); }
.badge-type { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--pink-050); color: var(--pink); text-transform: capitalize; }
.badge-type.live { background: var(--blue-050); color: var(--blue); }
.sched-group-title { font-family: var(--font-label); font-weight: 700; font-size: 16px; margin: 6px 0 12px; padding-left: 10px; border-left: 4px solid var(--pink); }
.sched-group-title.past { border-left-color: var(--border-strong); color: var(--muted); }
.sched-item.is-past { opacity: .7; border-left-color: var(--border-strong); }
.phase-block { margin-bottom: 28px; }
.phase-title { font-size: 18px; }
.phase-num { display: inline-block; background: var(--pink); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-right: 6px; }
.lesson-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lesson-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; color: var(--text); transition: all .18s; box-shadow: var(--shadow-sm); }
.lesson-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--pink-100); color: var(--text); }
.lesson-badge { align-self: flex-start; background: var(--pink-050); color: var(--pink); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.lesson-meta { font-size: 13px; color: var(--muted); }
.video-wrap { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16/9; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-wrap .protected-video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
/* Watermark động: hiện SBD/SĐT học viên, di chuyển để chống che & răn đe phát tán */
.video-wrap .video-watermark {
    position: absolute; top: 12%; left: 12%; z-index: 5; pointer-events: none;
    color: rgba(255, 255, 255, .38); font-size: 14px; font-weight: 600; letter-spacing: .5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .55); white-space: nowrap; user-select: none;
    transition: top 1.2s ease, left 1.2s ease;
}
.video-fallback { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #fff; gap: 10px; }
.lesson-content { background: var(--bg-pink); border-radius: var(--radius); padding: 18px; margin-top: 14px; }
.assign-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 15px 18px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.assign-status { font-size: 13px; color: var(--muted); margin-top: 4px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-box .stat-label { display: block; color: var(--muted); font-size: 13px; }
.stat-box b { display: block; font-family: var(--font-display); font-size: 32px; color: var(--pink); line-height: 1.3; }
.stat-box small { color: var(--muted); }
.progress-bar-outer { height: 12px; background: var(--border); border-radius: 999px; overflow: hidden; margin-top: 18px; }
.progress-bar-inner { height: 100%; background: linear-gradient(90deg, var(--pink), var(--pink-300)); border-radius: 999px; transition: width .4s; }
.card-plain { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 10px; box-shadow: var(--shadow-sm); }
.mini-table { width: 100%; border-collapse: collapse; }
.mini-table th, .mini-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.mini-table th { background: var(--bg-pink); font-family: var(--font-label); font-weight: 600; color: var(--ink); }
@media (max-width: 768px) { .lesson-grid, .stat-row { grid-template-columns: 1fr; } .sched-item { grid-template-columns: 1fr; text-align: center; } }

/* Dashboard phụ huynh (GĐ5) */
.report-toggle { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.switch { width: 52px; height: 30px; border-radius: 999px; background: #d8c9ba; border: 0; position: relative; cursor: pointer; transition: background .18s; padding: 0; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .18s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch.on { background: var(--pink); }
.switch.on .knob { left: 25px; }
.chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.chart-card h4 { margin: 0 0 8px; font-size: 15px; }
@media (max-width: 768px) { .chart-row { grid-template-columns: 1fr; } }

/* Trang hướng dẫn */
.guide-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 34px; box-shadow: var(--shadow-sm); }
.guide-content p { margin: 0 0 14px; color: var(--text); line-height: 1.8; }
.guide-content p:last-child { margin-bottom: 0; }
.guide-content ul, .guide-content ol { margin: 0 0 14px; padding-left: 22px; color: var(--text); line-height: 1.8; }
.guide-content li { margin-bottom: 6px; }
.guide-content h2, .guide-content h3, .guide-content h4 { margin: 20px 0 10px; color: var(--ink); }
.guide-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.guide-content strong, .guide-content b { color: var(--ink); }
.guide-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 10px 0; }
.guide-content blockquote { margin: 0 0 14px; padding: 10px 16px; border-left: 4px solid var(--pink); background: var(--bg-pink); border-radius: 8px; }
.guide-content table { width: 100%; border-collapse: collapse; margin: 0 0 14px; }
.guide-content th, .guide-content td { border: 1px solid var(--border); padding: 8px 12px; }
.assign-attach { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; margin-top: 6px; }

/* Trang chi tiết khóa học / sách */
.course-detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; margin-top: 18px; }
.cd-cover { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; display: grid; place-items: center; color: #fff; font-size: 64px; background: linear-gradient(140deg, var(--pink), var(--pink-300)); box-shadow: var(--shadow); }
.cd-cover.g2 { background: linear-gradient(140deg, var(--blue), var(--blue-300)); }
.cd-cover.g3 { background: linear-gradient(140deg, #d96aa8, var(--pink-100)); }
.cd-cover img { width: 100%; height: 100%; object-fit: cover; }
.cd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.cd-thumbs a { width: 74px; height: 74px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.cd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.cd-info h1 { font-size: 34px; }
.cd-price { font-family: var(--font-display); font-size: 34px; color: var(--pink); }
@media (max-width: 860px) { .course-detail { grid-template-columns: 1fr; gap: 24px; } .cd-info h1 { font-size: 27px; } }

/* Gallery ảnh (read-only) */
.media-gallery { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.media-gallery a { display: block; width: 100px; height: 100px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.media-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.media-gallery a:hover img { transform: scale(1.06); }

/* ---------- Trang hồ sơ học viên ---------- */
.profile-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 22px; align-items: start; margin-top: 16px; }

/* Thẻ chính: header gradient + body trắng */
.profile-main { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.pm-header { position: relative; display: flex; align-items: center; gap: 20px; padding: 26px 28px;
    background: linear-gradient(120deg, var(--pink) 0%, #cf589f 50%, var(--blue) 130%); color: #fff; }
.pm-header::before { content: ""; position: absolute; inset: 0; background: radial-gradient(360px 160px at 88% -20%, rgba(255,255,255,.22), transparent 60%); }
.pm-avatar { position: relative; z-index: 1; width: 96px; height: 96px; border-radius: 50%; flex: none; cursor: pointer;
    display: grid; place-items: center; border: 4px solid rgba(255,255,255,.55);
    background: rgba(255,255,255,.18); color: #fff; font-family: var(--font-display); font-size: 40px; box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.pm-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pm-avatar .pm-cam { position: absolute; right: -2px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%; overflow: visible;
    background: #fff; color: var(--pink); display: grid; place-items: center; font-size: 16px; border: 2px solid var(--pink-100); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.pm-avatar:hover { border-color: #fff; }
.pm-id { position: relative; z-index: 1; }
.pm-id h2 { color: #fff; font-family: var(--font-display); font-size: 28px; margin: 0 0 10px; }
.pm-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pm-badges span { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.20); backdrop-filter: blur(4px);
    padding: 5px 12px; border-radius: 999px; font-family: var(--font-label); font-weight: 600; font-size: 13px; }
.pm-body { padding: 24px 28px 28px; }
.pm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.pm-body .form-label i { color: var(--pink); }
.pm-note { display: flex; gap: 8px; background: var(--bg-blue); border: 1px solid var(--blue-100); border-radius: 12px;
    padding: 12px 14px; font-size: 13px; color: var(--ink-700); margin: 4px 0 18px; }
.pm-note i { color: var(--blue); font-size: 17px; flex: none; }

/* Thẻ đổi mật khẩu */
.profile-side { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px; text-align: center; }
.profile-side .ps-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center;
    font-size: 26px; color: var(--blue); background: var(--blue-050); }
.profile-side h3 { font-size: 19px; margin: 0 0 2px; }
.profile-side .ps-sub { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.profile-side .form-group { text-align: left; }

@media (max-width: 820px) {
    .profile-grid { grid-template-columns: 1fr; }
    .pm-row { grid-template-columns: 1fr; }
    .pm-header { flex-direction: column; text-align: center; }
    .pm-badges { justify-content: center; }
}

/* FAQ (accordion) */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary { cursor: pointer; font-family: var(--font-label); font-weight: 700; color: var(--ink); padding: 16px 44px 16px 18px; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--pink); font-weight: 400; transition: transform .2s; }
.faq-item[open] summary { color: var(--pink); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 18px 16px; margin: 0; color: var(--ink-700); line-height: 1.75; }

/* Avatar học viên (dashboard) */
.dash-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center;
    color: #fff; font-family: var(--font-display); font-size: 26px; background: linear-gradient(140deg, var(--pink), var(--pink-300));
    box-shadow: var(--shadow-sm); text-decoration: none; }
.dash-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-avatar:hover { box-shadow: var(--shadow); }

/* Utility */
.page-head { padding: 44px 0 8px; }
.page-head h1 { font-size: 34px; margin: 0; }
.mt-section { margin-top: 40px; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state img { width: 150px; margin: 0 auto 14px; opacity: .95; }

/* ============================================================
   NĂNG LƯỢNG & ĐỘ SÁNG — sôi động hơn cho site luyện thi
   ============================================================ */
@keyframes floaty { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
@keyframes twinkle { 0%,100% { transform: scale(1); opacity: .55 } 50% { transform: scale(1.35); opacity: 1 } }
@keyframes gradshift { 0%,100% { background-position: 0% 50% } 50% { background-position: 100% 50% } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0 } 100% { transform: scale(1); opacity: 1 } }

/* Chữ gradient hồng→xanh (dùng cho từ khoá nổi bật) */
.grad-text {
    background: linear-gradient(100deg, var(--pink), #e0509d 45%, var(--blue));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Nền chấm bi (halftone) — lấy cảm hứng từ logo, thêm sức sống cho section */
.section.soft { background: var(--bg-pink); position: relative; }
.section.blue { background: var(--bg-blue); position: relative; }
.section.soft::before, .section.blue::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image: radial-gradient(currentColor 1.5px, transparent 1.6px);
    background-size: 22px 22px; opacity: .06;
}
.section.soft::before { color: var(--pink); }
.section.blue::before { color: var(--blue); }
.section > .container { position: relative; z-index: 1; }

/* Eyebrow section có ngôi sao lấp lánh hai bên */
.section-head .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.section-head .eyebrow::before, .section-head .eyebrow::after {
    content: "\2726"; /* ✦ */ color: var(--amber); font-size: 12px;
    animation: twinkle 2.4s ease-in-out infinite;
}
.section-head .eyebrow::after { animation-delay: 1.2s; }

/* CTA chính rực rỡ hơn: gradient hồng→magenta + hover sáng */
.btn-primary {
    background: linear-gradient(120deg, var(--pink), #d5539c);
    background-size: 160% 100%;
}
.btn-primary:hover { background-position: 100% 0; }

/* CTA band: gradient hồng→xanh động cho sôi động */
.cta-band {
    background: linear-gradient(115deg, var(--pink) 0%, #c94f9e 45%, var(--blue) 115%);
    background-size: 180% 180%; animation: gradshift 9s ease infinite;
}

/* Stats: mỗi ô một sắc màu tươi + nảy khi hover */
.stat-card { transition: transform .18s ease, box-shadow .18s ease; }
.stat-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow); }
.stat-card:nth-child(odd) { background: linear-gradient(180deg, #fff, #fdeef6); }
.stat-card:nth-child(even) { background: linear-gradient(180deg, #fff, #eaf6f9); }
.stat-card .sc-num { animation: pop .5s ease both; }

/* Thẻ nảy vui hơn khi hover */
.course-card:hover, .feature-card:hover, .tm-card:hover, .step:hover { transform: translateY(-6px); }
.feature-card, .tm-card, .step { transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover .fi { transform: rotate(-6deg) scale(1.08); }
.feature-card .fi { transition: transform .2s ease; }

/* Trust bar nhấn màu luân phiên */
.trust-item:nth-child(2n) i { color: var(--blue); }

/* Icon bước nhảy nhẹ */
.step:hover .num { animation: floaty 1.4s ease-in-out infinite; }

/* ============================================================
   TINH CHỈNH ĐỘ TINH TẾ — nét, mượt, thu hút hơn
   ============================================================ */

/* Scroll-reveal: khối hiện dần khi cuộn tới (JS thêm class .reveal) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Header nâng nhẹ khi cuộn — cảm giác "nổi" tinh tế */
.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header.scrolled { background: rgba(253, 250, 246, .94); box-shadow: 0 6px 24px rgba(82, 55, 26, .09); }

/* Nav: gạch chân trượt khi hover */
.nav-menu a { position: relative; }
.nav-menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--pink), var(--blue)); transition: right .28s cubic-bezier(.2, .7, .2, 1); }
.nav-menu a:hover::after { right: 0; }

/* Ảnh card khóa học: zoom nhẹ khi hover (khung đã overflow hidden) */
.course-card .thumb .thumb-img { transition: transform .55s cubic-bezier(.2, .7, .2, 1); }
.course-card:hover .thumb .thumb-img { transform: scale(1.06); }

/* Shadow card mềm & sâu hơn khi hover (cảm giác nâng có chiều sâu) */
.course-card, .feature-card, .tm-card, .step, .stat-card, .lesson-card { transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s ease, border-color .22s ease; }
.course-card:hover, .lesson-card:hover { box-shadow: 0 3px 8px rgba(82,55,26,.06), 0 24px 44px rgba(194,87,160,.14); }

/* Nút bấm: phản hồi ấn có chiều sâu hơn */
.btn { will-change: transform; }
.btn-primary:active, .btn-blue:active, .btn-coral:active { transform: translateY(1px) scale(.99); }

/* Focus-visible rõ ràng cho bàn phím (accessibility + tinh tế) */
a:focus-visible, .btn:focus-visible, button:focus-visible, .form-control:focus-visible, .option-pill:focus-within, .q-option:focus-within {
    outline: 3px solid rgba(194, 87, 160, .45); outline-offset: 2px; border-radius: 10px;
}

/* Eyebrow section: chữ giãn nhẹ cho sang */
.section-head .eyebrow { letter-spacing: 1.2px; }

/* Đường kẻ gradient mảnh (tùy dùng) ngăn section cho tinh tế */
.hairline { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); margin: 0; }

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav { display: none; }
@media (max-width: 700px) {
    .bottom-nav {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
        background: rgba(255, 255, 255, .96); backdrop-filter: saturate(180%) blur(10px);
        border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(82, 55, 26, .07);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    }
    .bottom-nav a {
        flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
        color: var(--muted); font-family: var(--font-label); font-size: 10.5px; font-weight: 600;
        padding: 4px 2px; border-radius: 12px; text-align: center; line-height: 1.15;
    }
    .bottom-nav a i { font-size: 21px; }
    .bottom-nav a.active { color: var(--pink); }
    .bottom-nav a.active i { transform: translateY(-1px); }
    /* Chừa chỗ để bottom nav không che nội dung/footer */
    body { padding-bottom: 60px; }
    .site-footer { margin-bottom: 4px; }
}

/* Tôn trọng người tắt hiệu ứng chuyển động */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}
