/* =========================================================
   SANDEAL24H – giao diện xanh lá 3D
   Muốn đổi màu? Sửa các biến trong :root bên dưới.
   ========================================================= */
:root {
  /* Xanh lá – từ đậm đến nhạt */
  --g950: #062f16;
  --g900: #0a3d1d;
  --g800: #0b4f24;
  --g700: #0f6b2e;
  --g600: #15893b;
  --g500: #1fa846;
  --g400: #3cc25a;
  --lime: #c9ef4a;

  /* Màu nhấn */
  --gold: #ffd43b;
  --gold-edge: #c98a00;
  --cream: #fff4cf;
  --red: #ef3b2d;

  /* Nền & chữ */
  --bg: #f4fbee;
  --mint: #e6f6da;
  --edge: #cfe9bd;          /* cạnh dày của thẻ 3D */
  --text: #0e2a18;
  --muted: #4b6253;

  /* Màu mạng xã hội */
  --fb: #1877f2;  --fb-edge: #0d4fb0;
  --zalo: #0068ff; --zalo-edge: #0046ad;
  --tele: #229ed9; --tele-edge: #136f9c;

  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0; }

main { overflow-x: clip; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* =========================================================
   NÚT 3D
   ========================================================= */
.btn3d {
  --b: var(--g500);
  --e: var(--g700);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 0;
  border-radius: 16px;
  font: 800 16px/1.2 var(--font);
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .18);
  white-space: nowrap;
  cursor: pointer;
  background-color: var(--b);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 55%);
  box-shadow:
    0 6px 0 var(--e),
    0 12px 22px rgba(6, 47, 22, .28),
    inset 0 2px 0 rgba(255, 255, 255, .35);
  transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}
.btn3d svg { width: 20px; height: 20px; flex: none; }
.btn3d:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--e), 0 16px 26px rgba(6, 47, 22, .32), inset 0 2px 0 rgba(255, 255, 255, .35);
}
.btn3d:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 var(--e), 0 4px 8px rgba(6, 47, 22, .25), inset 0 2px 0 rgba(255, 255, 255, .35);
}
.btn3d:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.btn3d--sm { padding: 10px 18px; font-size: 15px; border-radius: 13px; box-shadow: 0 4px 0 var(--e), 0 8px 14px rgba(6, 47, 22, .2), inset 0 2px 0 rgba(255,255,255,.4); }
.btn3d--sm:hover { box-shadow: 0 6px 0 var(--e), 0 10px 18px rgba(6, 47, 22, .24), inset 0 2px 0 rgba(255,255,255,.4); }
.btn3d--block { width: 100%; }
.btn3d--block svg { width: 18px; height: 18px; }

.btn3d--fb   { --b: var(--fb);   --e: var(--fb-edge); }
.btn3d--zalo { --b: var(--zalo); --e: var(--zalo-edge); }
.btn3d--tele { --b: var(--tele); --e: var(--tele-edge); }
.btn3d--green { --b: var(--g500); --e: var(--g700); }
.btn3d--gold { --b: var(--gold); --e: var(--gold-edge); color: var(--g900); text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }

[hidden] { display: none !important; }

/* =========================================================
   LOGO & MENU
   ========================================================= */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(180deg, #4ad66d, #15893b);
  box-shadow: 0 4px 0 var(--g800), inset 0 2px 0 rgba(255, 255, 255, .45);
  color: var(--gold);
  font-weight: 900; font-size: 22px;
  text-shadow: 0 2px 0 var(--g800);
  transform: rotate(-6deg);
}
.logo__text { font-weight: 900; font-size: 22px; letter-spacing: -0.03em; color: var(--g900); white-space: nowrap; }
.logo__text b {
  display: inline-block;
  margin-left: 3px; padding: 0 7px;
  background: var(--gold); color: var(--g900);
  border-radius: 8px;
  box-shadow: 0 3px 0 var(--gold-edge);
}
.logo--light .logo__text { color: #fff; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(10, 61, 29, .08), 0 10px 30px rgba(10, 61, 29, .06);
}
.topbar__inner { display: flex; align-items: center; gap: 28px; height: 72px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 150px;
  color: #fff;
  background:
    radial-gradient(900px 520px at 88% -5%, rgba(214, 245, 90, .9), transparent 62%),
    radial-gradient(700px 480px at -5% 105%, rgba(6, 47, 22, .55), transparent 62%),
    linear-gradient(135deg, #129a3e 0%, #24b44b 45%, #6fd24a 100%);
}
/* các vệt sáng lượn sóng như banner */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 900px; height: 900px;
  left: -420px; top: -380px;
  background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 65%);
}
.hero::after {
  width: 1100px; height: 520px;
  right: -380px; bottom: -260px;
  border: 70px solid rgba(255, 255, 255, .07);
  transform: rotate(-12deg);
}

