:root {
  --primary-blue: #18a0fb;
  --primary-dark: #0077d4;
  --accent-green: #58c934;
  --badge-red: #f53d2d;
  --bg-page: #f4f8fc;
  --text-dark: #1f2d3d;
  --text-muted: #5c6b7a;
  --border-light: #e2ecf5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-page);
  color: var(--text-dark);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 15px;
}

.mobile-only {
  display: none !important;
}

/* ================= HEADER PC ================= */
.pc-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 80, 160, 0.08);
}

.pc-header-top {
  /* Thay hình nền thanh header giao diện máy tính tại đây */
  background: url("images/background.gif") center/cover no-repeat, linear-gradient(90deg, #dff3ff, #ffffff, #dff3ff);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.pc-header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 54px;
  object-fit: contain;
}

.pc-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.pc-auth-buttons {
  display: flex;
  gap: 10px;
}

.btn {
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-login {
  background: linear-gradient(180deg, #32b8ff, #0b84e6);
  color: #fff;
  padding: 8px 22px;
  font-size: 13px;
}

.btn-register {
  background: linear-gradient(180deg, #7be049, #3bb01b);
  color: #fff;
  padding: 8px 26px;
  font-size: 13px;
}

.pc-quick-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
}

.pc-quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-red {
  background: var(--badge-red);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
}

.vn-clock {
  color: #0e6fb8;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.75);
  padding: 2px 8px;
  border-radius: 12px;
}

/* Menu Sảnh Game PC */
.pc-nav {
  background: #ffffff;
}

.pc-nav-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  overflow-x: auto;
}

.pc-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.pc-nav-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.pc-nav-item:hover,
.pc-nav-item.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
}

/* ================= HEADER MOBILE ================= */
.mobile-header {
  display: none;
}

/* ================= BANNER SLIDER 6 HÌNH ================= */
.banner-section {
  width: 100%;
  background: #e9f5ff;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.45s ease-in-out;
  will-change: transform;
}

.slide {
  min-width: 100%;
  aspect-ratio: 1920 / 420;
  background: #d8edff;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 64px;
  border: none;
  background: rgba(24, 160, 251, 0.78);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s;
}

.slider-btn:hover {
  background: rgba(0, 119, 212, 0.95);
}

.prev-btn {
  left: 0;
  border-radius: 0 8px 8px 0;
}

.next-btn {
  right: 0;
  border-radius: 8px 0 0 8px;
}

.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--primary-blue);
  cursor: pointer;
  transition: all 0.25s;
}

.slider-dot.active {
  width: 24px;
  border-radius: 10px;
  background: var(--primary-blue);
}

/* ================= MARQUEE THÔNG BÁO ================= */
.marquee-section {
  padding: 12px 0;
}

.marquee-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 6px 12px;
  box-shadow: 0 2px 8px rgba(0, 119, 212, 0.06);
}

.marquee-icon {
  color: var(--primary-blue);
  font-size: 18px;
  flex-shrink: 0;
}

