/* ===================================================================
   xzalo.vn — trang Đăng nhập / Đăng ký / Tài khoản
   Clone giao diện xmeta.vn/login (bản "Dark + Grid"): thẻ 412px ở giữa,
   viền gradient tím→cyan, lưới nền sáng theo con trỏ, tự sáng/tối theo giờ
   (html.au-night 18h–6h / html.au-day — boot.js gắn trước khi vẽ).
   =================================================================== */

/* ---------- Remix Icon v3.3.0 — https://remixicon.com — Apache License 2.0 (chỉ các icon dùng) ---------- */
@font-face {
  font-family: "remixicon";
  src: url("/zz/remixicon.woff2?v=330") format("woff2");
  font-display: block;
}
[class^="ri-"],
[class*=" ri-"] {
  font-family: "remixicon" !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.ri-user-3-line:before { content: "\f256"; }
.ri-user-add-line:before { content: "\f25e"; }
.ri-user-star-fill:before { content: "\f275"; }
.ri-lock-2-line:before { content: "\eecc"; }
.ri-eye-line:before { content: "\ecb5"; }
.ri-eye-off-line:before { content: "\ecb7"; }
.ri-login-circle-line:before { content: "\eed6"; }
.ri-logout-box-r-line:before { content: "\eeda"; }
.ri-google-fill:before { content: "\edd4"; }
.ri-key-2-line:before { content: "\ee6f"; }
.ri-customer-service-2-fill:before { content: "\ec0b"; }
.ri-group-2-fill:before { content: "\ede0"; }
.ri-arrow-down-s-line:before { content: "\ea4e"; }
.ri-arrow-left-line:before { content: "\ea60"; }
.ri-check-line:before { content: "\eb7b"; }
.ri-checkbox-circle-fill:before { content: "\eb80"; }
.ri-mail-line:before { content: "\eef6"; }
.ri-mail-send-line:before { content: "\eefc"; }
.ri-phone-line:before { content: "\efec"; }
.ri-shield-keyhole-line:before { content: "\f107"; }
.ri-file-copy-line:before { content: "\ecd5"; }
.ri-error-warning-line:before { content: "\eca1"; }

/* ---------- nền tảng ---------- */
:root {
  --primary-start: #6366f1;
  --primary-end: #8b5cf6;
  --primary-rgb: 99, 102, 241;
  --primary-end-rgb: 139, 92, 246;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
  background: #0f1426;
}
html.au-day {
  background: #f4f5fb;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #232e3d;
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button,
input {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
button {
  text-transform: none;
}
button:focus:not(:focus-visible) {
  outline: 0;
}
h1,
h3,
p {
  margin-top: 0;
}
b,
strong {
  font-weight: bolder;
}
[hidden] {
  display: none !important;
}
/* lớp phủ tối 3% toàn trang (xmeta có) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.03);
  pointer-events: none;
}
/* Đang chờ dịch (ngôn ngữ ≠ vi): ẩn thẻ; tự hiện sau 1.5s nếu JS lỗi */
html.au-i18n-wait .au-card,
html.au-i18n-wait .au-sup {
  visibility: hidden;
  animation: auReveal 0s linear 1.5s forwards;
}
@keyframes auReveal {
  to {
    visibility: visible;
  }
}

/* ---------- trang + lưới nền ---------- */
.au-page {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 44px 22px;
  background: #0f1426;
  --au-gl: rgba(255, 255, 255, 0.05);
  --au-glb: rgba(180, 160, 255, 0.6);
}
.au-day .au-page {
  background: #f4f5fb;
  --au-gl: rgba(var(--primary-rgb), 0.1);
  --au-glb: rgba(var(--primary-rgb), 0.5);
}
.au-grid-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.au-grid-fx::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--au-gl) 1px, transparent 1px),
    linear-gradient(90deg, var(--au-gl) 1px, transparent 1px);
  background-size: 38px 38px;
}
.au-grid-lines,
.au-grid-glow {
  position: absolute;
  inset: 0;
}
/* lưới sáng lên quanh con trỏ (--mx/--my do portal.js gắn) */
.au-grid-lines {
  background-image:
    linear-gradient(var(--au-glb) 1px, transparent 1px),
    linear-gradient(90deg, var(--au-glb) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask: radial-gradient(circle 150px at var(--mx, -400px) var(--my, -400px), #000 0%, rgba(0, 0, 0, 0.35) 50%, transparent 75%);
  mask: radial-gradient(circle 150px at var(--mx, -400px) var(--my, -400px), #000 0%, rgba(0, 0, 0, 0.35) 50%, transparent 75%);
}
.au-grid-glow {
  background: radial-gradient(
    circle 180px at var(--mx, -400px) var(--my, -400px),
    rgba(var(--primary-end-rgb), 0.3) 0%,
    rgba(var(--primary-rgb), 0.12) 42%,
    transparent 70%
  );
}

/* ---------- thẻ ---------- */
.au-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 412px;
  margin: auto;
  border-radius: 22px;
  background: #1a2138;
  box-shadow:
    0 30px 70px -20px rgba(0, 0, 0, 0.65),
    0 0 54px -18px rgba(var(--primary-end-rgb), 0.45);
  overflow: hidden;
}
.au-day .au-card {
  background: #ffffff;
  box-shadow: 0 28px 64px -22px rgba(15, 23, 42, 0.4);
}
/* viền gradient phát sáng quanh thẻ */
.au-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 22px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(var(--primary-end-rgb), 0.85), rgba(var(--primary-rgb), 0.15) 45%, rgba(6, 182, 212, 0.6));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.au-form-pane {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 34px 32px;
}

/* ---------- logo + tiêu đề ---------- */
.au-brand-logo {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.au-brand-logo::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 240px;
  height: 120px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(var(--primary-end-rgb), 0.55), transparent 70%);
  filter: blur(22px);
  pointer-events: none;
}
.au-day .au-brand-logo::before {
  opacity: 0;
}
.au-brand-logo img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: 56px;
  filter: drop-shadow(0 5px 16px rgba(var(--primary-end-rgb), 0.6));
}
.au-day .au-brand-logo img {
  filter: drop-shadow(0 0 1px rgba(35, 28, 80, 0.6)) drop-shadow(0 2px 4px rgba(35, 28, 80, 0.3));
}
.au-form-head {
  margin-bottom: 22px;
  text-align: center;
}
.au-form-head-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: #ffffff;
}
.au-day .au-form-head-title {
  color: #0f172a;
}
.au-form-head-wave {
  display: inline-block;
  font-size: 22px;
  transform-origin: 70% 70%;
  animation: auWave 2.6s ease-in-out infinite;
}
@keyframes auWave {
  0%, 60%, 100% { transform: rotate(0); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}

/* ---------- chọn ngôn ngữ (góc phải thẻ) ---------- */
.au-lang {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 6;
}
.au-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 1px;
  vertical-align: top;
  padding: 2px;
  border: none;
  background: transparent;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.16s ease;
}
.au-lang-toggle:hover {
  opacity: 0.82;
}
.au-lang-flag {
  display: inline-block;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}