/* hoa giấy */
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 14px; height: 6px;
  border-radius: 3px;
  background: var(--c);
  transform: rotate(var(--r));
  opacity: .9;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .12);
  animation: drift 5s ease-in-out infinite alternate;
}
.confetti i:nth-child(3n) { width: 9px; height: 9px; border-radius: 50%; }
.confetti i:nth-child(2n) { animation-duration: 6.5s; animation-delay: -2s; }
@keyframes drift {
  to { transform: translateY(16px) rotate(calc(var(--r) + 50deg)); }
}

/* Bố cục: chữ bên trái, ảnh nhóm bên phải, hàng nút vào nhóm trải rộng bên dưới */
.hero__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-areas:
    "copy media"
    "join join";
  gap: 44px 48px;
  align-items: center;
}
.hero__copy  { grid-area: copy; }
.hero__media { grid-area: media; }
.hero__join  { grid-area: join; text-align: center; }

/* chữ nổi 3D */
.title3d {
  display: grid;
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
  filter:
    drop-shadow(2px 0 0 var(--g800))
    drop-shadow(-2px 0 0 var(--g800))
    drop-shadow(0 2px 0 var(--g800))
    drop-shadow(0 -2px 0 var(--g800))
    drop-shadow(0 3px 0 var(--g800))
    drop-shadow(0 3px 0 var(--g950))
    drop-shadow(0 12px 14px rgba(6, 47, 22, .35));
}
.title3d__gold {
  /* chừa chỗ cho dấu tiếng Việt (Ỗ, Ấ…) để không bị cắt mất */
  /* dấu chồng như Ỗ cao hơn chữ khá nhiều nên phải chừa rộng phía trên */
  padding: .42em 0 .14em;
  margin: -.42em 0 -.14em;
  background: linear-gradient(180deg, #fffbb8 0%, #fffbb8 22%, #fff27a 34%, #ffe54d 48%, #ffc21a 76%, #f59a0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pill {
  display: inline-block;
  margin-top: 22px;
  padding: 10px 22px;
  background: #fff;
  color: var(--g800);
  border-radius: 14px;
  font-weight: 900; font-size: 17px;
  text-transform: uppercase; letter-spacing: .01em;
  box-shadow: 0 5px 0 rgba(6, 47, 22, .35), 0 12px 20px rgba(6, 47, 22, .2);
  transform: rotate(-1.5deg);
}
.pill span { color: var(--g400); margin: 0 4px; }

.lead {
  margin-top: 24px;
  max-width: 33em;
  font-size: 18.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, .96);
  text-shadow: 0 1px 2px rgba(6, 47, 22, .35);
}
.lead b { color: var(--gold); font-weight: 800; }

/* =========================================================
   NÚT VÀO NHÓM CỠ LỚN (mục tiêu chính của trang)
   ========================================================= */
.joins__label {
  display: flex; align-items: center; gap: 8px;
  margin-top: 30px;
  font-weight: 800; font-size: 16px;
  color: #fff;
  text-shadow: 0 2px 0 rgba(6, 47, 22, .35);
}
.joins__label svg {
  width: 20px; height: 20px;
  color: var(--gold);
  transform: rotate(90deg);
  animation: nudge 1.2s ease-in-out infinite;
}
@keyframes nudge { 50% { transform: rotate(90deg) translateX(4px); } }

.joins {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 680px;
  margin-top: 14px;
}
.joins--center { margin-inline: auto; }

.joinbtn {
  --b: var(--g500);
  --e: var(--g700);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 80px;
  padding: 12px 16px 12px 14px;
  border-radius: 22px;
  color: #fff;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  background-color: var(--b);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .32) 0%, rgba(255, 255, 255, 0) 55%);
  box-shadow:
    0 8px 0 var(--e),
    0 18px 28px rgba(6, 47, 22, .32),
    inset 0 2px 0 rgba(255, 255, 255, .45);
  transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}
.joinbtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 11px 0 var(--e), 0 22px 32px rgba(6, 47, 22, .36), inset 0 2px 0 rgba(255, 255, 255, .45);
}
.joinbtn:active {
  transform: translateY(7px);
  box-shadow: 0 1px 0 var(--e), 0 6px 10px rgba(6, 47, 22, .25), inset 0 2px 0 rgba(255, 255, 255, .45);
}
.joinbtn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