.marquee-content {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-text {
  display: inline-block;
  font-size: 13px;
  color: var(--text-dark);
  padding-left: 100%;
  animation: marqueeScroll 22s linear infinite;
}

.marquee-bar:hover .marquee-text {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.marquee-all-btn {
  background: linear-gradient(90deg, #3fb8ff, #168be8);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* ================= NỘI DUNG CHÍNH PC ================= */
.pc-main {
  padding: 16px 0 60px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.section-heading i {
  font-size: 22px;
  color: var(--primary-blue);
}

.section-heading h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.ambassador-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr; /* Khung video trái rộng hơn khung ảnh phải */
  gap: 16px;
  align-items: stretch;
}

.ambassador-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 14px rgba(0, 70, 140, 0.1);
}

.ambassador-video-card {
  aspect-ratio: 16 / 9;
}

.ambassador-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.ambassador-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.live-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2; /* Đảm bảo nút luôn nổi phía trên video */
  background: #e52323;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Lưới game PC */
.pc-game-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.game-card {
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  border: none;
  box-shadow: 0 3px 8px rgba(0, 70, 140, 0.12);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(24, 160, 251, 0.25);
}

.game-card-thumb {
  width: 100%;
  background: transparent;
  overflow: hidden;
}

.game-card-thumb img {
  width: 100%;
  height: auto; /* Giữ nguyên tỷ lệ gốc của ảnh để không cắt chữ ở đáy */
  display: block;
}

.game-card-title {
  padding: 7px 6px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-dark);
}

/* ================= FLOATING WIDGETS ================= */
.floating-left,
.floating-right {
  position: fixed;
  bottom: 90px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.floating-left {
  left: 12px;
}

.floating-right {
  right: 12px;
  align-items: center;
}

.float-item {
  position: relative;
  width: 86px;
}

.float-item img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.float-close {
  position: absolute;
  top: -8px;
  left: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.cskh-float {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #3ac4ff, #0877d6);
  border: 4px solid #f7ca45;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.scroll-top-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(180deg, #ff9933, #ff5e00);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   GIAO DIỆN ĐIỆN THOẠI (RESPONSIVE <= 768px)
   ========================================================= */
@media (max-width: 768px) {
  body {
    padding-bottom: 68px; /* Chừa chỗ cho thanh bottom nav */
  }

  .pc-only,
  .pc-header {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }

  /* Header Mobile */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 54px;
    padding: 0 12px;
    /* Thay hình nền thanh header giao diện điện thoại tại đây */
    background: url("images/background-mb.gif") center/cover no-repeat, linear-gradient(90deg, #dff3ff, #ffffff, #dff3ff);
    border-bottom: 1px solid var(--border-light);
  }

  .mobile-header-icon {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--primary-blue);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .mobile-header-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
  }

  .mobile-logo img {
    height: 38px;
    object-fit: contain;
  }

  .mobile-header-spacer {
    width: 36px;
  }

  /* Banner Mobile */
  .slide {
    aspect-ratio: 42 / 12;
  }

  .slider-btn {
    display: none;
  }

  /* Marquee Mobile */
  .marquee-section {
    padding: 8px 0 6px;
  }

  .marquee-section .container {
    padding: 0 10px;
  }

  .marquee-bar {
    border-radius: 10px;
    padding: 6px 10px;
  }

  .marquee-mail-btn {
    color: var(--primary-blue);
    font-size: 18px;
    flex-shrink: 0;
  }

  /* Khối Đăng nhập & 4 nút tiện ích Mobile */
.mobile-action-bar {
  margin: 0 8px 6px;
  padding: 10px 10px 12px;
  gap: 12px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #8bd5ff;
  border-top: none;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 3px 8px rgba(24, 160, 251, 0.08);
}

.mobile-auth-col {
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.btn-login-mobile {
  background: linear-gradient(180deg, #52ceff, #2cb9f9);
  color: #ffffff;
  padding: 8px 6px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 7px;
  box-shadow: 0 2px 5px rgba(44, 185, 249, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.btn-register-mobile {
  background: #ffffff;
  color: #16b1f5;
  border: 1px solid #cceeff;
  padding: 7px 6px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 7px;
  box-shadow: 0 2px 5px rgba(0, 120, 200, 0.12);
}

.mobile-quick-col {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.m-quick-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #2f546d;
  text-align: center;
}

.m-quick-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #8fd6ff;
  background: radial-gradient(circle at 50% 35%, #ffffff, #eef9ff);
  box-shadow: 0 2px 6px rgba(24, 160, 251, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5px; /* Nếu ảnh của bạn đã có sẵn khung tròn, đổi thành padding: 0; và xóa border/background */
}

.m-quick-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Nhãn đỏ chữ vàng có mũi nhọn giống bản gốc */
.m-badge {
  position: absolute;
  top: -8px;
  right: -2px;
  background: linear-gradient(180deg, #ff2a1f, #d90000);
  color: #ffe838;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(217, 0, 0, 0.35);
  z-index: 2;
}

.m-badge::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 6px;
  border-width: 5px 4px 0 4px;
  border-style: solid;
  border-color: #d90000 transparent transparent transparent;
}

  /* Sảnh Game Mobile: Sidebar trái + Grid 3 cột phải */
  .mobile-lobby {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 8px;
  }

  .mobile-sidebar {
    width: 78px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 62px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }

  .sidebar-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    background: #ffffff;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 60, 120, 0.04);
  }

  .sidebar-tab img {
    width: 28px;
    height: 28px;
    object-fit: contain;
  }

  .sidebar-tab i {
    font-size: 22px;
    color: var(--primary-blue);
  }

  .sidebar-tab.active {
    background: linear-gradient(180deg, #e7f6ff, #d3eeff);
    border-color: var(--primary-blue);
    color: var(--primary-dark);
  }

  .mobile-game-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .mobile-game-grid .game-card-title {
    font-size: 11px;
    padding: 5px 4px;
  }

  /* Thu gọn floating widget trên Mobile */
  .float-item {
    width: 64px;
  }

  .floating-left,
  .floating-right {
    bottom: 80px;
  }

  /* Thanh Bottom Nav Mobile */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 66px;
  background: #ffffff;
  border-top: 1px solid #d8effd;
  border-radius: 24px 24px 0 0; /* Bo tròn 2 góc trên giống bản gốc */
  box-shadow: 0 -4px 14px rgba(24, 160, 251, 0.14);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 4px 6px 0;
  z-index: 100;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #2c5b70; /* Màu chữ trạng thái thường */
  white-space: nowrap;
}

.bottom-nav-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.bottom-nav-item.active {
  color: #16b1f5; /* Màu chữ xanh sáng khi đang chọn */
}
}
/* ================= MODAL ĐĂNG NHẬP / ĐĂNG KÝ ================= */
body.modal-open {
  overflow: hidden;
}

.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 25, 55, 0.55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.auth-modal-overlay.show {
  display: flex;
}

.auth-modal-box {
  position: relative;
  width: 100%;
  max-width: 920px;
  background: linear-gradient(160deg, #f3fbff 0%, #ffffff 55%, #e5f6ff 100%);
  border: 2px solid #b5e4ff;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 65, 130, 0.28);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  padding: 22px;
  gap: 24px;
}

.auth-mobile-top {
  display: none;
}

/* Cột trái PC: Poster */
.auth-poster {
  flex: 1.12;
  border-radius: 12px;
  overflow: hidden;
  background: #e6f4ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Cột phải PC: Form */
.auth-form-panel {
  flex: 0.95;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 8px 10px;
}

.auth-close-btn {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #18a0fb;
  background: #ffffff;
  color: #18a0fb;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-close-btn:hover {
  background: #18a0fb;
  color: #fff;
}

.auth-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.auth-ambassador-text {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.35;
  color: #1f2d3d;
}

.auth-ambassador-text span {
  font-size: 12px;
  color: #4f6478;
}

.auth-brand-logos {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-signature {
  height: 34px;
  object-fit: contain;
}

.auth-divider {
  width: 1px;
  height: 30px;
  background: #9fc5dd;
}

.auth-small-logo {
  height: 32px;
  object-fit: contain;
}

.auth-form.hidden {
  display: none;
}

.auth-fields-wrap {
  display: flex;
  flex-direction: column;
}

.auth-input-group {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #cde8fa;
  border-radius: 8px;
  padding: 0 12px;
  height: 44px;
  margin-bottom: 12px;
  gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input-group:focus-within {
  border-color: #18a0fb;
  box-shadow: 0 0 0 3px rgba(24, 160, 251, 0.14);
}

.auth-input-icon {
  color: #1ca8f8;
  font-size: 17px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.auth-input-group input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13.5px;
  color: #1f2d3d;
  background: transparent;
  min-width: 0;
}

.toggle-password {
  border: none;
  background: transparent;
  color: #5c758d;
  font-size: 15px;
  cursor: pointer;
  padding: 4px;
}

.phone-prefix {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #2f4356;
  padding-right: 8px;
  border-right: 1px solid #d9ecf9;
  flex-shrink: 0;
}

.vn-flag-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #da251d;
  color: #ffff00;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #1f2d3d;
  margin: 4px 0 10px;
  cursor: pointer;
}

.auth-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #18a0fb;
  cursor: pointer;
}

.terms-link {
  color: #1698e8;
  font-weight: 700;
  text-decoration: underline;
}

.auth-security-note {
  text-align: center;
  font-size: 12.5px;
  line-height: 1.45;
  color: #2b3e50;
  margin-bottom: 12px;
}

.text-danger {
  color: #d92626;
  font-weight: 700;
}

.auth-error-msg {
  min-height: 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: #e02424;
  text-align: center;
  margin-bottom: 8px;
}

.auth-submit-btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #3ac3ff 0%, #0997f2 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(9, 151, 242, 0.35);
  transition: transform 0.15s, opacity 0.2s;
}

.auth-submit-btn:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

.auth-switch-text {
  text-align: center;
  font-size: 13px;
  color: #2c3e50;
  margin: 12px 0;
}

.auth-switch-text a {
  color: #1298eb;
  font-weight: 800;
}

.auth-forgot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.forgot-btn {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  padding: 8px 6px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.forgot-phone {
  background: linear-gradient(180deg, #33bfff, #0e95e8);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(14, 149, 232, 0.3);
}

.forgot-email {
  background: #ffffff;
  color: #1094e6;
  border: 1px solid #bfe4fb;
  box-shadow: 0 3px 8px rgba(0, 90, 160, 0.08);
}

/* ===== GIAO DIỆN FORM ĐIỆN THOẠI (<= 768px) ===== */
@media (max-width: 768px) {
  .auth-modal-overlay {
    padding: 0;
    align-items: flex-start;
    background: #ffffff;
  }

  .auth-modal-box {
    max-width: 100%;
    min-height: 100vh;
    height: 100vh;
    overflow-y: auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff;
    padding: 0;
    gap: 0;
    flex-direction: column;
  }

  .auth-close-btn,
  .auth-security-note {
    display: none;
  }

  .auth-mobile-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 14px 16px 8px;
    order: 1;
  }

  .auth-mobile-back {
    position: absolute;
    left: 14px;
    top: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #14a7f5;
    color: #ffffff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .auth-mobile-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .auth-mobile-brand img {
    height: 44px;
    object-fit: contain;
  }

  .auth-mobile-brand p {
    font-size: 11px;
    font-weight: 800;
    color: #14a7f5;
    letter-spacing: 0.3px;
  }

  .auth-form-panel {
    order: 2;
    flex: none;
    padding: 8px 16px 18px;
  }

  .auth-poster {
    order: 3;
    flex: none;
    border-radius: 0;
    margin-top: 6px;
  }

  .auth-remember-row {
    justify-content: center;
  }

  /* Đổi thứ tự Họ tên lên trên Số điện thoại ở form Đăng ký Mobile giống hình 4 */
  .field-username { order: 1; }
  .field-password { order: 2; }
  .field-fullname { order: 3; }
  .field-phone    { order: 4; }
  .phone-icon-pc  { display: none; }

  .forgot-btn {
    border-radius: 10px;
    padding: 10px 8px;
  }
}