.fi-vn { background-image: url("/zz/flags/vn.svg"); }
.fi-gb { background-image: url("/zz/flags/gb.svg"); }
.fi-th { background-image: url("/zz/flags/th.svg"); }
.fi-cn { background-image: url("/zz/flags/cn.svg"); }
.fi-tw { background-image: url("/zz/flags/tw.svg"); }
.fi-ph { background-image: url("/zz/flags/ph.svg"); }
.au-lang-caret {
  font-size: 16px;
  color: #94a3b8;
  transition: transform 0.18s ease;
}
.au-lang.open .au-lang-caret {
  transform: rotate(180deg);
}
.au-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 170px;
  margin: 0;
  padding: 5px;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s;
}
.au-lang.open .au-lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  /* hiện ngay khi mở để focus bàn phím vào được mục đang chọn */
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0s;
}
.au-lang-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  outline: none;
}
.au-lang-opt:hover,
.au-lang-opt:focus-visible {
  background: #f1f5f9;
}
.au-lang-opt.selected {
  background: #eef2ff;
  color: #4338ca;
  font-weight: 600;
}
/* viền focus bàn phím (đặt sau .selected để luôn thấy) */
.au-lang-opt:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(79, 70, 229, 0.55);
}
.au-lang-name {
  flex: 1;
}
.au-lang-menu .au-lang-flag {
  width: 20px;
  height: 20px;
}
.au-lang-check {
  font-size: 15px;
  color: #4f46e5;
  opacity: 0;
}
.au-lang-opt.selected .au-lang-check {
  opacity: 1;
}