/* ánh sáng lướt qua nút */
.joinbtn::after {
  content: "";
  position: absolute; top: -20%; bottom: -20%; left: -70%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg);
  animation: shine 5s ease-in-out infinite;
  pointer-events: none;
}
.joinbtn:nth-child(2)::after { animation-delay: .35s; }
.joinbtn:nth-child(3)::after { animation-delay: .7s; }
@keyframes shine {
  0%, 62% { left: -70%; }
  86%, 100% { left: 140%; }
}

.joinbtn--fb   { --b: var(--fb);   --e: var(--fb-edge); }
.joinbtn--zalo { --b: var(--zalo); --e: var(--zalo-edge); }
.joinbtn--tele { --b: var(--tele); --e: var(--tele-edge); }

.joinbtn__ico {
  flex: none;
  display: grid; place-items: center;
  width: 50px; height: 50px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .38);
}
.joinbtn__ico svg { width: 31px; height: 31px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .15)); }
.joinbtn__txt { display: grid; line-height: 1.1; min-width: 0; }
.joinbtn__txt small {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  opacity: .9;
}
.joinbtn__txt b {
  font-size: 22px; font-weight: 900;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .18);
}
.joinbtn__go { display: none; width: 24px; height: 24px; flex: none; margin-left: auto; }

/* hàng nút trải rộng dưới phần đầu trang – nút to hơn nữa */
.hero__join .joins__label { justify-content: center; margin-top: 0; }
.hero__join .joins { max-width: none; margin-top: 16px; gap: 20px; }
.hero__join .joinbtn { min-height: 90px; padding: 14px 24px 14px 16px; }
.hero__join .joinbtn__ico { width: 58px; height: 58px; border-radius: 17px; }
.hero__join .joinbtn__ico svg { width: 35px; height: 35px; }
.hero__join .joinbtn__txt small { font-size: 13px; }
.hero__join .joinbtn__txt b { font-size: 27px; }
.hero__join .joinbtn__go { display: block; width: 28px; height: 28px; }

.joins__proof {
  margin-top: 22px;
  font-size: 15.5px; font-weight: 600;
  color: rgba(255, 255, 255, .96);
  text-shadow: 0 1px 2px rgba(6, 47, 22, .35);
}
.joins__proof b { color: var(--gold); font-weight: 900; }
.joins__dot {
  display: inline-block;
  vertical-align: 1px;
  margin-right: 9px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #b6ff5c;
  box-shadow: 0 0 0 0 rgba(182, 255, 92, .8);
  animation: online 1.8s infinite;
}
@keyframes online {
  70% { box-shadow: 0 0 0 10px rgba(182, 255, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(182, 255, 92, 0); }
}

/* nhãn dán 3D bay lơ lửng */
.sticker {
  --rot: 0deg;
  position: absolute;
  z-index: 2;
  padding: 12px 16px;
  border-radius: 18px;
  border: 3px solid #fff;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  line-height: .95;
  animation: bob 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--rot)); }
  50% { transform: translateY(-12px) rotate(var(--rot)); }
}

.hero__wave {
  position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 90px;
  color: var(--bg);
}

/* =========================================================
   DẢI CHẠY CHỮ
   ========================================================= */
