/* =========================================================
   FSS · Thank you, Mentor
   Nhận diện: xanh lá #7CA541 · tím #5B449B · Poppins
   ========================================================= */
:root {
  --green: #7CA541;
  --green-d: #5E8530;
  --green-dd: #3F5E1E;
  --green-l: #EEF5E4;
  --green-ll: #F6FAF0;
  --purple: #5B449B;
  --purple-d: #43327A;
  --purple-l: #EEEAF7;
  --gold: #E8B73F;
  --pink: #F2A7C3;
  --cream: #FBFAF5;
  --paper: #FFFFFF;
  --ink: #1E2A17;
  --ink-2: #3B4734;
  --muted: #6A7563;
  --line: #E3E8DA;
  --shadow-sm: 0 2px 8px rgba(30, 42, 23, .06);
  --shadow: 0 10px 30px -10px rgba(30, 42, 23, .18), 0 2px 6px rgba(30, 42, 23, .05);
  --shadow-lg: 0 30px 60px -20px rgba(43, 50, 30, .35);
  --r: 18px;
  --r-sm: 12px;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  --ease: cubic-bezier(.22, .9, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--green-d); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }

.demo-banner {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 80;
  background: var(--ink); color: #fff; font-size: 12.5px; padding: 7px 14px; border-radius: 99px;
  box-shadow: var(--shadow); opacity: .9; white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--paper); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 99px; padding: 12px 22px; font-weight: 600; font-size: 15px;
  background: var(--bg); color: var(--fg); text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 45%, transparent); outline-offset: 2px; }
.btn--primary { --bg: var(--green); --fg: #fff; box-shadow: 0 8px 20px -8px rgba(94, 133, 48, .7); }
.btn--primary:hover { --bg: var(--green-d); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--green); --fg: var(--green-d); }
.btn--white { --bg: #fff; --fg: var(--purple-d); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.link-btn { background: none; border: 0; color: var(--purple); font-size: 13px; padding: 4px 0; text-decoration: underline; }
.link-back { display: inline-block; margin-top: 18px; font-size: 14px; color: var(--muted); text-decoration: none; }
.link-back:hover { color: var(--green-d); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 20px; height: 70px; }
.nav__brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav__brand img { height: 35px; width: auto; }
.nav__sep { width: 1px; height: 26px; background: var(--line); }
.nav__event { font-size: 15px; color: var(--ink-2); }
.nav__event b { color: var(--purple); font-weight: 600; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; }
.nav__links a { text-decoration: none; color: var(--ink-2); position: relative; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--green); transition: right .25s var(--ease); }
.nav__links a:hover::after { right: 0; }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .nav__event { display: none; }
  .nav__sep { display: none; }
}