/* ---------- form ---------- */
.au-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.au-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.au-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: #aab2c8;
}
.au-day .au-label {
  color: #334155;
}
.au-optional {
  margin-left: 4px;
  font-size: 11.5px;
  font-weight: 400;
  color: #94a3b8;
}
.au-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.au-input-wrap > i {
  position: absolute;
  left: 12px;
  font-size: 17px;
  color: #7c83a3;
  pointer-events: none;
  transition: all 0.2s ease;
}
.au-input-wrap:focus-within > i {
  transform: scale(1.15);
}
.au-input-wrap > i.ri-user-3-line,
.au-input-wrap > i.ri-user-add-line {
  color: #38bdf8 !important;
}
.au-input-wrap > i.ri-lock-2-line,
.au-input-wrap > i.ri-lock-password-line {
  color: #c084fc !important;
}
.au-input-wrap > i.ri-mail-line,
.au-input-wrap > i.ri-mail-send-line {
  color: #34d399 !important;
}
.au-input-wrap > i.ri-phone-line {
  color: #fb923c !important;
}
.au-input-wrap > i.ri-key-2-line {
  color: #fbbf24 !important;
}
.au-input-wrap > i.ri-shield-keyhole-line {
  color: #f472b6 !important;
}
.au-day .au-input-wrap > i {
  color: #94a3b8;
}
.au-input {
  width: 100%;
  height: 40px;
  padding: 8px 12px 8px 38px;
  border: 1px solid #2a3350;
  border-radius: 10px;
  background: #11162a;
  font-size: 13.5px;
  font-weight: 400;
  color: #e7eaf3;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
/* chừa chỗ cho nút icon bên phải (mật khẩu dài không chui dưới nút) */
.au-input-wrap > .au-input:has(~ .au-toggle-pass) {
  padding-right: 42px;
}
.au-input::placeholder {
  color: #5b647d;
}
.au-input:focus {
  outline: none;
  border-color: var(--primary-end);
  box-shadow: 0 0 0 3px rgba(var(--primary-end-rgb), 0.25);
}
.au-day .au-input {
  border-color: #e2e8f0;
  background: #fff;
  color: #0f172a;
}
.au-day .au-input::placeholder {
  color: #cbd5e1;
}
.au-day .au-input:focus {
  border-color: var(--primary-start);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.16);
}
.au-input-code {
  padding-left: 38px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 8px;
  text-align: center;
  color: #c4b5fd;
}
.au-day .au-input-code {
  color: #4f46e5;
}
.au-input-mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
/* nút icon nằm trong ô nhập (hiện mật khẩu / sao chép) */
.au-toggle-pass {
  position: absolute;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 14px;
  color: #7c83a3;
  cursor: pointer;
}
.au-toggle-pass:hover {
  background: #232b45;
  color: #cdd3e3;
}
.au-day .au-toggle-pass {
  color: #94a3b8;
}
.au-day .au-toggle-pass:hover {
  background: #f1f5f9;
  color: #475569;
}
.au-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #9aa6c0;
  cursor: pointer;
  user-select: none;
}
.au-day .au-check {
  color: #475569;
}
.au-check input {
  margin-top: 1px;
  accent-color: var(--primary-start);
}
.au-link {
  font-weight: 600;
  color: var(--primary-start);
  text-decoration: none;
}
.au-link:hover {
  text-decoration: underline;
}
.au-error {
  display: none;
  padding: 8px 12px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.14);
  font-size: 12.5px;
  color: #fca5a5;
}
.au-day .au-error {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
}
.au-error.is-show {
  display: block;
}

/* ---------- nút ---------- */
.au-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.au-btn-primary {
  background: linear-gradient(135deg, var(--primary-end), var(--primary-start));
  color: #fff;
  box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.36);
}
.au-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.45);
}
/* nút phụ: Google / License Key / Đăng xuất */
.au-btn-google,
.au-btn-licensekey {
  border: 1.5px solid #2a3350;
  background: #11162a;
  color: #dfe4f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.au-btn-google:hover,
.au-btn-licensekey:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}
.au-day .au-btn-google,
.au-day .au-btn-licensekey {
  border-color: #e2e8f0;
  background: #fff;
  color: #334155;
}
.au-day .au-btn-google:hover,
.au-day .au-btn-licensekey:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.au-btn-google .au-btn-label i {
  font-size: 19px;
  background: linear-gradient(135deg, #ea4335 0%, #fbbc05 35%, #34a853 65%, #4285f4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.au-btn-licensekey .au-btn-label i {
  font-size: 18px;
  color: #fbbf24;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.5));
}
.au-day .au-btn-licensekey .au-btn-label i {
  color: #d97706;
}
.au-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.au-btn-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.au-btn-label i {
  font-size: 17px;
}
.au-btn-spin {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auSpin 0.7s linear infinite;
}
.au-btn-google .au-btn-spin,
.au-btn-licensekey .au-btn-spin {
  border-color: rgba(var(--primary-rgb), 0.2);
  border-top-color: var(--primary-start);
}
.au-btn.is-loading .au-btn-label {
  display: none;
}
.au-btn.is-loading .au-btn-spin {
  display: inline-block;
}
@keyframes auSpin {
  to {
    transform: rotate(360deg);
  }
}
.au-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 8px;
}
.au-divider::before,
.au-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #2a3350, transparent);
}
.au-day .au-divider::before,
.au-day .au-divider::after {
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}
.au-divider span {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #5b647d;
}
.au-day .au-divider span {
  color: #94a3b8;
}