.ticker {
  position: relative; z-index: 3;
  margin: -64px -12px 64px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--g700), var(--g800));
  color: var(--gold);
  transform: rotate(-1.6deg);
  box-shadow: 0 7px 0 var(--g950), 0 20px 34px rgba(6, 47, 22, .28);
}
.ticker__track {
  display: flex; width: max-content;
  animation: ticker 34s linear infinite;
}
.ticker span {
  padding: 16px 26px;
  font-weight: 900; font-size: 18px;
  text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap;
  text-shadow: 0 2px 0 var(--g950);
}
.ticker span::after { content: "★"; margin-left: 52px; color: var(--lime); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* =========================================================
   ẢNH NHÓM FACEBOOK (bên phải phần đầu trang)
   ========================================================= */
.hero__media { position: relative; perspective: 1600px; }
/* Ảnh đứng thẳng khi yên (để nét), chỉ nghiêng 3D khi rê chuột */
.browser3d {
  --rx: 0deg;
  --ry: 0deg;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  box-shadow:
    0 12px 0 #d5efc4,
    0 16px 0 var(--g800),
    0 44px 70px rgba(6, 47, 22, .45);
  transition: transform .5s var(--ease);
}
.browser3d.is-tilting { transition: transform .08s linear; }
.browser3d:not(.is-tilting) { transform: none; }
.browser3d img { width: 100%; height: auto; }

/* dòng tên nhóm – chữ thật nên luôn nét */
.fbhead {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px 18px;
  background: #fff;
  color: #1c1e21;
}
.fbhead__info { display: grid; gap: 2px; min-width: 0; }
.fbhead__name { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.fbhead__meta { display: block; font-size: 15px; color: #65676b; font-weight: 500; }
.fbhead__meta b { color: #1c1e21; font-weight: 800; }
.fbhead__meta svg { display: inline-block; width: 14px; height: 14px; margin-right: 3px; vertical-align: -2px; }
.fbhead__join {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 10px 16px;
  border-radius: 8px;
  background: #1877f2;
  color: #fff;
  font-size: 15px; font-weight: 700;
}
.fbhead__join svg { width: 17px; height: 17px; }
.browser3d__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: linear-gradient(180deg, #f6f8f7, #e9eeeb);
  border-bottom: 1px solid #dfe6e2;
}
.browser3d__bar > i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; flex: none; }
.browser3d__bar > i:nth-child(2) { background: #febc2e; }
.browser3d__bar > i:nth-child(3) { background: #28c840; }
.browser3d__url {
  display: flex; align-items: center; gap: 6px;
  flex: 1; min-width: 0;
  margin-left: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  color: #5b6b61;
  font-size: 13px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser3d__url svg { width: 12px; height: 12px; flex: none; color: var(--g600); }

.sticker--crowd {
  --rot: 8deg;
  top: -30px; right: -16px; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  font-size: 24px;
  background: linear-gradient(180deg, #ff6a5c, var(--red));
  text-shadow: 0 3px 0 #8e170e, 2px 0 0 #8e170e, -2px 0 0 #8e170e, 0 -2px 0 #8e170e;
  box-shadow: 0 7px 0 #a01d12, 0 18px 26px rgba(6, 47, 22, .3);
}
.sticker--crowd svg { width: 26px; height: 26px; filter: drop-shadow(0 2px 0 #8e170e); }

/* =========================================================
   CHÂN TRANG
   ========================================================= */
.footer { background: var(--g950); color: #c4dccb; padding: 64px 0 44px; }
.footer__inner { display: grid; gap: 26px; }
.footer__brand { display: grid; gap: 12px; }
.footer__brand p { font-size: 15px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer__links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .35);
  color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
  cursor: pointer;
  transition: background .15s;
}
.footer__links a:hover { background: rgba(255, 255, 255, .16); }
.footer__links svg { width: 18px; height: 18px; }
.footer__copy { font-size: 14px; color: #7f9a87; }

/* =========================================================
   NÚT NỔI TRÊN ĐIỆN THOẠI & THÔNG BÁO
   ========================================================= */
.floatbar { display: none; }

.toast {
  position: fixed; left: 50%; bottom: 100px; z-index: 100;
  transform: translate(-50%, 20px);
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  background: var(--g900); color: #fff;
  border-radius: 14px;
  font-size: 15px; font-weight: 600; text-align: center;
  box-shadow: 0 5px 0 var(--g950), 0 16px 30px rgba(0, 0, 0, .25);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "join" "media";
    gap: 40px;
  }
  .hero__copy { max-width: 640px; }
  .hero__join { text-align: left; }
  .hero__join .joins__label { justify-content: flex-start; }
  .hero__media { max-width: 620px; width: 100%; margin-inline: auto; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .footer { padding-bottom: 40px; }
  .footer__inner { padding-right: 64px; }   /* chữ không chạy xuống dưới 3 nút tròn bên phải */
  .topbar__inner { justify-content: space-between; height: 64px; }
  .logo__text { font-size: 20px; }

  .hero { padding: 30px 0 120px; }
  /* mép điện thoại hẹp: ẩn hoa giấy 2 bên để không dính vào chữ */
  .hero .confetti i:nth-child(1),
  .hero .confetti i:nth-child(2),
  .hero .confetti i:nth-child(3),
  .hero .confetti i:nth-child(4),
  .hero .confetti i:nth-child(5),
  .hero .confetti i:nth-child(6),
  .hero .confetti i:nth-child(7) { display: none; }
  /* tiêu đề luôn 2 hàng: chữ tự co theo bề ngang màn hình */
  .title3d { font-size: min(calc((100vw - 40px) / 9.3), 52px); }
  .title3d span { white-space: nowrap; }
  .pill { font-size: 14px; padding: 9px 16px; }
  .lead { font-size: 16.5px; }
  .joins__label { margin-top: 26px; font-size: 14px; gap: 6px; }
  .joins { grid-template-columns: 1fr; gap: 14px; }
  .joinbtn { min-height: 74px; padding: 11px 18px 11px 12px; }
  .joinbtn__go { display: block; }
  .joins__proof { font-size: 14.5px; }
  /* Điện thoại: đưa nút vào nhóm lên ngay dưới tiêu đề để mở trang là thấy.
     Thứ tự: tiêu đề → nhãn trắng → NÚT VÀO NHÓM → câu giới thiệu → ảnh nhóm */
  .hero__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero__copy { display: contents; }
  .title3d { order: 2; }
  .pill { order: 3; align-self: flex-start; margin-top: 14px; }
  .hero__join { order: 4; margin-top: 22px; }
  .lead { order: 5; margin-top: 20px; }
  .hero__media { order: 6; }
  .hero__join .joins { gap: 14px; }
  .hero__join .joinbtn { min-height: 76px; padding: 11px 18px 11px 12px; }
  .hero__join .joinbtn__ico { width: 50px; height: 50px; border-radius: 15px; }
  .hero__join .joinbtn__ico svg { width: 31px; height: 31px; }
  .hero__join .joinbtn__txt small { font-size: 12px; }
  .hero__join .joinbtn__txt b { font-size: 23px; }
  .hero__join .joinbtn__go { width: 24px; height: 24px; }
  .hero__media { margin-top: 44px; }

  .ticker { margin: -52px -12px 48px; }
  .ticker span { font-size: 15px; padding: 13px 20px; }
  .ticker span::after { margin-left: 40px; }

  .browser3d { border-radius: 14px; }
  .browser3d__url { font-size: 11px; }
  .fbhead { padding: 12px 14px 14px; gap: 10px; }
  .fbhead__name { font-size: 18px; }
  .fbhead__meta { font-size: 12.5px; line-height: 1.45; }
  .fbhead__meta svg { width: 12px; height: 12px; }
  .fbhead__join { padding: 8px 10px; font-size: 12.5px; gap: 5px; }
  .fbhead__join svg { width: 14px; height: 14px; }
  .sticker--crowd { top: -24px; right: -4px; font-size: 18px; }
  .sticker--crowd svg { width: 20px; height: 20px; }

  /* 3 nút tròn nổi ở góc dưới bên phải */
  .floatbar {
    position: fixed; z-index: 60;
    right: 14px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    display: flex; flex-direction: column; gap: 10px;
    transition: opacity .25s ease, transform .25s ease;
  }
  /* ẩn khi 3 nút to ở đầu trang đang hiện trên màn hình (script.js bật/tắt) */
  .floatbar.is-hidden { opacity: 0; transform: translateY(14px); pointer-events: none; }
  .floatbar a {
    --b: var(--g500); --e: var(--g700);
    display: grid; place-items: center;
    width: 54px; height: 54px;
    border-radius: 50%;
    background-color: var(--b);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 55%);
    box-shadow: 0 4px 0 var(--e), 0 10px 20px rgba(6, 47, 22, .32), inset 0 2px 0 rgba(255, 255, 255, .4);
    border: 2px solid #fff;
    color: #fff; text-decoration: none;
    cursor: pointer;
  }
  .floatbar a:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--e); }
  .floatbar svg { width: 26px; height: 26px; }
  .floatbar span {             /* chữ chỉ dành cho trình đọc màn hình */
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .floatbar a.floatbar__fb   { --b: var(--fb);   --e: var(--fb-edge); }
  .floatbar a.floatbar__zalo { --b: var(--zalo); --e: var(--zalo-edge); }
  .floatbar a.floatbar__tele { --b: var(--tele); --e: var(--tele-edge); }
}

/* máy rất nhỏ (≤ 360px): thu gọn thanh trên cùng */
@media (max-width: 360px) {
  .topbar__inner { gap: 10px; }
  .logo { gap: 7px; }
  .logo__mark { width: 34px; height: 34px; font-size: 19px; }
  .logo__text { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track,
  .confetti i,
  .sticker,
  .joinbtn::after,
  .joins__label svg,
  .joins__dot { animation: none; }
  .joinbtn::after { display: none; }
  .btn3d, .joinbtn, .browser3d { transition: none; }
}