/* ---------- Typography helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); margin: 0 0 18px; background: var(--purple-l); padding: 6px 12px; border-radius: 99px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 3px; background: var(--green); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); margin: 0 0 10px; }
.kicker--light { color: #D9D0F2; }
.h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; margin: 0 0 14px; }
.h2--light { color: #fff; }
.h2--light em { color: #CFE6A9; }
.h3 { font-size: 24px; line-height: 1.25; font-weight: 600; margin: 0 0 6px; letter-spacing: -.01em; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 90px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; width: 900px; height: 900px; right: -320px; top: -360px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 165, 65, .20), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; width: 700px; height: 700px; left: -320px; bottom: -200px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(91, 68, 155, .12), transparent 70%);
}
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; min-height: 560px; }
.hero__title { font-size: clamp(40px, 6.2vw, 76px); line-height: 1.04; font-weight: 600; letter-spacing: -.035em; margin: 0 0 22px; }
.hero__title em { display: inline-block; color: var(--purple); }
.hero__lead { font-size: 18px; color: var(--ink-2); max-width: 520px; margin: 0 0 32px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stat { margin: 28px 0 0; font-size: 14.5px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hero__stat::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--green); box-shadow: 0 0 0 5px rgba(124, 165, 65, .18); animation: pulse 2s infinite; }
.hero__stat b { color: var(--ink); font-size: 18px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(124, 165, 65, 0); } }

.hero__art { position: relative; height: 520px; }
.tiles { position: absolute; inset: 0; }
.tile {
  position: absolute; width: 27%; aspect-ratio: 1; border-radius: 22%;
  background: linear-gradient(145deg, #8DB653, var(--green));
  box-shadow: inset 0 -8px 18px rgba(0, 0, 0, .07), 0 18px 30px -18px rgba(63, 94, 30, .6);
  animation: float 7s ease-in-out infinite;
}
.tile.purple { background: linear-gradient(145deg, #7059B0, var(--purple)); box-shadow: inset 0 -8px 18px rgba(0, 0, 0, .1), 0 18px 30px -18px rgba(67, 50, 122, .7); }
.t1 { left: 8%;  top: 4%;  animation-delay: -1s; }
.t2 { left: 38%; top: 4%;  animation-delay: -3s; }
.t3 { left: 68%; top: 4%;  animation-delay: -5s; }
.t4 { left: 8%;  top: 36%; animation-delay: -2s; }
.t5 { left: 38%; top: 36%; animation-delay: -4s; }
.t6 { left: 8%;  top: 68%; animation-delay: -6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.qcard {
  position: absolute; margin: 0; background: #fff; border-radius: 16px; padding: 16px 18px; width: 270px;
  box-shadow: var(--shadow-lg); font-size: 14.5px; line-height: 1.5; animation: float 8s ease-in-out infinite;
}
.qcard blockquote { margin: 0 0 6px; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink); }
.qcard figcaption { font-size: 12.5px; color: var(--muted); }
.q1 { right: -4%; top: 12%; animation-delay: -2s; }
.q2 { left: 26%; top: 56%; animation-delay: -4s; border-left: 4px solid var(--purple); }
.q3 { right: 2%; bottom: 0; animation-delay: -6s; width: 230px; border-left: 4px solid var(--green); }
.hero__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, var(--cream)); }

@media (max-width: 900px) {
  .hero { padding: 28px 0 40px; }
  .hero__in { grid-template-columns: 1fr; min-height: 0; gap: 10px; }
  .hero__art { height: 360px; order: -1; margin: 0 auto; width: min(420px, 100%); }
  .qcard { width: 210px; font-size: 13px; padding: 12px 14px; }
  .qcard blockquote { font-size: 15px; }
  .q1 { right: 0; top: 6%; }
  .q2 { left: 18%; top: 54%; }
  .q3 { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section--tint { background: linear-gradient(180deg, var(--green-ll), #F3F7EC); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
@media (max-width: 700px) { .section { padding: 64px 0; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.step { background: var(--paper); border-radius: var(--r); padding: 30px 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step::after { content: ''; position: absolute; right: -18px; top: -18px; width: 70px; height: 70px; border-radius: 22%; background: var(--green-l); }
.step:nth-child(2)::after { background: var(--purple-l); }
.step__no { font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--green); position: relative; z-index: 1; }
.step:nth-child(2) .step__no { color: var(--purple); }
.step h3 { font-size: 19px; margin: 10px 0 8px; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Search ---------- */
.search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 99px; padding: 0 18px; height: 50px; min-width: min(320px, 100%); color: var(--muted); transition: border-color .2s; }
.search:focus-within { border-color: var(--green); }
.search input { border: 0; outline: 0; font: inherit; font-size: 15px; flex: 1; background: transparent; color: var(--ink); min-width: 0; }

