/* cm-shell.css: style cua cac thanh phan chung moi trang (hop dang nhap, qua tang / Premium, onboarding, "Dang dien ra", cua chan cong cu,
   footer, xac minh nguoi that). Truoc dot don dep loi (06/10/2026) cac khoi nay nam trong <style> cua tung view va
   duoc gui lai trong HTML cua MOI trang (~41 KB voi khach, ~70 KB voi nguoi da dang nhap). Thu tu giu dung thu tu xuat hien trong trang. */

/* ===== modal-login (resources/views/components/colorme/modal-login.blade.php) ===== */
/* Popup dang nhap: 1 co chieu cao (48px) va 1 bo goc (12px) cho moi o nhap va nut */
#modalLogin .cm-mb { padding: 44px 32px 36px; } /* chu 12/10/2026: hop cao hon cho can doi (400 x ~490 thay vi gan vuong) */
#modalLogin .cm-login-x { position: absolute; top: 12px; right: 12px; margin: 0; z-index: 2; }
#modalLogin .cm-login-brand { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
#modalLogin .cm-login-brand img { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; }
#modalLogin .cm-login-brand h2 { font-size: var(--cm-fs-h1); font-weight: var(--cm-fw-heading) !important; letter-spacing: -.02em; color: var(--cm-text); margin: 20px 0 8px; }
#modalLogin .cm-login-brand p { color: var(--cm-muted); font-size: var(--cm-fs-body); margin: 0; }
#modalLogin .form-login { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 24px; }
#modalLogin .form-login .cm-field > label { font-size: 13.5px; }
#modalLogin .form-control, #modalLogin .form-login input { height: 48px; min-height: 48px; border-radius: 12px; border: 1px solid var(--cm-line-2); padding: 0 16px; font-size: var(--cm-fs-body); color: var(--cm-text); box-shadow: none; background-color: var(--cm-surface); }
#modalLogin .form-control:focus { border-color: var(--cm-text); box-shadow: var(--cm-focus); }
#modalLogin .form-control::placeholder { color: var(--cm-faint); }
#modalLogin .btn { height: 48px; padding: 0 16px !important; border-radius: 12px; font-size: var(--cm-fs-body); font-weight: var(--cm-fw-semibold); display: inline-flex; align-items: center; justify-content: center; margin-left: 0 !important; margin-right: 0 !important; }
/* Nut chinh: gradient cam - do giong nut Dang nhap tren thanh menu */
#modalLogin .btn-success { background: var(--cm-grad); border: 0; color: var(--cm-on-grad, #fff); transition: filter .15s, opacity .15s; } /* brand gradient CTA */
#modalLogin .btn-success:hover, #modalLogin .btn-success:focus { background: var(--cm-grad); filter: brightness(.95); color: var(--cm-on-grad, #fff); }
#modalLogin .btn-success:disabled { background: var(--cm-surface-3); opacity: 1; color: var(--cm-muted); } /* chua nhap du: nut xam ro rang thay vi gradient mo */
#modalLogin .form-login .btn-success { margin-top: 4px; }
#modalLogin .cm-login-terms { color: var(--cm-link); }
#modalLogin .btn-light { background: var(--cm-surface-2); border-color: var(--cm-surface-2); color: var(--cm-text); }
#modalLogin .btn-light:hover { background: var(--cm-surface-3); }
#modalLogin .cm-forgot { display: block; text-align: center; margin: 16px 0 0; color: var(--cm-muted); font-size: var(--cm-fs-small); text-decoration: none; }
#modalLogin .cm-forgot:hover { color: var(--cm-text); }
/* cm-si: than dang nhap chi con Google (resources/views/auth/_signin.blade.php): popup, /login, /password/reset */
.cm-si { width: 100%; text-align: left; }
#modalLogin .cm-si { margin-top: 32px; }
#modalLogin .cm-si-notes { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--cm-line); gap: 18px; }
.cm-si-google { width: 100%; height: 52px; border: 1px solid var(--cm-line-2); border-radius: 999px; background: #fff; color: #101828; font-size: var(--cm-fs-body); font-weight: var(--cm-fw-semibold); display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); transition: background .15s, box-shadow .15s; }
.cm-si-google:hover { background: #F9FAFB; color: #101828; box-shadow: 0 2px 6px rgba(16, 24, 40, .10); }
.cm-si-google.is-busy { opacity: .6; pointer-events: none; }
.cm-si-g { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cm-si-g svg { width: 20px; height: 20px; }
.cm-si-apple { width: 100%; height: 52px; margin-top: 10px; border: 1px solid #101828; border-radius: 999px; background: #101828; color: #fff; font-size: var(--cm-fs-body); font-weight: var(--cm-fw-semibold); display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: opacity .15s; }
.cm-si-apple:hover { opacity: .9; color: #fff; }
.cm-si-apple.is-busy { opacity: .6; pointer-events: none; }
.cm-si-apple .icon { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.cm-si-notes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.cm-si-notes li { display: flex; gap: 12px; align-items: flex-start; }
.cm-si-tile { width: 36px; height: 36px; border-radius: 10px; background: var(--cm-surface-2); color: var(--cm-text); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.cm-si-notes b { display: block; font-size: var(--cm-fs-body-sm); font-weight: var(--cm-fw-semibold); color: var(--cm-text); line-height: 1.4; }
.cm-si-notes small { display: block; font-size: 13px; color: var(--cm-muted); line-height: 1.45; margin-top: 1px; text-wrap: pretty; }
#modalLogin .cm-inapp:not([hidden]) + .cm-si { margin-top: 0; }
#modalLogin .cm-inapp { margin: 20px 0 16px; padding: 16px; border: 1px solid var(--cm-line-2); border-radius: 12px; background: var(--cm-surface-2); text-align: left; }
#modalLogin .cm-inapp strong { display: block; color: var(--cm-text); font-size: 16px; line-height: 1.4; }
#modalLogin .cm-inapp p { margin: 6px 0 14px; color: var(--cm-muted); font-size: var(--cm-fs-small); line-height: 1.55; }
#modalLogin .cm-inapp .btn + .btn { margin-top: 8px; }
#modalLogin #form-register .alert { margin: 0; }
.cm-google-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--cm-muted); font-size: var(--cm-fs-small); }
.cm-google-or::before, .cm-google-or::after { content: ''; flex: 1; height: 1px; background: var(--cm-line); }
#modalLogin .cm-google { background: var(--cm-surface); border: 1px solid var(--cm-line-2); color: var(--cm-text); gap: 10px; }
#modalLogin .cm-google:hover { background: var(--cm-bg-subtle); border-color: var(--cm-faint); }
#modalLogin .cm-google svg { width: 18px; height: 18px; flex-shrink: 0; }
#modalLogin .cm-google.is-busy { opacity: .6; pointer-events: none; }

/* ===== gifts (resources/views/components/colorme/gifts.blade.php) ===== */
.cm-gift-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.cm-gift-btn .cm-gift-dot { position: absolute; top: 8px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: #F04438; box-shadow: 0 0 0 2px var(--cm-surface); } /* red notification dot: vivid in both themes; ring = header bg */
.cm-gift-btn .cm-gift-dot[hidden] { display: none; }

/* Bang qua tang (dropdown) */
.cmg-panel { position: fixed; z-index: 1060; width: 400px; max-width: calc(100vw - 24px); max-height: min(640px, calc(100vh - 90px)); display: flex; flex-direction: column;
    --cmg-bg: var(--cm-elevated); background: var(--cm-elevated); border: 1px solid var(--cm-line); border-radius: 20px; box-shadow: 0 24px 60px -20px rgba(16, 24, 40, .35); overflow: hidden; animation: cmgIn .22s ease both; font-size: 14px; color: var(--cm-text); }
.cmg-panel[hidden] { display: none; }
.cmg-sheet-bg { display: none; position: fixed; inset: 0; z-index: 1059; background: rgba(16, 24, 40, .45); animation: cmgFade .2s ease both; }
.cmg-sheet-bg[hidden] { display: none !important; }
.cmg-close { display: none; position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--cm-surface-2); color: var(--cm-text-2); align-items: center; justify-content: center; }
@keyframes cmgSheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes cmgIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cmg-head { padding: 16px 18px 0; }
.cmg-head h3 { font-size: 16px; font-weight: 700; margin: 0 0 2px; }
.cmg-head p { color: var(--cm-muted); font-size: 13px; margin: 0 0 12px; }
.cmg-tabs { display: flex; gap: 4px; background: var(--cm-surface-2); border-radius: 999px; padding: 3px; margin: 0 18px 12px; }
.cmg-tabs button { flex: 1; border: 0; background: none; border-radius: 999px; padding: 7px 10px; font-weight: 600; font-size: 13px; color: var(--cm-text-2); }
.cmg-tabs button.active { background: var(--cm-elevated); color: var(--cm-text); box-shadow: 0 1px 3px rgba(16, 24, 40, .15); }
/* So voucher / loi moi con dung duoc tren tab */
.cmg-tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px; background: #F04438; color: #fff; /* count badge: vivid red in both themes */ font-size: 11px; font-weight: 700; line-height: 1; vertical-align: 1px; }
.cmg-tab-count[hidden] { display: none; }
.cmg-body { overflow-y: auto; padding: 0 18px 16px; overscroll-behavior: contain; }
.cmg-empty { text-align: center; color: var(--cm-muted); padding: 26px 8px; }
.cmg-empty :is(i, .icon) { font-size: 26px; color: var(--cm-line-2); display: block; margin-bottom: 8px; }

/* Ve voucher */
.cmg-ticket { position: relative; display: flex; border-radius: 16px; background: var(--cm-elevated); border: 1px solid var(--cm-line); box-shadow: 0 10px 24px -18px rgba(16, 24, 40, .45); margin-bottom: 12px; overflow: hidden; }
.cmg-stub { position: relative; flex: 0 0 96px; color: #fff; background: linear-gradient(135deg, #f5af19, #F15A24); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 6px; }
.cmg-stub::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120px 60px at 20% 0%, rgba(255, 255, 255, .28), transparent 70%); pointer-events: none; }
.cmg-stub b { font-size: 30px; line-height: 1; letter-spacing: -.02em; font-weight: 800; }
.cmg-stub span { font-size: 11px; font-weight: 700; letter-spacing: .14em; margin-bottom: 4px; opacity: .95; }
.cmg-stub small { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; line-height: 1.25; margin-top: 6px; text-align: center; opacity: .95; }
.cmg-perf { position: relative; flex: 0 0 0; border-left: 2px dashed var(--cm-line); }
.cmg-perf::before, .cmg-perf::after { content: ''; position: absolute; left: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--cmg-bg, var(--cm-surface)); border: 1px solid var(--cm-line); }
.cmg-perf::before { top: -9px; }
.cmg-perf::after { bottom: -9px; }
.cmg-main { flex: 1; min-width: 0; padding: 12px 14px 12px 16px; }
.cmg-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cmg-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; font-size: 15px; letter-spacing: .04em; }
.cmg-copy { border: 0; background: var(--cm-surface-2); color: var(--cm-text-2); border-radius: 8px; width: 28px; height: 28px; font-size: 12px; flex-shrink: 0; }
.cmg-copy:hover { background: var(--cm-surface-3); color: var(--cm-text); }
.cmg-meta { color: var(--cm-muted); font-size: 12px; margin-top: 2px; }
.cmg-chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 700; background: var(--cm-success-bg); color: var(--cm-success); white-space: nowrap; }
.cmg-chip.is-warn { background: var(--cm-warning-bg); color: var(--cm-warning); }
.cmg-chip.is-off { background: var(--cm-surface-2); color: var(--cm-muted); }
.cmg-actions { display: flex; gap: 6px; margin-top: 10px; }
.cmg-btn { border: 0; border-radius: 999px; padding: 7px 12px; font-weight: 600; font-size: 12.5px; line-height: 1.3; }
.cmg-btn.is-dark { background: var(--cm-inverse); color: var(--cm-on-inverse); }
.cmg-btn.is-dark:hover { background: var(--cm-inverse-hover); }
.cmg-btn.is-light { background: var(--cm-surface-2); color: var(--cm-text); }
.cmg-btn.is-light:hover { background: var(--cm-surface-3); }
.cmg-btn:disabled { opacity: .5; }
/* Nut chinh tang ban be: gradient cam - do cua thuong hieu */
.cmg-btn.is-grad { background: linear-gradient(to right, #f5af19, #F15A24); color: #fff; transition: filter .15s; }
.cmg-btn.is-grad:hover { filter: brightness(.95); color: #fff; }
#cmg-send { z-index: 1080; }
.cmg-code, .cmg-send-sum code { user-select: none; -webkit-user-select: none; }
#cmg-send .cmg-dialog { max-width: 440px; }
#cmg-send .cmg-dialog-body { padding: 6px 22px 22px; }
.cmg-send-sum { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #FFF6ED; margin-bottom: 14px; } /* soft orange tint (dark: see overrides below) */
.cmg-send-sum b { font-size: 20px; line-height: 1; color: var(--cm-accent-text, #C2410C); }
.cmg-send-sum span { font-size: 13px; color: var(--cm-text-2); }
.cmg-send-sum code { font-size: 13px; color: var(--cm-text); font-weight: 700; }
#cmg-send .cmg-form input { height: 44px; border-radius: 12px; }
#cmg-send .cmg-dialog-foot .cmg-btn { height: 44px; padding: 0 20px; font-size: 14px; }
#cmg-send .cmg-dialog-foot { gap: 8px; }
.cmg-terms { margin-top: 8px; }
.cmg-terms summary { cursor: pointer; color: var(--cm-muted); font-size: 11.5px; list-style: none; }
.cmg-terms summary::-webkit-details-marker { display: none; }
.cmg-terms ul { margin: 6px 0 0; padding-left: 16px; color: var(--cm-muted); font-size: 11.5px; line-height: 1.5; }
.cmg-ticket.is-off .cmg-stub { background: linear-gradient(135deg, #D0D5DD, #98A2B3); }
.cmg-ticket.is-off .cmg-code { color: var(--cm-muted); text-decoration: line-through; }
.cmg-stamp { position: absolute; right: 12px; top: 50%; transform: translateY(-50%) rotate(-12deg); border: 2px solid currentColor; color: var(--cm-muted); border-radius: 8px; padding: 2px 8px; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }

/* Form gui */
.cmg-form { background: var(--cm-bg-subtle); border: 1px solid var(--cm-line); border-radius: 14px; padding: 12px; margin-top: 10px; }
.cmg-form label { display: block; font-size: 12px; font-weight: 600; color: var(--cm-text-2); margin: 8px 0 4px; }
.cmg-form label:first-child { margin-top: 0; }
.cmg-form input[type=text], .cmg-form input[type=tel], .cmg-form input[type=email] { width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--cm-line-2); padding: 0 12px; font-size: 14px; outline: 0; background: var(--cm-surface); }
.cmg-form input:focus { border-color: var(--cm-text); box-shadow: 0 0 0 3px rgba(16, 24, 40, .08); }
.cmg-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.cmg-pills button { border: 1px solid var(--cm-line-2); background: var(--cm-surface); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--cm-text-2); }
.cmg-pills button.active { background: var(--cm-inverse); border-color: var(--cm-inverse); color: var(--cm-on-inverse); }
.cmg-form .cmg-err { color: var(--cm-danger); font-size: 12.5px; margin-top: 8px; }
.cmg-form .cmg-ok { color: var(--cm-success); font-size: 12.5px; margin-top: 8px; }

/* Loi moi Premium */
.cmg-invite-top { display: flex; align-items: center; gap: 12px; background: var(--cm-warning-bg); border: 1px solid #FEDF89; border-radius: 14px; padding: 12px; margin-bottom: 12px; }
.cmg-invite-top :is(i, .icon) { color: #F5B301; font-size: 22px; }
.cmg-invite-top b { display: block; font-size: 14px; }
.cmg-invite-top small { color: var(--cm-muted); }
.cmg-list { list-style: none; padding: 0; margin: 12px 0 0; }
.cmg-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--cm-line); font-size: 13px; }

/* Hop voucher hang ngay + hop nang cap */
.cmg-modal { position: fixed; inset: 0; z-index: 1070; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(16, 24, 40, .45); animation: cmgFade .2s ease both; }
.cmg-modal[hidden] { display: none; }
@keyframes cmgFade { from { opacity: 0; } to { opacity: 1; } }
.cmg-dialog { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--cm-elevated); border-radius: 24px; box-shadow: 0 30px 80px -24px rgba(16, 24, 40, .5); overflow: hidden; animation: cmgUp .28s cubic-bezier(.2, .9, .3, 1.1) both; --cmg-bg: var(--cm-elevated); }
@keyframes cmgUp { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.cmg-dialog-head { padding: 22px 60px 10px 22px; }
.cmg-dialog-head h3 { font-size: 20px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.01em; }
.cmg-dialog-head p { color: var(--cm-muted); margin: 0; font-size: 14px; }
.cmg-dialog-body { overflow-y: auto; padding: 8px 22px 12px; overscroll-behavior: contain; }
.cmg-dialog-foot { border-top: 1px solid var(--cm-line); padding: 12px 22px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cmg-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--cm-surface-2); color: var(--cm-text-2); z-index: 2; }
.cmg-x:hover { background: var(--cm-surface-3); color: var(--cm-text); }
.cmg-quiet { border: 0; background: none; color: var(--cm-muted); font-size: 13px; }
.cmg-quiet:hover { color: var(--cm-text-2); }
#cm-premium-modal .cmg-dialog-head { padding: 26px 48px 10px; }
.cmg-premium-art { width: 56px; height: 56px; border-radius: 16px; background: var(--cm-warning-bg); color: #F5B301; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 10px; }
@media (max-width: 575.98px) {
    /* Mobile: bang qua la bottom sheet co nen mo, tay nam keo, chieu cao co dinh, cuon ben trong */
    .cmg-panel { left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important; width: 100%; max-width: none; height: min(86vh, 720px); max-height: none; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); animation: cmgSheet .28s cubic-bezier(.2, .8, .2, 1); }
    .cmg-panel::before { content: ''; display: block; flex: 0 0 auto; width: 40px; height: 4px; border-radius: 4px; background: var(--cm-line-2); margin: 10px auto 0; }
    .cmg-sheet-bg:not([hidden]) { display: block; }
    .cmg-close { display: inline-flex !important; }
    .cmg-body { padding: 0 14px 16px; flex: 1 1 auto; min-height: 0; }
    /* Hop tang voucher: bam theo vung nhin thay phia tren ban phim (iOS) */
    #cmg-send .cmg-dialog { max-height: calc(var(--cmg-vvh, 100vh) - 12px); transform: translateY(calc(-1 * var(--cmg-kb, 0px))); transition: transform .2s ease, max-height .2s ease; }
    #cmg-send .cmg-dialog-head { padding: 16px 56px 6px 18px; }
    #cmg-send .cmg-dialog-head h3 { font-size: 17px; line-height: 1.3; }
    #cmg-send .cmg-dialog-head p { font-size: 13px; }
    #cmg-send .cmg-send-sum { margin-bottom: 10px; padding: 8px 12px; }
    #cmg-send .cmg-dialog-body { padding: 4px 16px 14px; }
    #cmg-send .cmg-dialog-foot { padding: 10px 16px; }
    .cmg-head { padding: 10px 56px 0 18px; }
    .cmg-actions { flex-wrap: nowrap; gap: 6px; }
    .cmg-actions .cmg-btn { flex: 1 1 0; white-space: nowrap; padding: 8px 8px; font-size: 12.5px; text-align: center; }
    .cmg-actions .cmg-btn :is(i, .icon) { margin-right: 4px !important; }
    .cmg-main { padding: 12px 12px 12px 14px; }
    .cmg-modal { align-items: flex-end; padding: 0; }
    .cmg-dialog { max-width: none; border-radius: 22px 22px 0 0; max-height: 90vh; padding-bottom: env(safe-area-inset-bottom, 0px); }
    .cmg-stub { flex-basis: 78px; }
    .cmg-stub b { font-size: 24px; }
    .cmg-stub small { font-size: 8.5px; }
}
/* Dark: navy shadows/backdrops vanish on a dark page; tints need dark equivalents. Light keeps the values above. */
:root[data-theme="dark"] .cmg-panel,
:root[data-theme="dark"] .cmg-dialog { box-shadow: var(--cm-shadow-2); }
:root[data-theme="dark"] .cmg-ticket { box-shadow: none; }
:root[data-theme="dark"] .cmg-sheet-bg,
:root[data-theme="dark"] .cmg-modal { background: var(--cm-overlay); }
:root[data-theme="dark"] .cmg-tabs button.active { background: var(--cm-surface-3); box-shadow: none; }
:root[data-theme="dark"] .cmg-send-sum { background: rgba(241, 90, 36, .12); }
:root[data-theme="dark"] .cmg-invite-top { border-color: rgba(253, 176, 34, .28); }
:root[data-theme="dark"] .cmg-form input:focus { box-shadow: var(--cm-focus); }
:root[data-theme="dark"] .cmg-form input { color: var(--cm-text); }
/* Vuong mien Premium (gold crown: brand accent, same in both themes) */
.cm-crown { display: inline-flex; align-items: center; color: #F5B301; font-size: .85em; margin-left: 4px; line-height: 1; flex: 0 0 auto; }
.cm-crown i { width: auto !important; min-width: 0 !important; height: auto !important; margin: 0 !important; padding: 0 !important; background: none !important; font-size: inherit !important; color: inherit !important; }

/* ===== Ban moi (2026-10): dropdown cua thanh dieu huong + the voucher gon + toast nhac nhe ===== */
.cmg-panel { width: 380px; max-height: min(620px, calc(100vh - 84px)); border-radius: 16px; box-shadow: var(--cm-shadow-2); animation: cmgDrop .18s cubic-bezier(.2, .8, .2, 1) both; font-size: 14px; }
@keyframes cmgDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cmg-panel:focus { outline: none; }
.cmg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 10px 10px 16px; border-bottom: 1px solid var(--cm-line); }
.cmg-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 600; }
.cmg-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--cm-surface-2); color: var(--cm-text-2); font-size: 12px; font-weight: 600; }
.cmg-close { display: inline-flex; position: static; width: 32px; height: 32px; border-radius: 8px; background: transparent; color: var(--cm-muted); }
.cmg-close:hover { background: var(--cm-surface-2); color: var(--cm-text); }
.cmg-body { padding: 4px 12px 12px; }
.cmg-sec { padding: 10px 0 4px; }
.cmg-sec + .cmg-sec { border-top: 1px solid var(--cm-line); margin-top: 6px; }
.cmg-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 2px 4px 8px; font-size: 13px; font-weight: 600; color: var(--cm-text); }
.cmg-sec-h small { color: var(--cm-muted); font-size: 12px; font-weight: 500; }
/* The voucher gon: % lon ben trai, pham vi + han + hanh dong ben phai */
.cmg-v { display: flex; align-items: stretch; gap: 0; margin: 0 0 8px; border: 1px solid var(--cm-line); border-radius: 12px; background: var(--cm-surface); overflow: hidden; box-shadow: none; }
.cmg-v-pct { flex: 0 0 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 6px; background: var(--cm-warning-bg); color: var(--cm-warning); border-right: 1px dashed var(--cm-line-2); }
.cmg-v-pct b { font-size: 24px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.cmg-v-pct small { font-size: 11px; font-weight: 600; }
.cmg-v-main { flex: 1; min-width: 0; padding: 10px 12px; }
.cmg-v-l1 { font-size: 13.5px; font-weight: 600; color: var(--cm-text); }
.cmg-v-l2 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 3px; color: var(--cm-muted); font-size: 12px; }
.cmg-v .cmg-code { font-size: 12px; font-weight: 600; color: var(--cm-text-2); }
.cmg-v .cmg-actions { margin-top: 8px; }
.cmg-v .cmg-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.cmg-v.is-off { opacity: .7; }
.cmg-v.is-off .cmg-v-pct { background: var(--cm-surface-2); color: var(--cm-muted); }
/* Voucher tang rieng (300.000d, 20%...): cuong mau dam + nhan de phan biet voi voucher 15% thuong */
.cmg-v.is-special:not(.is-off) { border-color: #F5AF19; box-shadow: 0 0 0 1px #F5AF19 inset; }
.cmg-v.is-special:not(.is-off) .cmg-v-pct { background: #101828; color: #FFC53D; border-right-color: #F5AF19; }
.cmg-special-tag { display: inline-block; margin-bottom: 4px; padding: 2px 8px; border-radius: 999px; background: #FFF1D6; color: #9A4B00; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
:root[data-theme="dark"] .cmg-special-tag { background: #3A2A0A; color: #FFC53D; }
.cmg-v.is-off .cmg-special-tag { background: var(--cm-surface-2); color: var(--cm-muted); }
.cmg-used summary, .cmg-terms summary { cursor: pointer; list-style: none; padding: 4px; color: var(--cm-muted); font-size: 12.5px; }
.cmg-used summary::-webkit-details-marker { display: none; }
.cmg-used[open] summary { margin-bottom: 6px; }
/* Moi ban be */
.cmg-inv { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--cm-bg-subtle); border: 1px solid var(--cm-line); }
.cmg-inv-n { flex-shrink: 0; font-size: 13px; color: var(--cm-muted); white-space: nowrap; }
.cmg-inv-n b { font-size: 22px; font-weight: 700; color: var(--cm-text); letter-spacing: -.02em; }
.cmg-inv p { margin: 0; color: var(--cm-text-2); font-size: 12.5px; line-height: 1.45; }
.cmg-inv-go { margin-top: 10px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 10px; }
.cmg-btn.is-dark .cmi, .cmg-btn.is-light .cmi { flex-shrink: 0; }
.cmg-foot { display: flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; padding: 11px 16px; border-top: 1px solid var(--cm-line); color: var(--cm-text-2); font-size: 13px; font-weight: 500; text-decoration: none; }
.cmg-foot:hover { background: var(--cm-surface-2); color: var(--cm-text); }
.cmg-empty-pig { display: block; width: 80px; height: 80px; object-fit: contain; margin: 0 auto 10px; }
/* Toast nhac voucher: goc duoi trai, khong chan thao tac, tu an sau 6 giay */
.cmg-toast { position: fixed; z-index: 1065; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; max-width: min(400px, calc(100vw - 32px)); padding: 10px 8px 10px 12px; border-radius: 14px; background: var(--cm-elevated); border: 1px solid var(--cm-line); box-shadow: var(--cm-shadow-2); color: var(--cm-text); font-size: 13.5px; animation: cmgToastIn .3s cubic-bezier(.2, .8, .2, 1) both; }
.cmg-toast.is-out { animation: cmgToastOut .2s ease both; }
@keyframes cmgToastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes cmgToastOut { to { opacity: 0; transform: translateY(8px); } }
.cmg-toast-ico { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--cm-warning-bg); color: var(--cm-warning); }
.cmg-toast b { font-weight: 600; }
.cmg-toast-go { flex-shrink: 0; height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--cm-inverse); color: var(--cm-on-inverse); font: inherit; font-size: 13px; font-weight: 600; }
.cmg-toast-x { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; border: 0; border-radius: 8px; background: transparent; color: var(--cm-muted); }
.cmg-toast-x:hover { background: var(--cm-surface-2); color: var(--cm-text); }
/* Hai tab: Voucher | Premium Account (segmented control duoi tieu de) */
.cmg-panel .cmg-tabs { flex-shrink: 0; margin: 10px 12px 2px; }
.cmg-panel .cmg-tabs[hidden] { display: none; }
.cmg-panel .cmg-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 0; }
.cmg-panel .cmg-tab-count { background: var(--cm-surface-3); color: var(--cm-text-2); }
.cmg-panel .cmg-tabs button.active .cmg-tab-count { background: #F04438; color: #fff; } /* count badge: vivid red in both themes */
/* Tab Premium Account */
.cmg-pp { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--cm-line); background: var(--cm-surface); }
.cmg-pp-ico { flex: 0 0 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--cm-warning-bg); color: #F5B301; } /* gold crown: brand accent, same in both themes */
.cmg-pp.is-off .cmg-pp-ico { background: var(--cm-surface-2); color: var(--cm-muted); }
.cmg-pp-main { flex: 1; min-width: 0; }
.cmg-pp-main b { display: block; font-size: 14px; font-weight: 600; color: var(--cm-text); }
.cmg-pp-main span { display: block; margin-top: 2px; color: var(--cm-muted); font-size: 12.5px; }
.cmg-renew { padding: 12px; border-radius: 12px; background: var(--cm-bg-subtle); border: 1px solid var(--cm-line); }
.cmg-renew-h { font-size: 13.5px; font-weight: 600; color: var(--cm-text); }
.cmg-renew-h small { display: block; margin-top: 2px; color: var(--cm-muted); font-size: 12px; font-weight: 400; }
.cmg-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0; }
.cmg-prices div { padding: 8px 6px; border-radius: 10px; background: var(--cm-surface); border: 1px solid var(--cm-line); text-align: center; }
.cmg-prices small { display: block; color: var(--cm-muted); font-size: 11.5px; }
.cmg-prices b { display: block; margin-top: 2px; font-size: 14px; font-weight: 700; color: var(--cm-text); letter-spacing: -.01em; }
.cmg-renew .cmg-btn { width: 100%; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .cmg-panel, .cmg-toast, .cmg-toast.is-out { animation: none; } }
@media (max-width: 575.98px) {
    .cmg-panel { width: 100%; max-height: none; border-radius: 20px 20px 0 0; }
    .cmg-head { padding: 8px 10px 10px 18px; }
    .cmg-toast { left: 12px; right: 12px; max-width: none; }
}

/* ===== onboarding (resources/views/components/colorme/onboarding.blade.php) ===== */
.cmo { position: fixed; inset: 0; z-index: 1070; display: grid; place-items: center; padding: 16px; background: rgba(12, 14, 20, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: cmoFade .3s ease both; }
.cmo[hidden] { display: none; }
.cmo-card { position: relative; width: 100%; max-width: 600px; max-height: calc(100dvh - 32px); overflow: auto; border-radius: 30px; background: var(--cm-elevated, #fff); color: var(--cm-text); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .55); animation: cmoIn .45s cubic-bezier(.2, .9, .25, 1) both; overscroll-behavior: contain; }
.cmo-card--app { max-width: 540px; }
/* Onboarding: the CO DINH chieu cao cho ca 5 buoc (khong nhay khi chuyen buoc). Moi buoc = cot: hinh (co gian) + noi dung + hang nut o day.
   Man hinh thap: buoc tu cuon ben trong, hang nut van dinh o day. */
.cmo[data-mode="onboard"] .cmo-card { height: min(672px, calc(100dvh - 32px)); overflow: hidden; display: flex; }
.cmo[data-mode="onboard"] .cmo-step.is-on { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
.cmo[data-mode="onboard"] .cmo-art, .cmo[data-mode="onboard"] .cmo-pass-wrap { flex: 1 1 auto; height: auto; min-height: 150px; }
.cmo[data-mode="onboard"] .cmo-body { flex: 0 0 auto; }
/* Buoc app: vung hinh la container -> cum dien thoai va ma QR tu thu nho theo chieu cao con lai (man hinh thap van thay tron ven) */
.cmo[data-mode="onboard"] .cmo-art--app, .cmo[data-mode="onboard"] .cmo-art--hi, .cmo[data-mode="onboard"] .cmo-art--bye, .cmo[data-mode="onboard"] .cmo-pass-wrap { container-type: size; }
/* Heo va the Premium cung co gian theo vung hinh: khong bao gio bi cat */
.cmo[data-mode="onboard"] .cmo-pig { height: clamp(84px, calc(100cqh - 52px), 190px); margin-top: 34px; }
.cmo[data-mode="onboard"] .cmo-bye-pig { height: clamp(84px, calc(100cqh - 48px), 200px); margin-top: 30px; }
.cmo[data-mode="onboard"] .cmo-pass-wrap { min-height: 206px; }
.cmo[data-mode="onboard"] .cmo-pass { width: min(100%, 350px, max(236px, calc(100cqh * 1.62))); }
.cmo[data-mode="onboard"] .cmo-phones { --h: clamp(120px, 100cqh, 300px); }
.cmo[data-mode="onboard"] .cmo-qr__code { --q: clamp(34px, calc((100cqh - 10px) / 2 - 46px), 92px); }
.cmo[data-mode="onboard"].is-touch .cmo-phones { --h: clamp(84px, calc(100cqh - 72px), 240px); }
@keyframes cmoFade { from { opacity: 0; } }
@keyframes cmoIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.cmo-x { position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .7); color: #1d2939; cursor: pointer; backdrop-filter: blur(8px); }
.cmo-x:hover { background: #fff; }
/* Onboarding hoc vien: khong dong giua chung (chu so huu 04/10): an nut X va nut "Mo qua", phai di het 5 buoc */
.cmo[data-mode="onboard"] .cmo-x, .cmo[data-mode="onboard"] [data-cmo-gifts] { display: none; }
.cmo-x .icon { width: 18px; height: 18px; }
.cmo-bars { position: absolute; top: 20px; left: 32px; right: 72px; z-index: 3; display: flex; gap: 6px; }
.cmo-bars i { flex: 1; height: 4px; border-radius: 4px; background: rgba(16, 24, 40, .14); overflow: hidden; }
.cmo-bars i::after { content: ""; display: block; height: 100%; width: 0; border-radius: inherit; background: #101828; transition: width .5s cubic-bezier(.2, .9, .25, 1); }
.cmo-bars i.on::after { width: 100%; }
.cmo[data-step="premium"] .cmo-bars i { background: rgba(255, 255, 255, .18); }
.cmo[data-step="premium"] .cmo-bars i::after { background: #D4FF3A; }
.cmo[data-step="premium"] .cmo-x { background: rgba(255, 255, 255, .12); color: #fff; }

.cmo-step { display: none; }
.cmo-step.is-on { display: block; animation: cmoStep .5s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes cmoStep { from { opacity: 0; transform: translateX(14px); } }
.cmo-art { position: relative; height: 212px; overflow: hidden; display: grid; place-items: center; }
.cmo-body { padding: 24px 40px 0; }
.cmo-kick { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cm-muted); }
.cmo-kick .icon { width: 14px; height: 14px; }
.cmo h2 { margin: 0 0 10px; font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; color: inherit; }
.cmo p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--cm-text-2, #475467); }
/* Hang nut dinh o day the: man hinh thap van luon thay nut (noi dung cuon phia tren) */
.cmo-acts { position: sticky; bottom: 0; z-index: 2; display: flex; gap: 10px; margin: 22px -40px 0; padding: 14px 40px 28px; background: linear-gradient(to top, var(--cm-elevated, #fff) 78%, transparent); }
.cmo-step--premium .cmo-acts { background: linear-gradient(to top, #0B0B0F 78%, transparent); }
.cmo-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 18px; border: 0; border-radius: 14px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none !important; transition: transform .15s ease, filter .15s ease, background .15s ease; }
.cmo-btn .icon { width: 18px; height: 18px; }
.cmo-btn--go { background: var(--cm-grad, linear-gradient(to right, #F5AF19, #F15A24)); color: #fff !important; }
.cmo-btn--go:hover { filter: brightness(1.05) saturate(1.05); }
.cmo-btn--ghost { flex: 0 0 auto; background: var(--cm-surface-2, #f2f4f7); color: var(--cm-text) !important; }
.cmo-btn--ghost:hover { background: var(--cm-line, #eaecf0); }
.cmo-btn--lime { background: #D4FF3A; color: #0B0B0F !important; }
.cmo-btn--lime:hover { filter: brightness(1.04); }
.cmo-btn--dark { flex: 0 0 auto; background: rgba(255, 255, 255, .1); color: #fff !important; }
.cmo-btn--dark:hover { background: rgba(255, 255, 255, .16); }

/* 1. Chao mung */
.cmo-art--hi { background: radial-gradient(120% 90% at 50% 100%, #FFE1D6 0%, #FFF3E6 55%, #FFF9F2 100%); }
.cmo-art--hi::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(241, 90, 36, .18) 1px, transparent 1.2px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(70% 70% at 50% 60%, #000 30%, transparent 75%); mask-image: radial-gradient(70% 70% at 50% 60%, #000 30%, transparent 75%); }
.cmo-pig { position: relative; z-index: 1; width: auto; height: 164px; object-fit: contain; margin-top: 30px; filter: drop-shadow(0 18px 18px rgba(193, 71, 40, .22)); animation: cmoBob 4s ease-in-out infinite; }
@keyframes cmoBob { 50% { transform: translateY(-6px) rotate(-1.5deg); } }
.cmo-halo { position: absolute; left: 50%; top: 56%; width: 230px; height: 230px; margin: -115px 0 0 -115px; border-radius: 50%; background: conic-gradient(from 0deg, #F5AF19, #F15A24, #FF7EB6, #7A5AF8, #36BFFA, #F5AF19); opacity: .32; filter: blur(26px); animation: cmoSpin 14s linear infinite; }
@keyframes cmoSpin { to { transform: rotate(360deg); } }
.cmo-spark { position: absolute; z-index: 1; display: grid; place-items: center; color: #F79009; animation: cmoTwinkle 2.6s ease-in-out infinite; }
.cmo-spark .icon { width: 100%; height: 100%; fill: currentColor; stroke-width: 1.5; }
.cmo-spark.s1 { left: 30%; top: 26%; width: 22px; height: 22px; }
.cmo-spark.s2 { right: 29%; top: 40%; width: 16px; height: 16px; color: #F15A24; animation-delay: -.9s; }
.cmo-spark.s3 { left: 37%; bottom: 12%; width: 14px; height: 14px; color: #7A5AF8; animation-delay: -1.7s; }
.cmo-spark.s4 { right: 36%; top: 20%; width: 12px; height: 12px; color: #36BFFA; animation-delay: -.4s; }
@keyframes cmoTwinkle { 0%, 100% { opacity: .25; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(18deg); } }
.cmo-float { position: absolute; z-index: 1; display: block; border-radius: 22%; box-shadow: 0 12px 24px -10px rgba(16, 24, 40, .45); animation: cmoFloat 5s ease-in-out infinite; }
.cmo-float .cm-ci { display: block; }
.cmo-float:nth-child(2) { left: 13%; top: 32%; transform: rotate(-10deg); }
.cmo-float:nth-child(3) { right: 13%; top: 26%; transform: rotate(9deg); animation-delay: -1.6s; }
.cmo-float:nth-child(4) { left: 24%; bottom: 14%; transform: rotate(6deg); animation-delay: -3s; }
.cmo-float:nth-child(5) { right: 23%; bottom: 12%; transform: rotate(-7deg); animation-delay: -.8s; }
@keyframes cmoFloat { 50% { translate: 0 -7px; } }
.cmo-hi-list { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.cmo-hi-list li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 600; color: var(--cm-text); }
.cmo-hi-list li span { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 11px; }
.cmo-hi-list li span .icon { width: 18px; height: 18px; }
.cmo-hi-list li small { display: block; font-size: 13px; font-weight: 500; color: var(--cm-muted); }
.cmo-t1 { background: #EEF4FF; color: #3538CD; }
.cmo-t1--logo { overflow: hidden; background: none; }
.cmo-t1--logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cmo-t2 { background: #0B0B0F; color: #D4FF3A; }
.cmo-t3 { background: #FFF4ED; color: #E04F16; }

/* 2. App: 2 ma QR */
.cmo-art--app { height: auto; padding: 46px 32px 12px; display: flex; align-items: center; justify-content: center; gap: 22px; background: radial-gradient(90% 90% at 30% 20%, #E3ECFF, #F4F7FF 60%, transparent); }
/* 3 man hinh app (anh tinh cua trang /app-hoc-vien): giua to, hai ben nghieng ra sau. Vien dien thoai nam ngoai man hinh, bo goc 15.4% nhu iPhone */
/* Moi kich thuoc tinh theo --h (chieu cao cum dien thoai): doi --h la ca cum co gian deu, khong bao gio bi cat.
   Onboarding: --h bam theo chieu cao vung hinh (container query), xem ben duoi. */
.cmo-phones { --h: 284px; position: relative; flex: 0 0 auto; height: var(--h); width: calc(var(--h) * 1.06); }
.cmo-ph { --w: calc(var(--h) * .385); --b: 3px; position: absolute; top: 50%; left: 50%; width: var(--w); padding: var(--b); border-radius: calc((var(--w) - 2 * var(--b)) * .154 + var(--b)); background: #0B0B0F; box-shadow: 0 0 0 1px #2C2C30, 0 24px 40px -22px rgba(16, 24, 40, .6); }
.cmo-ph img { display: block; width: 100%; height: auto; aspect-ratio: 600 / 1300; object-fit: cover; border-radius: calc((var(--w) - 2 * var(--b)) * .154); background: #fff; }
.cmo-ph--c { --w: calc(var(--h) * .452); z-index: 2; transform: translate(-50%, -50%); animation: cmoPhC .7s cubic-bezier(.2, .9, .25, 1) both; }
.cmo-ph--l { --w: calc(var(--h) * .385); z-index: 1; transform: translate(-50%, -50%) translateX(calc(var(--h) * -.315)) translateY(calc(var(--h) * .03)) rotate(-8deg); animation: cmoPhL .8s cubic-bezier(.2, .9, .25, 1) both; }
.cmo-ph--r { --w: calc(var(--h) * .385); z-index: 1; transform: translate(-50%, -50%) translateX(calc(var(--h) * .315)) translateY(calc(var(--h) * .03)) rotate(8deg); animation: cmoPhR .8s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes cmoPhC { from { opacity: 0; transform: translate(-50%, -42%) scale(.92); } }
@keyframes cmoPhL { from { opacity: 0; transform: translate(-50%, -50%) translateY(26px) rotate(0); } }
@keyframes cmoPhR { from { opacity: 0; transform: translate(-50%, -50%) translateY(26px) rotate(0); } }
.cmo-qrs { flex: 0 0 132px; display: grid; gap: 10px; }
.cmo-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 10px 8px; border-radius: 16px; background: #fff; border: 1px solid #E4E7EC; box-shadow: 0 16px 30px -22px rgba(16, 24, 40, .45); text-decoration: none !important; color: #101828; transition: transform .2s ease, box-shadow .2s ease; }
.cmo-qr:hover { transform: translateY(-2px); box-shadow: 0 22px 36px -22px rgba(16, 24, 40, .5); }
.cmo-qr__code { --q: 84px; width: var(--q); aspect-ratio: 1; background: #fff; }
.cmo-qr__code svg { display: block; width: 100%; height: 100%; }
.cmo-qr__lab { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.cmo-qr__lab svg { width: 15px; height: 15px; }
.cmo-qr__lab small { display: none; }
.cmo-stores { display: none; gap: 10px; width: 100%; }
.cmo.is-touch .cmo-art--app { flex-direction: column; gap: 14px; }
.cmo-store { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 14px; background: #0B0B0F; color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none !important; }
.cmo-store svg { width: 20px; height: 20px; }
.cmo-feats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cmo-feats span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--cm-surface-2, #f2f4f7); font-size: 13px; font-weight: 600; color: var(--cm-text); }
.cmo-feats .icon { width: 15px; height: 15px; color: var(--cm-muted); }
.cmo.is-touch .cmo-qrs { display: none; }
.cmo.is-touch .cmo-stores { display: flex; }
.cmo.is-touch .cmo-art--app { padding-top: 48px; padding-bottom: 0; }
/* hop QR sau dang nhap (the hep hon): thu nho cum dien thoai */
.cmo-card--app .cmo-phones { --h: 236px; }

/* 3. Tai khoan Premium (he Labs: den + lime) */
.cmo-step--premium { background: #0B0B0F; color: #fff; }
.cmo-step--premium p { color: rgba(255, 255, 255, .72); }
.cmo-step--premium .cmo-kick { color: #D4FF3A; }
.cmo-pass-wrap { position: relative; display: grid; place-items: center; padding: 58px 40px 2px; perspective: 900px; }
.cmo-pass-wrap::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 40%, rgba(212, 255, 58, .16), transparent 70%); }
.cmo-pass { position: relative; width: min(100%, 330px); aspect-ratio: 1.62; border-radius: 20px; padding: 16px 18px; overflow: hidden; color: #0B0B0F;
    background: linear-gradient(135deg, #E6FF7A 0%, #D4FF3A 45%, #B5F02A 100%); box-shadow: 0 30px 60px -24px rgba(212, 255, 58, .45), inset 0 1px 0 rgba(255, 255, 255, .6);
    transform: rotateX(8deg) rotateY(-10deg); animation: cmoPass 1.1s cubic-bezier(.2, .9, .25, 1) both; transition: transform .4s ease; }
.cmo-pass:hover { transform: rotateX(0) rotateY(0); }
@keyframes cmoPass { from { opacity: 0; transform: rotateX(30deg) rotateY(-28deg) translateY(30px) scale(.9); } }
.cmo-pass::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(11, 11, 15, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 11, 15, .06) 1px, transparent 1px); background-size: 22px 22px; }
.cmo-pass::after { content: ""; position: absolute; top: -40%; bottom: -40%; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent); transform: rotate(12deg); animation: cmoShine 3.6s ease-in-out 1s infinite; }
@keyframes cmoShine { 0% { left: -60%; } 45%, 100% { left: 130%; } }
.cmo-pass__top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.cmo-pass__brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.cmo-pass__brand img { width: 26px; height: 26px; border-radius: 7px; }
.cmo-pass__chip { white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: #0B0B0F; color: #D4FF3A; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.cmo-pass__name { position: absolute; z-index: 1; left: 18px; bottom: 16px; right: 18px; }
.cmo-pass__name small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.cmo-pass__name b { display: block; margin-top: 2px; font-size: 25px; line-height: 1; font-weight: 900; letter-spacing: -.03em; }
.cmo-pass__name span { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 700; }
.cmo-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.cmo-perk { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.cmo-perk img { display: block; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.cmo-perk span { min-width: 0; }
.cmo-perk b { display: block; font-size: 12.5px; line-height: 1.25; }
.cmo-perk small { display: block; font-size: 11.5px; line-height: 1.3; color: rgba(255, 255, 255, .55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 4. Qua tang: ve voucher */
.cmo-art--gift { height: auto; padding: 74px 40px 14px; background: radial-gradient(90% 80% at 50% 0%, #FFF1E2, transparent 75%); }
.cmo-tix { position: relative; width: 100%; max-width: 400px; margin: 0 auto; height: 150px; }
.cmo-tix .cmo-tk { position: absolute; left: 0; right: 0; transition: transform .5s cubic-bezier(.2, .9, .25, 1); }
.cmo-tix .cmo-tk:nth-child(1) { top: 0; z-index: 3; }
.cmo-tix .cmo-tk:nth-child(2) { top: 10px; z-index: 2; transform: scale(.94) translateY(12px) rotate(-3deg); opacity: .9; }
.cmo-tix .cmo-tk:nth-child(3) { top: 20px; z-index: 1; transform: scale(.88) translateY(22px) rotate(3deg); opacity: .75; }
.cmo-tk { display: flex; height: 122px; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid #F2E3D5; box-shadow: 0 20px 34px -22px rgba(193, 71, 40, .55); }
.cmo-tk__stub { position: relative; flex: 0 0 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #f5af19, #F15A24); }
.cmo-tk__stub span { font-size: 11px; font-weight: 800; letter-spacing: .14em; opacity: .95; }
.cmo-tk__stub b { font-size: 38px; line-height: 1; font-weight: 900; letter-spacing: -.03em; }
.cmo-tk__perf { position: relative; flex: 0 0 0; border-left: 2px dashed #F2E3D5; }
.cmo-tk__perf::before, .cmo-tk__perf::after { content: ""; position: absolute; left: -9px; width: 16px; height: 16px; border-radius: 50%; background: #FFF6EE; }
.cmo-tk__perf::before { top: -9px; } .cmo-tk__perf::after { bottom: -9px; }
.cmo-tk__main { flex: 1; min-width: 0; padding-right: 40px !important; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 14px 16px; color: #101828; }
.cmo-tk__main b { font-size: 15px; }
.cmo-tk__main small { font-size: 12.5px; color: #667085; }
.cmo-tk__main code { align-self: flex-start; margin-top: 4px; padding: 3px 8px; border-radius: 6px; background: #FFF4ED; color: #C4320A; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.cmo-gift-pig { position: absolute; z-index: 4; right: -22px; bottom: -4px; width: 104px; height: auto; object-fit: contain; animation: cmoBob 3.2s ease-in-out infinite; filter: drop-shadow(0 10px 12px rgba(193, 71, 40, .25)); }
.cmo-gift-n { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 8px; margin: 0 2px; border-radius: 999px; background: #F04438; color: #fff; font-size: 14px; font-weight: 800; vertical-align: 2px; }

/* 5. Cam on */
.cmo-art--bye { height: 236px; background: radial-gradient(120% 90% at 50% 100%, #FFD9C7 0%, #FFEFE3 55%, #FFF9F2 100%); }
.cmo-conf { position: absolute; inset: 0; pointer-events: none; }
.cmo-conf i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; opacity: 0; animation: cmoDrop 2.8s cubic-bezier(.3, .6, .4, 1) forwards; }
@keyframes cmoDrop { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(280px) rotate(540deg); } }
.cmo-bye-pig { position: relative; z-index: 1; width: auto; height: 176px; object-fit: contain; margin-top: 26px; filter: drop-shadow(0 18px 18px rgba(193, 71, 40, .22)); animation: cmoCheer 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes cmoCheer { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
.cmo-sign { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--cm-text); }
.cmo-sign small { display: block; font-weight: 500; color: var(--cm-muted); }

@media (max-width: 520px) {
    .cmo { padding: 0; align-items: end; }
    .cmo-card { max-width: none; border-radius: 26px 26px 0 0; max-height: 94dvh; animation-name: cmoUp; }
    .cmo[data-mode="onboard"] .cmo-card { height: min(660px, 92dvh); }
    .cmo-phones { --h: 204px; }
    .cmo-store { height: 46px; }
    @keyframes cmoUp { from { transform: translateY(100%); } }
    .cmo-body { padding: 18px 20px 0; }
    .cmo-acts { margin: 16px -20px 0; padding: 12px 20px calc(18px + env(safe-area-inset-bottom)); }
    .cmo h2 { font-size: 21px; }
    .cmo-art { height: 176px; }
    .cmo-art--app, .cmo-art--gift { height: auto; }
    .cmo-art--app { padding: 40px 20px 4px; }
    .cmo-art--gift { padding: 62px 26px 18px; }
    .cmo-gift-pig { right: -10px; width: 84px; }
    .cmo-pig { height: 132px; margin-top: 26px; } .cmo-bye-pig { height: 140px; }
    .cmo-art--bye { height: 190px; }
    .cmo-pass-wrap { padding: 52px 20px 2px; }
    .cmo-pass { width: min(100%, 280px); }
    .cmo-pass__name b { font-size: 22px; }
    .cmo-perks { gap: 8px; margin-top: 12px; }
    .cmo-perk { flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px; }
    .cmo-perk small { display: none; }
    .cmo-pass__brand { font-size: 12px; } .cmo-pass__chip { font-size: 10px; padding: 3px 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .cmo *, .cmo { animation: none !important; transition: none !important; }
}
[data-theme="dark"] .cmo-art--hi, [data-theme="dark"] .cmo-art--bye { filter: saturate(.9); }

/* ===== happening-now (resources/views/components/colorme/happening-now.blade.php) ===== */
.cmnow, .cmnow-pill { --h-bg: #fff; --h-text: #101828; --h-muted: #667085; --h-line: #EAECF0; --h-soft: #F2F4F7; --h-live: #D92D20; --h-zoom: #0B5CFF;
    font-family: "Be Vietnam Pro", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
[data-theme="dark"] .cmnow, [data-theme="dark"] .cmnow-pill { --h-bg: #18191B; --h-text: #F2F4F7; --h-muted: #98A2B3; --h-line: #2C2F33; --h-soft: #222427; --h-live: #F97066; }
.cmnow { position: fixed; inset: 0; z-index: 1040; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 10, 10, .48); opacity: 0; transition: opacity .2s ease; }
.cmnow.is-in { opacity: 1; }
.cmnow[hidden], .cmnow-pill[hidden] { display: none; }
.cmnow__card { width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto; background: var(--h-bg); color: var(--h-text); border-radius: 20px; box-shadow: 0 24px 64px rgba(0, 0, 0, .24);
    transform: translateY(12px); transition: transform .24s ease; }
.cmnow.is-in .cmnow__card { transform: none; }
.cmnow__top { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px 0 24px; }
.cmnow__tag { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--h-soft); color: var(--h-text); font-size: 13px; font-weight: 600; }
.cmnow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--h-live); }
.cmnow__dot.is-live { animation: cmnow-pulse 1.6s ease-in-out infinite; }
@keyframes cmnow-pulse { 50% { opacity: .35; } }
.cmnow__x { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--h-muted); cursor: pointer; }
.cmnow__x:hover { background: var(--h-soft); color: var(--h-text); }
.cmnow__x svg, .cmnow__meta svg, .cmnow__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.cmnow__body { padding: 12px 24px 24px; }
.cmnow__hello { margin: 0 0 16px; color: var(--h-muted); font-size: 15px; line-height: 1.5; }
.cmnow__item + .cmnow__item { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--h-line); }
.cmnow__title { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.cmnow__item + .cmnow__item .cmnow__title { font-size: 18px; }
.cmnow__sub { margin: 6px 0 0; color: var(--h-muted); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.cmnow__meta { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 0; padding: 14px 16px; border: 1px solid var(--h-line); border-radius: 14px; font-size: 14px; line-height: 1.5; }
.cmnow__meta div { display: flex; gap: 10px; align-items: flex-start; }
.cmnow__meta svg { margin-top: 2px; color: var(--h-muted); }
.cmnow__meta b { font-weight: 600; font-variant-numeric: tabular-nums; }
.cmnow__meta span { color: var(--h-muted); }
.cmnow__agenda { margin: 12px 0 0; padding: 0 0 0 20px; color: var(--h-text); font-size: 14px; line-height: 1.55; }
.cmnow__agenda li { list-style: disc; }
.cmnow__agenda li + li { margin-top: 4px; }
.cmnow__agenda .cmnow__more { list-style: none; margin-left: -20px; color: var(--h-muted); }
.cmnow__btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 16px; padding: 0 20px; border: 1px solid var(--h-line); border-radius: 12px;
    background: transparent; color: var(--h-text) !important; font-size: 16px; font-weight: 600; text-decoration: none !important; cursor: pointer; }
.cmnow__btn:hover { background: var(--h-soft); }
.cmnow__btn--zoom { border-color: transparent; background: var(--h-zoom); color: #fff !important; }
.cmnow__btn--zoom:hover { background: var(--h-zoom); opacity: .92; }
.cmnow__btn--zoom svg { fill: currentColor; stroke: none; }
.cmnow__later { display: block; width: 100%; margin-top: 8px; min-height: 44px; border: 0; background: transparent; color: var(--h-muted); font-size: 15px; font-weight: 500; cursor: pointer; }
.cmnow__later:hover { color: var(--h-text); }
.cmnow__note { margin: 10px 0 0; color: var(--h-muted); font-size: 13px; line-height: 1.5; text-align: center; }
.cmnow__capsule { display: block; margin: 12px 0 0; padding: 10px 12px; border: 1px dashed var(--h-line, #D0D5DD); border-radius: 10px; color: inherit; font-size: 13px; line-height: 1.5; text-align: center; text-decoration: none; }
.cmnow__capsule:hover { border-style: solid; color: inherit; }
.cmnow-pill { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 1030; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--h-line); border-radius: 999px;
    background: var(--h-bg); color: var(--h-text); font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, .14); cursor: pointer; }
@media (max-width: 575px) {
    .cmnow { align-items: flex-end; padding: 0; }
    .cmnow__card { max-width: none; border-radius: 20px 20px 0 0; max-height: 88vh; transform: translateY(24px); }
    .cmnow__body { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
    .cmnow-pill { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .cmnow, .cmnow__card { transition: none; } .cmnow__dot.is-live { animation: none; } }

/* ===== tool-gate (resources/views/components/colorme/tool-gate.blade.php) ===== */
.cm-gate-note { background: var(--cm-surface-2); color: var(--cm-text); border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 14px; line-height: 1.45; margin: 12px 0 20px; text-align: center; }
.cm-gate-note :is(i, .icon) { color: #F5B301; margin-right: 6px; }
#cm-gate .cmg-dialog { max-width: 420px; }
#cm-gate .cmg-dialog-head { padding: 28px 28px 6px; text-align: center; }
#cm-gate .cmg-dialog-head h3 { font-size: var(--cm-fs-h2); font-weight: var(--cm-fw-heading); line-height: 1.3; letter-spacing: -0.01em; }
.cm-gate-art { width: 52px; height: 52px; border-radius: 16px; background: var(--cm-warning-bg); color: #F5B301; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px; }
.cm-gate-perks { list-style: none; padding: 0; margin: 10px 0 0; text-align: left; display: grid; gap: 6px; color: var(--cm-text-2); font-size: 14px; }
.cm-gate-perks li { display: flex; gap: 10px; align-items: flex-start; }
.cm-gate-perks :is(i, .icon) { color: var(--cm-text); margin-top: 3px; font-size: 13px; }
.cm-gate-actions { display: grid; gap: 8px; padding: 18px 28px 22px; }
.cm-gate-primary { display: block; text-align: center; background: var(--cm-inverse); color: var(--cm-on-inverse) !important; border-radius: 12px; padding: 12px 16px; font-weight: 600; font-size: 15px; text-decoration: none; }
.cm-gate-primary:hover { background: var(--cm-inverse-hover); }
.cm-gate-secondary { border: 1px solid var(--cm-line); background: var(--cm-surface); color: var(--cm-text-2); border-radius: 12px; padding: 11px 16px; font-weight: 600; font-size: 14px; }
.cm-gate-secondary:hover { background: var(--cm-bg-subtle); }
.cm-gate-secondary--link { display: block; text-align: center; text-decoration: none; }
.cm-gate-later { border: 0; background: none; color: var(--cm-muted); font-size: 14px; padding: 6px; }
.cm-gate-later:hover { color: var(--cm-text); }
.cm-gate-invite { background: var(--cm-bg-subtle); border-radius: 12px; padding: 10px 12px; color: var(--cm-text-2); font-size: 13px; text-align: left; }

/* ===== footer (resources/views/components/colorme/footer.blade.php) ===== */
.cmf {
    /* Colours: --cm-footer-* tokens (public/css/cm-tokens.css): a dark band in both themes, lifted + hairline in dark mode */
    --cmf-bg: var(--cm-footer-bg); --cmf-line: var(--cm-footer-line); --cmf-line-2: var(--cm-footer-line-2);
    --cmf-text: var(--cm-footer-text); --cmf-muted: var(--cm-footer-muted); --cmf-dim: var(--cm-footer-dim);
    position: relative; overflow: hidden; flex: 0 0 auto;
    background: var(--cmf-bg); color: var(--cmf-muted); box-shadow: inset 0 1px 0 var(--cm-footer-edge);
    font-family: var(--cm-font);
    font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
.cmf *, .cmf *::before, .cmf *::after { box-sizing: border-box; }
.cmf a { color: inherit; text-decoration: none; }
.cmf ul { list-style: none; margin: 0; padding: 0; }
.cmf p { margin: 0; }
.cmf .cmf-ic { width: 16px; height: 16px; flex-shrink: 0; }
.cmf :focus-visible { outline: 2px solid var(--cm-footer-accent); outline-offset: 3px; border-radius: 6px; }
.cmf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* Luoi cot: MOT luoi 5 cot bang nhau cho ca footer; moi dai (thuong hieu/khoa hoc/..., cong cu) dung dung 5 cot nay
   -> mep cot thang hang. Khoa hoc chiem 2 cot (danh sach chia doi theo cot, cung khoang cach cot). */
.cmf { --cmf-gap: 32px; --cmf-ncol: 4; }
.cmf-grid, .cmf-tools-inner { display: grid; grid-template-columns: repeat(var(--cmf-ncol), minmax(0, 1fr)); column-gap: var(--cmf-gap); }
.cmf-grid { row-gap: 0; padding: 64px 0 56px; }
        .cmf-tools, .cmf-band { grid-column: 1 / -1; margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--cmf-line); }
.cmf-band-inner { display: grid; grid-template-columns: repeat(var(--cmf-ncol), minmax(0, 1fr)); column-gap: var(--cmf-gap); row-gap: 24px; }
/* Danh sach khoa hoc chiem cac cot con lai; cot con = cot luoi ngoai (cung gap) -> thang mep voi dai Cong cu */
.cmf-courses-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--cmf-ncol), minmax(0, 1fr)); column-gap: var(--cmf-gap); row-gap: 10px; align-items: start; }
.cmf .cmf-courses-list li + li { margin-top: 0; }
.cmf-band-intro p { margin: 0; }
.cmf-tools-intro, .cmf-band-intro { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.cmf-tools-intro h3, .cmf-band-intro h3 { margin: 0; }
.cmf-tools-intro .cmf-more, .cmf-band-intro .cmf-more { margin: 0; }
.cmf .cmf-see { color: var(--cmf-muted) !important; font-weight: 500; font-size: 13px; }
.cmf .cmf-see:hover { color: var(--cm-footer-strong) !important; }
.cmf-tools-inner { row-gap: 24px; }
.cmf-tools-groups { display: contents; }

.cmf-brand-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--cmf-text) !important; font-weight: 700; font-size: 16px; }
.cmf-brand-logo img { width: 40px; height: 40px; border-radius: 4px; display: block; }
.cmf-social { display: flex; gap: 8px; margin-top: 20px; }
.cmf-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--cmf-line-2); color: var(--cmf-muted);
    transition: color .2s, background-color .2s, border-color .2s; }
.cmf-social a:hover { color: var(--cm-footer-strong); background: var(--cm-footer-hover); border-color: var(--cmf-line-2); }
.cmf-app-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; font-size: 14px; font-weight: 600; color: inherit; text-decoration: none; }
.cmf-app-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.cmf-app-link + .cmf-apps { margin-top: 12px; }
.cmf-apps { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 28px; }
.cmf-apps a { display: block; border-radius: 8px; transition: opacity .2s, transform .2s; }
.cmf-apps a:hover { opacity: .85; transform: translateY(-1px); }
.cmf-apps img { display: block; width: 120px; height: auto; aspect-ratio: 78 / 23; object-fit: contain; }

/* Nhom link */
/* Tieu de cot: cung kieu, cung khoang cach o moi dai */
.cmf-group > summary, .cmf-tools-intro h3, .cmf-band-intro h3, .cmf-tg-title { list-style: none; display: flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--cmf-text); font-size: 13px; font-weight: 600; line-height: 20px; letter-spacing: .02em; text-transform: none; }
.cmf-group > summary::-webkit-details-marker { display: none; }
.cmf-group > summary .cmf-chev { display: none; margin-left: auto; transition: transform .2s; }
.cmf-links li + li { margin-top: 10px; }
.cmf-link { display: inline-flex; align-items: flex-start; gap: 10px; color: var(--cmf-muted); transition: color .15s; }
.cmf-link:hover { color: var(--cm-footer-strong); }
.cmf-link > .cmf-ai { margin-top: 2px; }
/* 2 cot CSS cung khoang cach voi luoi -> nua sau thang mep cot thu 3; moi nua chay doc doc lap */
.cmf-hotline { color: var(--cmf-text) !important; font-weight: 600; font-variant-numeric: tabular-nums; }
.cmf-hotline small { display: block; color: var(--cmf-dim); font-weight: 400; font-size: 12px; }
.cmf-hotlines { display: grid; gap: 14px; }

.cmf-tools-intro p { margin: 0; }
.cmf-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--cmf-text) !important; font-weight: 600; }
.cmf-more .cmf-ic { transition: transform .2s; }
.cmf-more:hover .cmf-ic { transform: translateX(3px); }
.cmf-ai { padding: 1px 5px; border-radius: 4px; background: color-mix(in srgb, var(--cm-footer-accent) 12%, transparent); color: var(--cm-footer-accent); font-size: 10px; font-weight: 700; line-height: 1.4; }

/* Phap ly */
.cmf-legal { padding: 8px 0 32px; border-top: 0; font-size: 12px; line-height: 1.7; color: var(--cmf-dim); }
.cmf-legal b { color: var(--cm-footer-legal); font-weight: 600; }
.cmf-legal .sep { margin: 0 6px; color: var(--cm-footer-sep); }
.cmf-legal-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 14px; }
.cmf-policies { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.cmf-policies a { color: var(--cmf-muted); transition: color .15s; }
.cmf-policies a:hover { color: var(--cm-footer-strong); }
.cmf-gov { position: absolute; }
.cmf-gov img { height: 28px; width: auto; aspect-ratio: 94 / 35; opacity: 0; }

/* Chu ColorME khong lo: SVG text, ngang dung be rong container, cat o mep duoi */
.cmf-wordmark { position: relative; margin-top: 8px; line-height: 0; user-select: none; pointer-events: none; }
.cmf-wordmark svg { display: block; width: 100%; height: auto; overflow: visible; }
.cmf-wordmark text { fill: var(--cm-footer-strong); font-family: var(--cm-font); font-weight: 800; letter-spacing: -.02em; }

@media (min-width: 768px) {
    .cmf-group > summary { pointer-events: none; cursor: default; }
    .cmf-group::details-content { content-visibility: visible; display: contents; }
}
@media (max-width: 1199.98px) {
    /* Tablet: 4 cot bang nhau cho ca hai dai; thuong hieu va gioi thieu cong cu nam tren 1 hang rieng */
    .cmf { --cmf-gap: 24px; }
}
@media (max-width: 767.98px) {
    .cmf-grid { display: block; padding: 32px 0 24px; }
    .cmf-brand { display: block; margin-bottom: 24px; }
    .cmf-apps { flex-direction: row; flex-wrap: nowrap; gap: 12px; margin: 24px 0 8px; }
    .cmf-group { border-top: 1px solid var(--cmf-line); }
    .cmf-group:last-of-type { border-bottom: 1px solid var(--cmf-line); }
    .cmf-group > summary { margin: 0; min-height: 56px; cursor: pointer; font-size: 15px; letter-spacing: 0; }
    .cmf-group > summary .cmf-chev { display: block; color: var(--cmf-dim); }
    .cmf-group[open] > summary .cmf-chev { transform: rotate(180deg); }
    .cmf-group[open] > :not(summary) { padding-bottom: 20px; }
    .cmf-band { margin: 0; padding: 0; border-top: 1px solid var(--cmf-line); }
    .cmf-band-inner { display: block; }
    .cmf-band-intro { display: none; }
    .cmf-courses-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 4px; }
    .cmf-link { min-height: 32px; }
    .cmf-tools { margin: 0; padding: 0; border-top: 1px solid var(--cmf-line); }
    .cmf-tools-inner { display: block; }
    .cmf-tools-intro { display: none; }
    .cmf-tools-groups { display: grid; grid-template-columns: 1fr; gap: 20px; }
    .cmf-tg-title { margin-bottom: 12px; color: var(--cm-footer-legal); }
    .cmf-tools .cmf-more-m { display: inline-flex; }
    .cmf-legal-row { flex-direction: column-reverse; align-items: flex-start; }
    .cmf-wordmark { margin-top: 0; padding-left: 8px; padding-right: 8px; }
    .cmf-legal { border-top: 0; }
}
.cmf-more-m { display: none; }
@media (prefers-reduced-motion: reduce) { .cmf * { transition: none !important; } }


/* ===== human (resources/views/components/colorme/human.blade.php) ===== */
.cm-human-wrap { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 16px; background: rgba(16, 24, 40, .45); }
.cm-human-wrap[hidden] { display: none; }
.cm-human-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 20px 16px; border-radius: 18px; background: var(--cm-elevated, #fff); color: var(--cm-text, #101828); box-shadow: 0 24px 60px -20px rgba(16, 24, 40, .45); max-width: 100%; }
.cm-human-card p { margin: 0; font-size: 14.5px; font-weight: 600; text-align: center; }