/* ---------- dòng liên kết cuối form ---------- */
.au-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #9aa6c0;
}
.au-day .au-meta-row {
  color: #232e3d;
}
.au-meta {
  margin-top: 4px;
  font-size: 12.5px;
  text-align: center;
  color: #9aa6c0;
}
.au-day .au-meta {
  color: #232e3d;
}
.au-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary-start);
  cursor: pointer;
}
.au-link-btn:hover {
  text-decoration: underline;
}
.au-link-btn i {
  font-size: 13px;
}
.au-meta-row > span .au-link-btn {
  margin-top: 2px;
  vertical-align: top;
}

/* ---------- quên mật khẩu ---------- */
.au-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.au-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.1px;
  color: #ffffff;
}
.au-day .au-section-title {
  color: #0f172a;
}
.au-section-title i {
  font-size: 18px;
  color: var(--primary-start);
}
.au-section-sub {
  margin: 0 0 6px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #9aa6c0;
}
.au-day .au-section-sub {
  color: #64748b;
}
.au-fg-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- thành công / đang tải ---------- */
.au-success {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}
.au-success-icon {
  margin-bottom: 16px;
  font-size: 56px;
  line-height: 1;
  color: #10b981;
}
.au-success-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
}
.au-day .au-success-title {
  color: #0f172a;
}
.au-success-sub {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: #9aa6c0;
}
.au-day .au-success-sub {
  color: #64748b;
}
.au-loading-spin {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border: 3px solid rgba(var(--primary-end-rgb), 0.2);
  border-top-color: var(--primary-end);
  border-radius: 50%;
  animation: auSpin 0.8s linear infinite;
}

/* ---------- tài khoản ---------- */
.au-acc-id {
  text-align: center;
}
.au-acc-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-end), var(--primary-start));
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}
.au-acc-badge.is-free {
  border: 1px solid #2a3350;
  background: #11162a;
  color: #9aa6c0;
  box-shadow: none;
}
.au-day .au-acc-badge.is-free {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}
.au-acc-name {
  margin: 10px 0 2px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.au-day .au-acc-name {
  color: #0f172a;
}
.au-acc-email {
  overflow: hidden;
  font-size: 12.5px;
  color: #9aa6c0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.au-day .au-acc-email {
  color: #64748b;
}
.au-acc-rows {
  margin: 0;
  border: 1px solid #2a3350;
  border-radius: 12px;
  background: #11162a;
}
.au-day .au-acc-rows {
  border-color: #e2e8f0;
  background: #f8fafc;
}
.au-acc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
}
.au-acc-row + .au-acc-row {
  border-top: 1px solid #2a3350;
}
.au-day .au-acc-row + .au-acc-row {
  border-top-color: #e2e8f0;
}
.au-acc-row dt {
  font-size: 12.5px;
  color: #9aa6c0;
}
.au-day .au-acc-row dt {
  color: #64748b;
}
.au-acc-row dd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  color: #e7eaf3;
}
.au-day .au-acc-row dd {
  color: #0f172a;
}
.au-acc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}
.au-acc-dot.is-off {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

/* ---------- nút Hỗ trợ nổi ---------- */
.au-sup {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.au-sup-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary-end), #06b6d4);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 8px 24px rgba(var(--primary-end-rgb), 0.45);
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.au-sup-fab i {
  font-size: 20px;
}
.au-sup-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(var(--primary-end-rgb), 0.55);
}
.au-sup-panel {
  width: 290px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: #0f172a;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s,
    visibility 0.2s;
}
.au-sup.open .au-sup-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.au-sup-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.au-sup-head i {
  color: #a5b4fc;
}
.au-sup-desc {
  margin: 6px 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
}
.au-sup-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.au-sup-item:last-child {
  margin-bottom: 0;
}
.au-sup-item:hover {
  border-color: rgba(var(--primary-end-rgb), 0.4);
  background: rgba(var(--primary-end-rgb), 0.15);
}
.au-sup-head i {
  color: #c084fc;
  filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.45));
}
.au-sup-item i {
  flex: 0 0 auto;
  font-size: 22px;
  color: #38bdf8;
  transition: transform 0.2s ease;
}
.au-sup-item:hover i {
  transform: scale(1.15);
}
.au-sup-item i.ri-group-2-fill {
  color: #38bdf8;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.45));
}
.au-sup-item i.ri-user-star-fill {
  color: #fbbf24;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.45));
}
.au-sup-item:nth-of-type(3) i.ri-user-star-fill {
  color: #34d399;
  filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.45));
}
.au-sup-item b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.au-sup-item span {
  font-size: 11px;
  color: #94a3b8;
}