/* ---------- Mentor grid ---------- */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.mcard {
  background: #fff; border-radius: var(--r); padding: 26px 20px 22px; text-align: center; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; display: flex; flex-direction: column; align-items: center;
  animation: rise .5s var(--ease) both;
}
.mcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.mcard .avatar { width: 96px; height: 96px; margin-bottom: 14px; font-size: 32px; }
.mcard h3 { font-size: 17px; margin: 0 0 2px; font-weight: 600; }
.mcard p { margin: 0 0 16px; font-size: 13.5px; color: var(--muted); min-height: 20px; }
.mcard .btn { margin-top: auto; }
.mcard__count { font-size: 12px; color: var(--green-d); background: var(--green-l); padding: 3px 10px; border-radius: 99px; margin-bottom: 14px; }
.skeleton { height: 250px; border-radius: var(--r); background: linear-gradient(90deg, #EEF2E8, #F7F9F3, #EEF2E8); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Avatar ---------- */
.avatar {
  --c1: var(--green); --c2: #9BC264;
  position: relative; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--c2), var(--c1)); color: #fff; font-weight: 600; letter-spacing: .02em;
}
.avatar.is-purple { --c1: var(--purple); --c2: #8572C4; }
.avatar img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.avatar--sq { border-radius: 26%; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 6%; right: 6%; top: 15px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.timeline li { position: relative; padding-top: 48px; text-align: center; }
.timeline li::before { content: ''; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 8px; background: #fff; border: 3px solid var(--line); }
.timeline li.is-done::before { background: var(--green); border-color: var(--green); }
.timeline li.is-now::before { background: var(--purple); border-color: var(--purple); box-shadow: 0 0 0 7px var(--purple-l); }
.timeline b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.timeline span { color: var(--muted); font-size: 15px; }
@media (max-width: 700px) {
  .timeline { grid-template-columns: 1fr; gap: 26px; }
  .timeline::before { left: 11px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
  .timeline li { padding: 0 0 0 46px; text-align: left; }
  .timeline li::before { left: 0; top: 2px; transform: none; }
}

/* ---------- Portal ---------- */
.portal {
  position: relative; overflow: hidden; border-radius: 28px; padding: 56px; color: #E9E4F7;
  background: radial-gradient(120% 140% at 100% 0%, #6E58B4 0%, var(--purple) 40%, #3A2A6B 100%);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.portal::before, .portal::after { content: ''; position: absolute; border-radius: 26%; background: rgba(124, 165, 65, .9); }
.portal::before { width: 120px; height: 120px; right: -30px; bottom: -30px; }
.portal::after { width: 60px; height: 60px; right: 110px; bottom: -20px; background: rgba(255, 255, 255, .12); }
.portal__copy p:last-child { margin: 0; font-size: 16.5px; }
.portal__form { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 860px) { .portal { grid-template-columns: 1fr; padding: 34px 24px; } }

.cta-final { text-align: center; padding-top: 30px; }
.cta-final p { color: var(--muted); margin: 0 0 26px; font-size: 17px; }

/* ---------- Forms ---------- */
.input {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 13px 16px; outline: 0; transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(124, 165, 65, .14); }
.input--lg { padding: 16px 20px; font-size: 16.5px; border-radius: 14px; }
.input:disabled { background: #F4F5F1; color: var(--muted); }
.textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field { margin-bottom: 18px; }
.label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 8px; }
.label small { font-weight: 400; color: var(--muted); }
.field__meta { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-top: 8px; }
.counter { font-size: 12.5px; color: var(--muted); white-space: nowrap; padding-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--green-ll); color: var(--ink-2); font-size: 12.5px; padding: 5px 11px; border-radius: 99px; transition: all .2s; }
.chip:hover { border-color: var(--green); color: var(--green-dd); background: var(--green-l); }
.form-error { color: #B3261E; font-size: 14px; min-height: 0; margin: 0 0 12px; }
.form-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* combobox */
.combo { position: relative; }
.combo__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); max-height: 290px; overflow: auto; padding: 6px; display: none;
}
.combo.is-open .combo__list { display: block; }
.combo__opt { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; cursor: pointer; color: var(--ink); text-align: left; width: 100%; background: none; border: 0; }
.combo__opt .avatar { width: 38px; height: 38px; font-size: 14px; }
.combo__opt b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.combo__opt small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.combo__opt.is-active, .combo__opt:hover { background: var(--green-ll); }
.combo__none { padding: 12px; color: var(--muted); font-size: 14px; }

.picked { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--green-ll); border: 1.5px solid var(--green); border-radius: 14px; }
.picked .avatar { width: 46px; height: 46px; font-size: 16px; }
.picked b { display: block; font-size: 15px; }
.picked small { color: var(--muted); font-size: 12.5px; }
.picked .link-btn { margin-left: auto; }

/* switch */
.switch { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--purple-l); margin-bottom: 18px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__ui { flex: none; width: 46px; height: 26px; border-radius: 99px; background: #CFC7E6; position: relative; transition: background .2s; }
.switch__ui::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .25s var(--ease); }
.switch input:checked + .switch__ui { background: var(--purple); }
.switch input:checked + .switch__ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__ui { outline: 3px solid rgba(91, 68, 155, .35); outline-offset: 2px; }
.switch b { display: block; font-size: 14.5px; }
.switch small { display: block; font-size: 12.5px; color: var(--muted); }

.who { display: grid; grid-template-columns: 1fr auto; gap: 16px; transition: opacity .25s; }
.who.is-off { opacity: .4; pointer-events: none; }
@media (max-width: 520px) { .who { grid-template-columns: 1fr; } }
.upload { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload__preview { width: 54px; height: 54px; border-radius: 50%; border: 2px dashed #C6CFB9; display: grid; place-items: center; color: var(--muted); overflow: hidden; flex: none; transition: border-color .2s; }
.upload:hover .upload__preview { border-color: var(--green); color: var(--green); }
.upload__preview img { width: 100%; height: 100%; object-fit: cover; }
.upload__preview.has-img { border-style: solid; border-color: var(--green); }
.upload__txt b { display: block; font-size: 14px; }
.upload__txt small { font-size: 12px; color: var(--muted); }

/* ---------- Modal ---------- */
.modal, .lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal__backdrop, .lightbox__backdrop { position: absolute; inset: 0; background: rgba(24, 30, 18, .5); backdrop-filter: blur(4px); animation: fade .25s; }
.modal__panel {
  position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--cream);
  border-radius: 24px; padding: 32px 30px 28px; box-shadow: var(--shadow-lg); animation: pop .35s var(--ease);
}
@media (max-width: 520px) { .modal { padding: 0; place-items: end center; } .modal__panel { border-radius: 24px 24px 0 0; padding: 26px 20px 22px; max-height: 94dvh; } }
.modal__x { position: absolute; right: 14px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; font-size: 24px; line-height: 1; color: var(--muted); box-shadow: var(--shadow-sm); z-index: 2; }
.modal__x:hover { color: var(--ink); }
.modal__x--light { background: rgba(255, 255, 255, .9); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.send .h3 { margin-bottom: 4px; }
.send > .muted { margin: 0 0 22px; }
.send-done, .send-closed { text-align: center; padding: 20px 6px 6px; }
.done__badge { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 26%; background: var(--green); color: #fff; font-size: 38px; display: grid; place-items: center; animation: pop .5s var(--ease); box-shadow: 0 14px 30px -12px rgba(94, 133, 48, .8); }
.done__badge--muted { background: var(--purple-l); box-shadow: none; }
.done__act { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* ---------- Lightbox ---------- */
.lightbox__panel { position: relative; width: min(520px, 100%); animation: pop .35s var(--ease); }
.lightbox__img { aspect-ratio: 4 / 5; background: #fff; border-radius: 18px; overflow: hidden; display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.lightbox__img img { width: 100%; height: 100%; object-fit: contain; }
.lightbox__act { display: flex; justify-content: center; margin-top: 14px; }
.lightbox .modal__x { right: -10px; top: -14px; }
@media (max-height: 760px) { .lightbox__panel { width: min(400px, 100%); } }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--green-l); border-top-color: var(--green); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast { position: fixed; left: 50%; top: 20px; transform: translate(-50%, -200%); visibility: hidden; z-index: 200; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-lg); transition: transform .35s var(--ease); max-width: calc(100% - 32px); }
.toast.is-show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Footer & secret ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0 40px; }
.footer__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; font-size: 13.5px; color: var(--muted); }
.footer img { height: 40px; width: auto; }
.secret {
  position: fixed; left: 0; bottom: 0; z-index: 60; width: 26px; height: 26px; border-radius: 0 9px 0 0;
  background: var(--green); opacity: .07; transition: opacity .3s, width .3s, height .3s;
}
.secret:hover, .secret:focus-visible { opacity: .55; width: 34px; height: 34px; }

/* =========================================================
   MENTOR VIEW
   ========================================================= */
#view-mentor { min-height: calc(100dvh - 70px); position: relative; }
.gate { min-height: calc(100dvh - 70px); display: grid; place-items: center; padding: 40px 16px; background: radial-gradient(60% 50% at 50% 0%, var(--green-l), transparent), var(--cream); }
.gate__card { width: min(480px, 100%); background: #fff; border-radius: 26px; padding: 40px 34px 30px; text-align: center; box-shadow: var(--shadow-lg); animation: pop .5s var(--ease); }
.gate__icon { width: 64px; height: auto; margin: 0 auto 18px; }
.gate__card .h2 { font-size: 32px; }
.gate__card > .muted { margin: 0 0 24px; }
.gate form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.gate .form-error { margin: 0; }

/* envelope */
.envelope-stage { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; align-content: center; gap: 30px; background: radial-gradient(circle at 50% 45%, #FFFFFF, var(--green-ll) 60%, #E7EFDA); animation: fade .3s; }
.envelope-stage.is-out { animation: fadeOut .6s forwards; }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }
.envelope { position: relative; width: 300px; height: 200px; perspective: 900px; animation: wobble 1s ease-in-out .1s; }
@keyframes wobble { 20% { transform: rotate(-3deg); } 40% { transform: rotate(3deg); } 60% { transform: rotate(-2deg); } 80% { transform: rotate(1deg); } }
.env__back { position: absolute; inset: 0; background: var(--purple-d); border-radius: 14px; }
.env__front { position: absolute; inset: 0; border-radius: 14px; z-index: 3; background:
  linear-gradient(to top right, var(--purple) 50%, transparent 50.5%) left / 50.5% 100% no-repeat,
  linear-gradient(to top left, #6A53AE 50%, transparent 50.5%) right / 50.5% 100% no-repeat; }
.env__flap { position: absolute; left: 0; right: 0; top: 0; height: 115px; z-index: 4; transform-origin: top; background: linear-gradient(to bottom, #7660BA, var(--purple)); clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 14px 14px 0 0; animation: flap .7s var(--ease) .9s forwards; }
@keyframes flap { to { transform: rotateX(180deg); z-index: 1; } }
.env__letter { position: absolute; left: 18px; right: 18px; top: 14px; bottom: 14px; background: #fff; border-radius: 10px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; animation: letter .9s var(--ease) 1.45s forwards; }
.env__letter img { width: 90px; }
.env__letter span { font-family: var(--serif); font-style: italic; color: var(--purple); font-size: 18px; }
@keyframes letter { to { transform: translateY(-110px); } }
.env__seal { position: absolute; z-index: 5; left: 50%; top: 92px; width: 54px; height: 54px; transform: translateX(-50%); background: #fff; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(0, 0, 0, .2); animation: seal .4s ease .75s forwards; }
.env__seal img { width: 32px; }
@keyframes seal { to { transform: translateX(-50%) scale(0); opacity: 0; } }
.env__text { color: var(--muted); font-size: 15px; margin: 0; animation: fade 1s; }

/* honor */
.reveal { padding-bottom: 80px; }
.honor { position: relative; text-align: center; padding: 64px 16px 56px; overflow: hidden; background: radial-gradient(70% 90% at 50% 0%, #fff 0%, var(--green-l) 55%, #E5EED6 100%); }
.honor::before, .honor::after { content: ''; position: absolute; border-radius: 26%; opacity: .9; }
.honor::before { width: 160px; height: 160px; left: -50px; top: 40px; background: var(--purple); opacity: .12; transform: rotate(12deg); }
.honor::after { width: 110px; height: 110px; right: -30px; bottom: 30px; background: var(--green); opacity: .18; transform: rotate(-10deg); }
.honor__photo { position: relative; width: 196px; height: 196px; margin: 0 auto 26px; animation: popIn .8s var(--ease) .1s both; }
.honor__ring { position: absolute; inset: -10px; border-radius: 50%; background: conic-gradient(from 0deg, var(--green), var(--gold), var(--purple), var(--pink), var(--green)); animation: spin 6s linear infinite; filter: saturate(1.1); }
.honor__ring::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.honor__photo .avatar { position: absolute; inset: 0; width: 100%; height: 100%; font-size: 64px; z-index: 1; box-shadow: 0 20px 40px -14px rgba(43, 50, 30, .45); }
.honor__photo.is-mono .honor__ring { border-radius: 30%; animation: glowPulse 2.6s ease-in-out infinite; }
@keyframes glowPulse { 50% { box-shadow: 0 0 0 10px rgba(124,165,65,.15), 0 0 40px rgba(232,183,63,.35); } }
.honor__photo.is-mono .honor__ring::after { border-radius: 27%; }
.honor__badge { position: absolute; z-index: 2; left: 50%; bottom: -14px; transform: translateX(-50%); background: var(--purple); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 6px 14px; border-radius: 99px; white-space: nowrap; box-shadow: 0 8px 18px -8px rgba(67, 50, 122, .8); }
.spark { position: absolute; z-index: 3; color: var(--gold); font-size: 20px; animation: twinkle 2.2s ease-in-out infinite; pointer-events: none; }
@keyframes twinkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: 0; } 50% { transform: scale(1.1) rotate(25deg); opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.6); } }
.honor__eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--purple); font-weight: 600; margin: 0 0 6px; animation: rise .6s var(--ease) .3s both; }
.honor__name { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 6vw, 62px); line-height: 1.08; margin: 0 0 8px; letter-spacing: -.01em; animation: rise .7s var(--ease) .4s both;
  background: linear-gradient(100deg, var(--green-dd), var(--green-d) 40%, var(--purple) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.honor__title { color: var(--muted); margin: 0 0 20px; animation: rise .7s var(--ease) .5s both; }
.honor__stats { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; animation: rise .7s var(--ease) .6s both; }
.honor__stats span { background: #fff; border-radius: 99px; padding: 7px 16px; font-size: 14px; box-shadow: var(--shadow-sm); }
.honor__stats b { color: var(--green-d); }

.wishes-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 44px 0 22px; flex-wrap: wrap; }
.wishes-bar__act { display: flex; gap: 8px; }

/* wish cards (masonry) */
.wgrid { columns: 3 320px; column-gap: 20px; }
.wcard {
  break-inside: avoid; margin: 0 0 20px; background: #fff; border-radius: 20px; padding: 26px 24px 18px; position: relative;
  box-shadow: var(--shadow); border: 1px solid var(--line); cursor: zoom-in; overflow: hidden;
  animation: cardIn .7s var(--ease) both; transition: transform .3s var(--ease), box-shadow .3s;
}
.wcard:hover { transform: translateY(-4px) rotate(-.3deg); box-shadow: var(--shadow-lg); }
.wcard::before { content: ''; position: absolute; right: -22px; top: -22px; width: 74px; height: 74px; border-radius: 26%; background: var(--green-l); }
.wcard.v2 { background: linear-gradient(170deg, #FBFDF7, #F0F6E6); }
.wcard.v2::before { background: #DDEBC8; }
.wcard.v3 { background: linear-gradient(170deg, #FCFBFF, #F1EDFA); }
.wcard.v3::before { background: #E2DBF3; }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(.97); } }
.wcard__q { font-family: var(--serif); font-size: 64px; line-height: .6; color: var(--green); display: block; height: 26px; position: relative; }
.wcard.v3 .wcard__q { color: var(--purple); }
.wcard__msg { font-size: 16px; line-height: 1.65; color: var(--ink); margin: 6px 0 18px; white-space: pre-line; overflow-wrap: anywhere; position: relative; }
.wcard__foot { display: flex; align-items: center; gap: 10px; border-top: 1px dashed var(--line); padding-top: 14px; }
.wcard__foot .avatar { width: 38px; height: 38px; font-size: 14px; }
.wcard__who { flex: 1; min-width: 0; line-height: 1.3; }
.wcard__who b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wcard__who small { font-size: 12px; color: var(--muted); }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--green-ll); color: var(--green-d); display: grid; place-items: center; flex: none; transition: background .2s, transform .2s; }
.icon-btn:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.avatar--anon { --c1: #A9B1A2; --c2: #C9CFC2; }

.no-wish { text-align: center; padding: 60px 20px; color: var(--muted); }
.no-wish .done__badge { background: var(--purple-l); box-shadow: none; }

/* =========================================================
   WALL — Bức tranh lời chúc
   ========================================================= */
body.is-wall { overflow: hidden; }
body.is-wall .nav, body.is-wall .footer, body.is-wall .demo-banner, body.is-wall .secret { display: none; }
.wall { position: fixed; inset: 0; z-index: 40; overflow: hidden; background: #F7F9F1; }
.wall__sky { position: absolute; inset: 0; background:
  radial-gradient(60% 50% at 50% 30%, rgba(255, 255, 255, .95), transparent 70%),
  radial-gradient(50% 60% at 15% 20%, rgba(91, 68, 155, .10), transparent 70%),
  radial-gradient(50% 60% at 85% 25%, rgba(124, 165, 65, .16), transparent 70%),
  linear-gradient(180deg, #F3F0FA 0%, #F7F9F1 45%, #E6EFD7 100%); }
.wall__tree { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 92%; }
.wall__tree .leaf { transform-box: fill-box; transform-origin: center; animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.07); } }
.wall__float { position: absolute; inset: 0; }
.wall__head { position: absolute; left: 24px; top: 20px; z-index: 5; display: flex; align-items: center; gap: 16px; }
.wall__head .kicker { margin: 0; font-size: 11.5px; }
.wall__back { width: 44px; height: 44px; border-radius: 14px; background: #fff; display: grid; place-items: center; text-decoration: none; font-size: 20px; box-shadow: var(--shadow); }
.wall__title { margin: 0; font-size: clamp(22px, 3vw, 34px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.wall__count { position: absolute; right: 24px; top: 26px; z-index: 5; margin: 0; background: #fff; padding: 8px 16px; border-radius: 99px; font-size: 14px; box-shadow: var(--shadow); }
.wall__count b { color: var(--green-d); }

.bub {
  position: absolute; left: 0; top: 0; width: 250px; padding: 14px 16px 12px; border-radius: 18px; cursor: pointer;
  background: rgba(255, 255, 255, .93); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 18px 40px -18px rgba(43, 50, 30, .45), 0 2px 6px rgba(43, 50, 30, .06);
  border: 1px solid rgba(255, 255, 255, .9); will-change: transform; transition: box-shadow .3s, opacity .6s;
}
.bub:hover { box-shadow: 0 24px 50px -16px rgba(43, 50, 30, .55); z-index: 30 !important; }
.bub::after { content: ''; position: absolute; left: 22px; bottom: -7px; width: 14px; height: 14px; background: inherit; transform: rotate(45deg); border-radius: 0 0 4px 0; border-right: 1px solid rgba(255,255,255,.9); border-bottom: 1px solid rgba(255,255,255,.9); }
.bub__top { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.bub__top .avatar { width: 30px; height: 30px; font-size: 11.5px; }
.bub__top b { font-size: 13px; font-weight: 600; line-height: 1.2; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bub__top small { font-size: 11.5px; color: var(--purple); display: block; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bub__msg { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.bub.is-p { border-left: 3px solid var(--purple); }
.bub.is-g { border-left: 3px solid var(--green); }
@media (max-width: 640px) {
  .bub { width: 168px; padding: 10px 11px 9px; }
  .bub__msg { font-size: 12.5px; }
  .wall__head { left: 14px; top: 14px; }
  .wall__count { top: auto; bottom: 16px; right: 50%; transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
