/* ==========================================================================
   i18n.css — bo chuyen ngu + dieu chinh theo ngon ngu
   Lop cuoi cung, chi them khong sua file truoc do.
   ========================================================================== */

/* ---------- 1. Bo chuyen ngu tren nav ---------- */
.langswitch{position:relative;display:inline-flex;align-items:center}
.langswitch__btn{
  display:inline-flex;align-items:center;gap:6px;
  height:34px;padding:0 10px 0 9px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  color:var(--text-1,#eef2ff);
  font:inherit;font-size:12.5px;font-weight:600;letter-spacing:.02em;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.langswitch__btn:hover{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.26)}
.langswitch__btn:active{transform:translateY(1px)}
.langswitch__btn:focus-visible{outline:2px solid var(--brand-yellow,#f8c008);outline-offset:2px}
.langswitch__globe{width:14px;height:14px;flex:none;opacity:.85}
.langswitch__code{font-variant-numeric:tabular-nums;text-transform:uppercase;line-height:1}
.langswitch__caret{width:8px;height:8px;flex:none;opacity:.6;transition:transform .18s ease}
.langswitch[data-open="true"] .langswitch__caret{transform:rotate(180deg)}

.langswitch__menu{
  position:absolute;top:calc(100% + 10px);right:0;z-index:80;
  min-width:186px;margin:0;padding:6px;list-style:none;
  background:#0b1120;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  box-shadow:0 18px 44px rgba(0,0,0,.55),0 2px 8px rgba(0,0,0,.4);
  animation:langIn .16s ease both;
}
.langswitch__menu[hidden]{display:none}
@keyframes langIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

.langswitch__item{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:9px 11px;border-radius:9px;
  color:#dfe6f5;text-decoration:none;
  font-size:13.5px;line-height:1.25;
  transition:background .14s ease,color .14s ease;
}
.langswitch__item:hover{background:rgba(255,255,255,.07);color:#fff}
.langswitch__item:focus-visible{outline:2px solid var(--brand-yellow,#f8c008);outline-offset:-2px}
.langswitch__item[aria-current="true"]{color:var(--brand-yellow,#f8c008);background:rgba(248,192,8,.1)}
.langswitch__item[aria-current="true"]::after{
  content:"";width:6px;height:6px;border-radius:50%;
  background:currentColor;flex:none;
}
.langswitch__native{font-size:11px;opacity:.55;margin-left:auto;padding-left:6px}

/* trong drawer di dong */
.drawer .langswitch{margin:14px 0 4px;width:100%}
.drawer .langswitch__btn{width:100%;justify-content:space-between;height:42px;border-radius:12px}
.drawer .langswitch__menu{position:static;margin-top:8px;box-shadow:none;animation:none}

/* ---------- 2. Chua chu tren nav khi them nut ngon ngu ---------- */
@media (max-width:1240px){
  .nav__login{display:none}
}
@media (max-width:1080px){
  .nav__links a{font-size:13.5px}
  .nav__inner{gap:10px}
}

/* ---------- 3. Tieng Trung: font he thong (khong tai them) ---------- */
html[lang="zh"] body,
html[lang="zh"] button,
html[lang="zh"] input,
html[lang="zh"] select,
html[lang="zh"] textarea{
  font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC",
              "Source Han Sans SC","Be Vietnam Pro",system-ui,-apple-system,sans-serif;
}
/* chu Han cao hon -> ha nhe co chu o cac nhan chat */
html[lang="zh"] .btn,
html[lang="zh"] .nav__links a,
html[lang="zh"] .langswitch__btn{letter-spacing:.01em}
html[lang="zh"] h1,html[lang="zh"] .h1{letter-spacing:-.02em}
html[lang="zh"] .eyebrow{letter-spacing:.12em}

/* ---------- 4. Tieng Ma Lai dai hon ~20-30% ---------- */
html[lang="ms"] .btn{letter-spacing:0}
html[lang="ms"] .nav__links a{font-size:14px}
html[lang="ms"] .plan__name{letter-spacing:-.01em}
html[lang="ms"] .footer__col a{line-height:1.5}

/* ---------- 5. Noi dung phap ly: bang bao ban dich tham khao ---------- */
.legalnote{
  display:flex;gap:10px;align-items:flex-start;
  max-width:920px;margin:0 auto 26px;padding:13px 16px;
  border:1px solid rgba(248,192,8,.34);
  background:rgba(248,192,8,.08);
  border-radius:12px;
  font-size:13.5px;line-height:1.55;color:#f3e6bd;
}
.legalnote b{color:#fff;font-weight:700}
.legalnote svg{flex:none;margin-top:2px;opacity:.9}

/* ---------- 6. An toan: diet tran ngang do chu dai ---------- */
html[lang="ms"] .plan__for,
html[lang="en"] .plan__for{text-wrap:pretty}