/* ---------- toast (góc phải trên, giống xmeta) ---------- */
.au-toast {
  position: fixed;
  top: 2px;
  right: 16px;
  z-index: 99999;
  min-width: 180px;
  max-width: min(460px, calc(100vw - 32px));
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 0.25s,
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.au-toast.show {
  opacity: 1;
  transform: translateX(0);
}
.au-toast-body {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 4px;
}
.au-toast-body i {
  flex-shrink: 0;
  font-size: 15px;
  color: var(--toast-color, #10b981);
}
.au-toast-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: #1a1a1a;
  word-break: break-word;
}
.au-toast-bar {
  width: 100%;
  height: 2px;
  background: var(--toast-color, #10b981);
}
.au-toast.show .au-toast-bar {
  animation: auToastBar var(--toast-ms, 1500ms) linear forwards;
}
@keyframes auToastBar {
  from { width: 100%; }
  to { width: 0; }
}

/* ---------- popup Điều khoản (kiểu SweetAlert2 như xmeta) ---------- */
.au-modal {
  width: 720px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  padding: 0 0 20px;
  border: none;
  border-radius: 5px;
  background: #fff;
  font-family: var(--font);
  color: #545454;
}
.au-modal[open] {
  display: flex;
  flex-direction: column;
  animation: auModalIn 0.3s;
}
.au-modal::backdrop {
  background: rgba(0, 0, 0, 0.4);
}
@keyframes auModalIn {
  0% { transform: scale(0.7); }
  45% { transform: scale(1.05); }
  80% { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.au-modal-title {
  margin: 0;
  padding: 0.8em 1em 0;
  font-size: 1.875em;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: #545454;
}
.au-modal-body {
  min-height: 0;
  padding: 1em 1.6em 0.3em;
  overflow: hidden;
  display: flex;
}
.au-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 1.25em;
}
.au-modal-btn {
  padding: 0.625em 1.1em;
  border: 0;
  border-radius: 0.25em;
  font-size: 1em;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
}
.au-modal-ok {
  background: #6d28d9;
}
.au-modal-cancel {
  background: #6e7881;
}
.au-modal-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.5);
}
.fx-terms {
  flex: 1;
  max-height: 64vh;
  overflow-y: auto;
  padding: 2px 6px 2px 2px;
  font-size: 13.5px;
  line-height: 1.6;
  text-align: left;
  color: #334155;
}
.fx-terms-intro {
  margin: 0 0 12px;
  color: #475569;
}
.fx-terms details {
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.fx-terms details[open] {
  border-color: #c4b5fd;
}
.fx-terms summary {
  padding: 11px 14px;
  background: #faf9ff;
  font-size: 14px;
  font-weight: 700;
  color: #6d28d9;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.fx-terms summary::-webkit-details-marker {
  display: none;
}
.fx-terms summary::before {
  content: "\25B8";
  display: inline-block;
  margin-right: 8px;
  color: #a78bfa;
  transition: transform 0.15s ease;
}
.fx-terms details[open] summary::before {
  transform: rotate(90deg);
}
.fx-terms details > b {
  display: block;
  margin: 12px 14px 2px;
  font-size: 13.5px;
  color: #1e293b;
}
.fx-terms details > p {
  margin: 2px 14px;
}
.fx-terms details > p:last-child {
  margin-bottom: 12px;
}

/* ---------- responsive / chuyển động ---------- */
@media (max-width: 860px) {
  .au-lang {
    top: 12px;
    right: 12px;
  }
}
@media (max-width: 640px) {
  /* màn hẹp: tiêu đề dài xuống dòng thì emoji vẫn dính đầu dòng chữ (flex sẽ tách emoji ra xa) */
  .au-form-head-title {
    display: block;
    text-wrap: balance;
  }
  .au-form-head-wave {
    margin-right: 2px;
  }
  .au-sup {
    right: 14px;
    bottom: 14px;
  }
  .au-sup-panel {
    width: min(290px, 86vw);
  }
}
@media (prefers-reduced-motion: reduce) {
  .au-form-head-wave,
  .au-modal[open] {
    animation: none;
  }
}
