/* TAKI Academy, kho quà tặng: giao diện công khai (mobile-first). */
:root {
  --navy: #1b2559;
  --ink: #37417a;
  --muted: #5f6a9a;
  --line: #e5e8f3;
  --bg: #f5f6fb;
  --blue: #2f5bff;
  --violet: #6d3df5;
  --grad: linear-gradient(90deg, #2f5bff, #6d3df5);
  --grad-d: linear-gradient(135deg, #2f5bff, #6d3df5);
  --green: #12763f;
  --green-bg: #e6f6ed;
  --amber: #8f4d00;
  --amber-bg: #fff2dc;
  --red: #c4302b;
  --red-bg: #fdeceb;
  --r: 16px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgba(27, 37, 89, .05), 0 10px 28px rgba(27, 37, 89, .07);
  --shadow-up: 0 2px 4px rgba(27, 37, 89, .05), 0 20px 44px rgba(47, 91, 255, .17);
  --display: 'Unbounded', 'Be Vietnam Pro', system-ui, sans-serif;
  --body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hdr: 60px;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
body {
  margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.6; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html.is-locked body { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); line-height: 1.25; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #8aa2ff; outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: #fff; color: var(--navy); padding: 10px 14px; border-radius: 10px; font-weight: 700; box-shadow: var(--shadow); }
.skip:focus { top: 10px; }
.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.noscript { padding: 24px 0; color: var(--navy); font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(27, 37, 89, .07);
}
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--hdr); }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--navy); }
.logo__mark { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text b { font: 800 14px/1.1 var(--display); letter-spacing: .01em; white-space: nowrap; }
.logo__text small { margin-top: 4px; font: 700 10.5px/1.2 var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.hotline {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; background: #eef2ff; color: var(--blue); font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: background .2s;
}
.hotline:hover { background: #e2e9ff; }
@media (max-width: 400px) {
  .hotline { padding: 0 12px; gap: 6px; font-size: 13px; }
  .logo { gap: 8px; }
  .logo__text b { font-size: 13px; }
}
@media (max-width: 345px) {
  .hotline { width: 44px; padding: 0; justify-content: center; }
  .hotline span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Nút, nhãn ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border: 0; border-radius: 14px; font: 700 15px/1.2 var(--body); text-align: center; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s, opacity .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(79, 70, 229, .3); }
.btn--ghost { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1.5px #cdd6ff; }
.btn--link { background: transparent; color: var(--blue); min-height: 44px; }
.btn--muted { background: #e8ebf6; color: #5b658f; cursor: not-allowed; box-shadow: none; }
.btn--lg { min-height: 54px; font-size: 16px; border-radius: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { cursor: not-allowed; }
.btn--primary[disabled] { opacity: .75; }
@media (hover: hover) {
  .btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(79, 70, 229, .4); }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }
  .btn--link:hover { background: #eef2ff; }
}
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn__stack { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; min-width: 0; }
.btn__stack small { font-weight: 500; font-size: 12.5px; opacity: .85; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #fff;
  color: var(--blue); font-weight: 700; font-size: 13px; box-shadow: 0 2px 10px rgba(47, 91, 255, .13);
}
.status { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.status--ok { background: var(--green-bg); color: var(--green); }
.status--warn { background: var(--amber-bg); color: var(--amber); }
.status--off { background: #eceef6; color: #566089; }
.meta { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.meta .icon { width: 15px; height: 15px; }
.meta--ok { background: var(--green-bg); color: var(--green); padding: 3px 10px; border-radius: 999px; font-weight: 700; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 30px 0 38px; background: linear-gradient(180deg, #e9edff 0%, var(--bg) 100%); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__bg::before, .hero__bg::after { content: ''; position: absolute; border-radius: 50%; filter: blur(46px); opacity: .5; animation: drift 14s ease-in-out infinite alternate; }
.hero__bg::before { width: 320px; height: 320px; left: -110px; top: -130px; background: #7f9bff; }
.hero__bg::after { width: 280px; height: 280px; right: -90px; top: 10px; background: #b99cff; animation-delay: -6s; }
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(47, 91, 255, .2) 1.2px, transparent 1.6px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.hero__text { max-width: 640px; }
.hero__title {
  margin-top: 16px; font: 800 clamp(25px, 6.6vw, 42px)/1.28 var(--display); letter-spacing: -.01em; color: var(--navy);
  text-wrap: balance;
}
.hero__sub { margin-top: 14px; font-size: clamp(15.5px, 2.4vw, 18px); color: var(--ink); max-width: 56ch; }
.mini-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; max-width: 460px; }
.mini-steps li {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px 10px; border-radius: 16px; text-align: center;
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(47, 91, 255, .13); color: var(--navy); font-weight: 600; font-size: 13px; line-height: 1.3;
}
.mini-steps b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad-d); color: #fff; font-size: 13.5px; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--blue); font-weight: 700; font-size: 14px; box-shadow: 0 2px 10px rgba(47, 91, 255, .13); }
.hero--compact { padding: 26px 0 30px; }
.hero--compact .hero__title { font-size: clamp(23px, 5.6vw, 34px); }
.hero--compact .hero__art { display: none; }
.hero__art { display: none; }
.art-bob { animation: bob 5s ease-in-out infinite; }
.art-float-a { animation: float 6s ease-in-out infinite; }
.art-float-b { animation: float 7s ease-in-out -2s infinite; }
.art-twinkle { transform-box: fill-box; transform-origin: center; animation: twinkle 3.2s ease-in-out infinite; }
.art-twinkle--b { animation-delay: -1.4s; }
@media (min-width: 860px) {
  .hero { padding: 56px 0 64px; }
  .hero__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 32px; }
  .hero__art { display: block; justify-self: center; width: min(100%, 400px); }
  .hero__art svg { width: 100%; height: auto; overflow: visible; }
}

/* ---------- Thanh lọc khóa học ---------- */
.filter { position: sticky; top: var(--hdr); z-index: 30; background: rgba(245, 246, 251, .93); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.chips {
  position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 10px 28px 10px 16px; margin: 0 -16px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--navy); font: 600 14px/1 var(--body); white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.chip i { font-style: normal; font-size: 12px; font-weight: 700; min-width: 24px; padding: 4px 7px; text-align: center; border-radius: 999px; background: #eef1ff; color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, .28); }
.chip[aria-pressed="true"] i { background: rgba(255, 255, 255, .26); color: #fff; }
@media (hover: hover) { .chip:hover:not([aria-pressed="true"]) { border-color: #b9c5ff; transform: translateY(-1px); } }
@media (min-width: 900px) {
  .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 12px 0; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Danh sách quà ---------- */
.page { padding: 26px 0 56px; }
.groups { display: block; }
.group { margin-top: 38px; }
.group:first-child { margin-top: 0; }
.group__head { position: relative; margin-bottom: 18px; padding-left: 16px; }
.group__head::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 5px; background: var(--grad-d); }
.group__title { font: 800 clamp(19px, 4.8vw, 24px)/1.3 var(--display); }
.group__desc { margin-top: 6px; max-width: 70ch; color: var(--muted); font-size: 15px; }
.grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }

.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow); animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 55ms);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
}
.card.is-fresh { animation-duration: .25s; animation-delay: 0s; }
@media (hover: hover) { .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); } }
.card__cover { position: relative; display: block; }
.tag {
  position: absolute; left: 12px; top: 12px; z-index: 2; max-width: calc(100% - 24px); padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--navy); font-size: 12px; font-weight: 700; line-height: 1.3;
  box-shadow: 0 2px 8px rgba(27, 37, 89, .12); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tag--solid { position: static; display: inline-block; background: #eef2ff; color: var(--blue); box-shadow: none; max-width: 100%; }
.card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 18px; }
.card__title { font: 700 18px/1.38 var(--body); }
.card__title a { color: var(--navy); }
.card__title a::after { content: none; }
.card__title a:hover { color: var(--blue); }
.card__sum { color: var(--ink); font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.card__act { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 6px; }
.card__act .btn { flex: 1; min-width: 0; }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.more .icon { width: 16px; height: 16px; transition: transform .2s; }
@media (hover: hover) { .more:hover .icon { transform: translateX(3px); } }
.card--ended .cover, .card--soldout .cover { filter: grayscale(.65) opacity(.85); }
.card--ended .card__title a, .card--soldout .card__title a { color: #4a547f; }

/* Ảnh bìa */
.cover { position: relative; overflow: hidden; background: #e3e8ff; }
.cover::before { content: ''; display: block; padding-top: 56.25%; }
.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover--fb { background: linear-gradient(135deg, var(--c1), var(--c2)); }
.cover--fb::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 12% 0%, rgba(255, 255, 255, .32), transparent 62%); }
.cover__ring { position: absolute; right: -14%; bottom: -46%; width: 72%; height: 0; padding-bottom: 72%; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .07); }
.cover__ring--b { right: auto; left: -12%; top: -50%; bottom: auto; width: 46%; padding-bottom: 46%; }
.cover__icon {
  position: absolute; left: 50%; top: 50%; z-index: 1; display: grid; place-items: center; width: 68px; height: 68px; transform: translate(-50%, -50%);
  border-radius: 20px; background: rgba(255, 255, 255, .2); border: 1.5px solid rgba(255, 255, 255, .5); color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}
.cover__icon .icon { width: 34px; height: 34px; stroke-width: 1.7; }
.cover--lg .cover__icon { width: 96px; height: 96px; border-radius: 28px; }
.cover--lg .cover__icon .icon { width: 48px; height: 48px; }
.tone-0 { --c1: #2f5bff; --c2: #6d3df5; }
.tone-1 { --c1: #0e9c8c; --c2: #2f5bff; }
.tone-2 { --c1: #ff7a18; --c2: #ec3f87; }
.tone-3 { --c1: #7a3cf5; --c2: #df45b4; }
.tone-4 { --c1: #14a368; --c2: #0e8fa3; }
.tone-5 { --c1: #f5a60f; --c2: #ef6a14; }

/* Khung xương */
.skel { background: linear-gradient(90deg, #eceffa 25%, #f7f8fd 37%, #eceffa 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 10px; }
.skel--cover { width: 100%; aspect-ratio: 16 / 9; border-radius: 0; }
.skel--line { height: 14px; }
.skel--w80 { width: 80%; } .skel--w60 { width: 60%; }
.skel--btn { height: 48px; border-radius: 14px; margin-top: 8px; }
.skel--circle { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 8px; }
.skel--center { margin-inline: auto; }
.card--skel { animation: none; }
.card--skel:hover { transform: none; box-shadow: var(--shadow); }

/* Trạng thái rỗng, lỗi, không tìm thấy */
.statebox { max-width: 520px; margin: 24px auto; padding: 36px 24px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.statebox__ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #eef2ff; color: var(--blue); }
.statebox__ico .icon { width: 30px; height: 30px; }
.statebox__ico.is-warn { background: var(--amber-bg); color: var(--amber); }
.statebox__ico.is-ok { background: var(--green-bg); color: var(--green); }
.statebox__title { margin-top: 18px; font-size: 20px; font-weight: 800; }
.statebox__text { margin-top: 8px; color: var(--muted); }
.statebox__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

/* Khối hỗ trợ cuối trang chủ */
.help { display: flex; gap: 16px; margin-top: 44px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.help__ico { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: #eef2ff; color: var(--blue); }
.help__body h2 { font-size: 17px; font-weight: 800; }
.help__body p { margin-top: 6px; color: var(--ink); font-size: 15px; }
.help__body a { font-weight: 700; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(16, 23, 66, .58); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .2s ease both; }
.modal__panel {
  position: relative; width: 100%; max-height: 94vh; max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); background: #fff; border-radius: 24px 24px 0 0; box-shadow: 0 -10px 40px rgba(16, 23, 66, .25);
  animation: sheet .3s cubic-bezier(.2, .8, .2, 1) both;
}
.modal__panel:focus { outline: none; }
.modal__panel::before { content: ''; display: block; width: 40px; height: 4px; margin: -10px auto 14px; border-radius: 4px; background: #d6dbef; }
.modal__x {
  position: absolute; right: 8px; top: 8px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: #f0f2fa; color: var(--navy); transition: background .2s;
}
.modal__x:hover { background: #e3e7f6; }
.modal__head { padding-right: 40px; margin-bottom: 16px; }
.modal__eyebrow { font: 700 12px/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.modal__title { margin-top: 4px; font: 800 19px/1.35 var(--body); }
.modal.is-closing .modal__backdrop { animation: fadeOut .18s ease both; }
.modal.is-closing .modal__panel { animation: sheetOut .18s ease both; }
@media (min-width: 640px) {
  .modal { align-items: center; padding: 24px; }
  .modal__panel { width: min(480px, 100%); max-height: 90vh; padding: 28px 28px 28px; border-radius: 24px; animation-name: pop; }
  .modal__panel::before { display: none; }
  .modal.is-closing .modal__panel { animation-name: popOut; }
}

/* ---------- Biểu mẫu nhận quà ---------- */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.field { min-width: 0; }
.label { display: block; margin-bottom: 7px; font-weight: 700; font-size: 14px; color: var(--navy); }
.input {
  width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font: 500 16px/1.4 var(--body); color: var(--navy); transition: border-color .15s, box-shadow .15s, background .15s;
}
.input::placeholder { color: #8790b8; font-weight: 400; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 91, 255, .14); }
.has-error .input { border-color: var(--red); background: #fffafa; }
.has-error .input:focus { box-shadow: 0 0 0 4px rgba(196, 48, 43, .13); }
.fmsg { margin-top: 6px; color: var(--red); font-size: 13.5px; font-weight: 500; line-height: 1.4; }
.fmsg:empty { display: none; }
.sug { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--amber-bg); color: #5b3500; font-size: 14px; line-height: 1.4; }
.sug b { word-break: break-all; }
.sug__btn { min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: #fff; color: var(--blue); font-weight: 700; font-size: 14px; box-shadow: inset 0 0 0 1.5px #cdd6ff; }
.sug__btn:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }
.banner { padding: 12px 14px; border-radius: 12px; background: var(--red-bg); color: #8f1f1b; font-size: 14.5px; font-weight: 500; line-height: 1.45; }
.consent { color: var(--muted); font-size: 13px; line-height: 1.55; }
.consent a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.claim__head { margin-bottom: 18px; }
.claim__title { font: 800 21px/1.3 var(--body); }
.claim__sub { margin-top: 6px; color: var(--muted); font-size: 14.5px; }

/* Thành công */
.success { text-align: center; }
.ok-check {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--grad-d); color: #fff; box-shadow: 0 10px 24px rgba(79, 70, 229, .35);
}
.ok-check::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid rgba(79, 70, 229, .22); animation: ring 1.8s ease-out .3s 2; }
.ok-check .icon { width: 32px; height: 32px; stroke-width: 3; }
.ok-check .icon path { stroke-dasharray: 26; stroke-dashoffset: 26; animation: draw .5s .15s ease forwards; }
.success__title { font: 800 20px/1.4 var(--body); }
.success__mail { display: inline-block; max-width: 100%; color: var(--blue); word-break: break-all; }
.success__gift { margin-top: 6px; color: var(--muted); font-size: 14px; }
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 20px 0 20px; padding: 0; list-style: none; text-align: left; }
.steps li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #f4f6ff; color: var(--navy); font-size: 14.5px; line-height: 1.45; font-weight: 500; }
.steps b { display: grid; place-items: center; width: 24px; height: 24px; flex: none; margin-top: 1px; border-radius: 50%; background: var(--grad-d); color: #fff; font-size: 12.5px; }
.success__acts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.resend__msg { min-height: 0; margin: 12px 0 4px; font-size: 14px; font-weight: 500; line-height: 1.45; }
.resend__msg:empty { display: none; }
.resend__msg.is-ok { color: var(--green); }
.resend__msg.is-warn { color: var(--amber); }
.resend__msg.is-err { color: var(--red); }
.success .btn--link { margin-top: 6px; }

/* Quà đã đóng */
.closed { text-align: center; padding: 6px 0 4px; }
.closed__ico { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #eceef6; color: #566089; }
.closed__ico .icon { width: 28px; height: 28px; }
.closed__title { margin-top: 14px; font: 800 19px/1.35 var(--body); }
.closed__text { margin: 8px 0 20px; color: var(--muted); font-size: 15px; }

/* ---------- Trang riêng của quà ---------- */
.gift { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.gift__info { min-width: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 600; }
.gift__cover .cover { border-radius: 22px; box-shadow: var(--shadow); }
.gift__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; }
.gift__title { margin-top: 14px; font: 800 clamp(23px, 6vw, 34px)/1.3 var(--body); letter-spacing: -.01em; text-wrap: balance; }
.gift__lead { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--navy); font-weight: 500; }
.prose { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; font-size: 16px; line-height: 1.7; }
.prose p { overflow-wrap: anywhere; }
.plist { margin: 0; padding-left: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.gets { margin-top: 26px; padding: 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.gets__title { font-size: 17px; font-weight: 800; }
.gets__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 16px 0 0; padding: 0; list-style: none; }
.gets__item { display: flex; align-items: flex-start; gap: 14px; }
.gets__ico { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: #eef2ff; color: var(--blue); }
.gets__item b { display: block; color: var(--navy); font-size: 15.5px; }
.gets__item span span, .gets__item div span { display: block; margin-top: 1px; color: var(--muted); font-size: 14px; }
.gift__aside { min-width: 0; scroll-margin-top: calc(var(--hdr) + 12px); }
.claim-card {
  position: relative; padding: 24px 20px; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(27, 37, 89, .04), 0 24px 54px rgba(47, 91, 255, .13);
}
.claim-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad); }
.related { margin-top: 44px; }
.related__title { margin-bottom: 18px; font: 800 clamp(19px, 4.8vw, 24px)/1.3 var(--display); }
.allgifts { margin-top: 32px; }
.allgifts a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }
.fab {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(245, 246, 251, 0), rgba(245, 246, 251, .96) 38%); pointer-events: none;
  transition: transform .3s ease, opacity .3s ease;
}
.fab .btn { width: 100%; pointer-events: auto; box-shadow: 0 12px 28px rgba(79, 70, 229, .4); }
.fab.is-hidden { transform: translateY(110%); opacity: 0; }
.fab.is-hidden .btn { pointer-events: none; }
body.has-fab { padding-bottom: 84px; }
@media (min-width: 900px) {
  .gift { grid-template-columns: minmax(0, 1fr) 410px; gap: 44px; align-items: start; padding-top: 6px; }
  .gift__aside { position: sticky; top: calc(var(--hdr) + 22px); }
  .fab { display: none; }
  body.has-fab { padding-bottom: 0; }
}

/* ---------- Chân trang ---------- */
.site-footer { margin-top: 24px; padding: 40px 0 28px; background: linear-gradient(180deg, #1a2468, #121a52); color: #c9d0f5; font-size: 14.5px; }
.footer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.footer p { margin-top: 4px; }
.footer__brand .logo { margin-bottom: 8px; }
.footer__brand p { max-width: 42ch; }
.footer__company { color: #fff; font-weight: 700; letter-spacing: .01em; }
.footer__col { display: grid; gap: 2px; align-content: start; }
.footer__col h2 { margin-bottom: 6px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.footer a { display: flex; align-items: center; gap: 6px; min-height: 40px; color: #dfe4ff; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .logo { color: #fff; }
.logo--light .logo__text small { color: #aab4ee; }
.footer__bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #aab4ee; display: grid; gap: 6px; }
.footer__note { color: #dfe4ff; }
@media (min-width: 760px) {
  .footer { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
  .footer__bottom { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- Trang nhận quà ---------- */
.nhan-main { position: relative; min-height: calc(100vh - var(--hdr) - 240px); overflow: hidden; }
.nhan-bg { position: absolute; inset: 0 0 auto 0; height: 360px; pointer-events: none; background: linear-gradient(180deg, #e7ecff, rgba(245, 246, 251, 0)); }
.nhan-bg::before { content: ''; position: absolute; left: 50%; top: -180px; width: 520px; height: 420px; margin-left: -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(109, 61, 245, .25), transparent); filter: blur(10px); }
.rcv { position: relative; max-width: 680px; margin: 0 auto; padding: 30px 0 52px; }
.rcv-hello { text-align: center; margin-bottom: 22px; }
.rcv-hello__title { font: 800 clamp(24px, 6.4vw, 34px)/1.3 var(--display); word-break: break-word; }
.rcv-hello__sub { margin-top: 8px; color: var(--muted); font-size: 16px; }
.rcv-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 2px 4px rgba(27, 37, 89, .04), 0 24px 54px rgba(47, 91, 255, .12); }
.rcv-card__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 22px 20px 24px; }
.rcv-card__body .tag { justify-self: start; }
.rcv-card__title { font: 800 22px/1.35 var(--body); }
.rcv-card__sum { color: var(--ink); }
.rcv-note { width: 100%; padding: 16px; border-radius: 14px; background: #f4f6ff; }
.rcv-note h3 { font-size: 14px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--blue); }
.rcv-note .prose { margin-top: 10px; font-size: 15.5px; gap: 10px; }
.rcv-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; margin-top: 6px; }
.rcv-expire { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.rcv-state { padding: 34px 22px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.rcv-state__title { margin-top: 18px; font: 800 22px/1.35 var(--body); }
.rcv-state__text { margin-top: 8px; color: var(--muted); }
.support { margin-top: 26px; padding: 22px 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.support__title { font-size: 17px; font-weight: 800; }
.support__sub { margin-top: 4px; color: var(--muted); font-size: 14.5px; }
.support__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 16px; }
.support__item { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border-radius: 14px; background: #f4f6ff; color: var(--navy); }
.support__item .icon { width: 22px; height: 22px; color: var(--blue); }
.support__item small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.3; }
.support__item b { display: block; font-size: 15px; line-height: 1.3; word-break: break-all; }
.page-nhan .allgifts { text-align: center; }
@media (min-width: 640px) {
  .support__list { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
}

/* ---------- Trang tài liệu (chính sách bảo mật) ---------- */
.doc-hero { position: relative; overflow: hidden; padding: 40px 0 36px; background: linear-gradient(135deg, #2a3ac8 0%, #2f5bff 48%, #6d3df5 100%); color: #fff; }
.doc-hero::after { content: ''; position: absolute; right: -80px; top: -90px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.doc-hero h1 { position: relative; color: #fff; font: 800 clamp(24px, 5.6vw, 38px)/1.3 var(--display); }
.doc-hero p { position: relative; margin-top: 10px; opacity: .92; font-size: 15.5px; }
.doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 30px 0 56px; }
.toc { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; font-size: 14.5px; }
.toc b { display: block; margin-bottom: 8px; color: var(--navy); }
.toc ol { display: grid; gap: 2px; margin: 0; padding-left: 20px; }
.toc a { display: inline-block; min-height: 30px; padding: 3px 0; color: var(--ink); }
@media (max-width: 899px) { .toc ol { display: block; columns: 2; column-gap: 12px; padding-left: 18px; } .toc li { break-inside: avoid; } .toc a { font-size: 14px; line-height: 1.35; } }
.toc a:hover { color: var(--blue); }
.doc article { min-width: 0; max-width: 780px; padding: 26px 20px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.doc h2 { margin: 36px 0 12px; font-size: 20px; font-weight: 800; scroll-margin-top: calc(var(--hdr) + 16px); }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { font-size: 15.5px; line-height: 1.75; }
.doc p + p { margin-top: 10px; }
.doc ul { display: grid; gap: 6px; margin: 10px 0; padding-left: 20px; }
.doc table { width: 100%; margin: 12px 0; border-collapse: collapse; font-size: 14.5px; }
.doc th, .doc td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc th { background: #f4f6ff; color: var(--navy); }
.doc td:first-child { width: 34%; font-weight: 600; color: var(--navy); }
.callout { margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: #f4f6ff; color: var(--navy); }
@media (min-width: 900px) {
  .doc { grid-template-columns: 250px minmax(0, 780px); justify-content: center; gap: 40px; padding-top: 44px; align-items: start; }
  .toc { position: sticky; top: calc(var(--hdr) + 20px); }
  .doc article { padding: 36px 40px; }
}
@media (max-width: 560px) {
  .doc table, .doc tbody, .doc tr, .doc td, .doc th { display: block; width: 100%; }
  .doc tr:first-child { display: none; }
  .doc tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .doc td { padding: 2px 0; border: 0; }
  .doc td:first-child { width: 100%; }
}

/* ---------- Trang 404 ---------- */
.nf { display: grid; place-items: center; min-height: calc(100vh - var(--hdr) - 220px); padding: 40px 0; text-align: center; }
.nf__art { width: 150px; margin: 0 auto 6px; animation: bob 5s ease-in-out infinite; }
.nf__code { font: 800 clamp(64px, 18vw, 110px)/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding: .1em 0; }
.nf h1 { margin-top: 6px; font-size: clamp(22px, 5vw, 28px); font-weight: 800; }
.nf p:not(.nf__code) { max-width: 44ch; margin: 12px auto 26px; color: var(--muted); }

/* ---------- Chuyển động ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetOut { to { transform: translateY(100%); } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes popOut { to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.7) rotate(18deg); opacity: .6; } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(30px, 24px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .ok-check .icon path { stroke-dashoffset: 0; }
  .skel { animation: none; }
}
