:root {
  /* Ninja red/black theme tokens */
  --bg0: #07070b;
  --bg1: #0d0f16;
  --surface: rgba(20, 22, 31, 0.82);
  --surface-2: rgba(26, 29, 41, 0.86);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);

  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);

  --red: #e11d48;
  --red-2: #ff3b6a;
  --amber: #fbbf24;
  --link: #ffd2dc;

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.38);

  /* Legacy vars kept for compatibility */
  --main0: #0b0c10;
  --main1: #161827;
  --main2: var(--red);
  --main3: #0b0c10;
  --main4: rgba(255, 255, 255, 0.06);
  --main5: rgba(255, 255, 255, 0.1);
  --text-color1: rgba(255, 255, 255, 0.92);
  --text-color2: rgba(255, 255, 255, 0.86);
  --text-color3: rgba(255, 255, 255, 0.86);
  --text-color4: rgba(255, 255, 255, 0.86);
  --text-color5: rgba(255, 255, 255, 0.65);
  --text-color6: rgba(255, 255, 255, 0.95);
  --tbl-bg1: rgba(255, 255, 255, 0.06);
  --tbl-bg2: rgba(255, 255, 255, 0.06);
  --line-flat1: rgba(255, 255, 255, 0.12);
  --line-flat2: rgba(255, 255, 255, 0.12);
  --nav-bg: rgba(225, 29, 72, 0.16);
  --footer-bg: rgba(225, 29, 72, 0.12);
  --link-actor: var(--link);
  --border-color: rgba(255, 255, 255, 0.16);
  --btn-color-suc: #16a34a;
  --btn-color: #22c55e;
}

* {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  box-sizing: border-box;
}

body {
  background: radial-gradient(1200px 700px at 20% 0%, rgba(225, 29, 72, 0.18), transparent 50%),
    radial-gradient(900px 550px at 80% 10%, rgba(251, 191, 36, 0.12), transparent 48%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--text);
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 10px 18px;
}

/* Desktop: make layout much wider */
@media (min-width: 920px) {
  .container {
    max-width: 1240px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1380px;
  }
}

@media (min-width: 1500px) {
  .container {
    max-width: 1520px;
  }
}

/* Page width similar to ninjamobile: centered, generous */
@media (max-width: 520px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* --- Mobile vertical layout (phone) --- */
@media (max-width: 720px) {
  /* Reserve space for bottom tabbar */
  body {
    padding-bottom: 72px;
  }

  .nav__list a {
    padding: 9px 12px;
    font-size: 12px;
    border-radius: 12px;
  }
  .nav__btn {
    padding: 9px 12px;
    border-radius: 12px;
  }

  .nav__brand-logo {
    width: 32px;
    height: 32px;
  }
  .nav__brand-title {
    font-size: 12px;
  }
  .nav__brand-sub {
    font-size: 9px;
  }

  /* Hero: vertical, readable overlay */
  .hero {
    border-radius: 14px;
  }
  .hero__content {
    position: absolute;
    inset: auto 0 0 0;
    padding: 12px 12px 12px;
    gap: 10px;
    text-align: left;
  }
  .hero__headline {
    font-size: 13px;
    line-height: 1.25;
    max-width: 100%;
  }
  .hero__cta {
    gap: 10px;
  }
  .hero__cta .btn {
    width: 100%;
    max-width: 220px;
    justify-content: center;
    padding: 12px 14px;
    font-size: 13px;
    border-radius: 14px;
  }

  /* Social pills: wrap under hero */
  .hero--desktop .hero__aside {
    position: static;
    justify-content: center;
    gap: 10px;
    transform: none;
    pointer-events: auto;
  }
  .hero__social-btn {
    height: 34px;
    padding: 0 14px;
    font-size: 12px;
    border-radius: 999px;
  }

  /* Give space for the pills below hero */
  .content .hero.hero--desktop {
    margin-bottom: 0;
  }

  /* Home news: single column, bigger heading */
  .home-news {
    padding: 12px;
  }
  .home-news__title {
    font-size: 20px;
  }
  .home-news__grid {
    grid-template-columns: 1fr;
  }
  .home-news__featured {
    margin-top: 12px;
  }
  .featured-card {
    display: block;
  }
  .featured-card__media {
    height: 170px;
  }
  /* Footer: vertical columns */
  .site-footer__grid {
    grid-template-columns: 1fr;
    padding: 14px 14px 12px;
    gap: 14px;
  }
  .site-footer__bottom {
    padding: 12px 14px;
    justify-content: center;
    text-align: center;
  }
}

/* Mobile bottom tabbar (ninjamobile-like) */
.mobile-tabbar {
  display: none;
}

@media (max-width: 720px) {
  /* Flex: số tab thay đổi vẫn chia đều chiều ngang (tránh repeat(5) khi thêm/bớt mục) */
  .mobile-tabbar {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(122, 58, 0, 0.96), rgba(74, 31, 0, 0.96));
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 -16px 48px rgba(0,0,0,.55);
  }

  .mobile-tabbar > .mobile-tabbar__item,
  .mobile-tabbar > .nav-account--mobile {
    flex: 1 1 0;
    min-width: 0;
  }

  .mobile-tabbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 850;
    padding: 10px 4px;
    border-radius: 12px;
    min-height: 56px;
    transition: transform .12s ease, filter .12s ease, color .12s ease, background-color .12s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-tabbar__icon {
    font-size: 22px;
    line-height: 1;
    filter: grayscale(10%);
  }

  .mobile-tabbar__text {
    line-height: 1;
    white-space: nowrap;
    font-size: 10px;
    opacity: 0.9;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-tabbar__item.is-active {
    color: rgba(255, 255, 255, 0.96);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 26px rgba(0,0,0,.32);
    transform: translateY(-1px);
  }

  .mobile-tabbar__item.is-active .mobile-tabbar__icon {
    filter: none;
  }

  .mobile-tabbar__item:active {
    transform: translateY(0px) scale(0.99);
  }

  /* Mobile account dropdown (tap "Tài khoản" to open menu) */
  .mobile-tabbar__btn {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: inherit;
    font: inherit;
    cursor: pointer;
  }
  .nav-account--mobile {
    position: relative;
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }
  .nav-account--mobile .nav-account__menu {
    top: auto;
    bottom: calc(100% + 10px);
    right: 0;
    left: auto;
    z-index: 10080;
  }
}

/* --- Download page (taive) --- */
.dl-shell{
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 10px 18px;
}
.dl-hero{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: radial-gradient(900px 260px at 25% 0%, rgba(251,191,36,.18), rgba(0,0,0,0) 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: 0 22px 60px rgba(0,0,0,.35);
  overflow: hidden;
}
.dl-hero__inner{
  padding: 18px 16px 16px;
}
.dl-hero__badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(251,191,36,.16);
  border: 1px solid rgba(251,191,36,.22);
  color: rgba(255,255,255,.92);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .3px;
}
.dl-hero__title{
  margin: 10px 0 6px;
  font-size: 22px;
  font-weight: 950;
  color: rgba(255,255,255,.96);
}
.dl-hero__sub{
  font-size: 12px;
  color: rgba(255,255,255,.70);
  line-height: 1.5;
  max-width: 62ch;
}
.dl-actions{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.dl-btn{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
}
.dl-btn:hover{ filter: brightness(1.06); }
.dl-btn--primary{
  background: linear-gradient(180deg, rgba(251,191,36,.95), rgba(245,158,11,.95));
  color: rgba(10,10,14,.92);
  border-color: rgba(255,255,255,.10);
}
.dl-btn__icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.20);
  font-weight: 950;
}
.dl-btn--primary .dl-btn__icon{
  background: rgba(0,0,0,.14);
}
.dl-btn__text{ display: grid; gap: 2px; }
.dl-btn__label{ font-size: 12px; font-weight: 950; }
.dl-btn__hint{ font-size: 11px; opacity: .82; }

.dl-grid{
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.dl-card{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
}
.dl-card:hover{ filter: brightness(1.06); }
.dl-card__icon img{
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.dl-card__body{ flex: 1 1 auto; }
.dl-card__title{ font-size: 13px; font-weight: 950; margin: 0 0 2px; }
.dl-card__desc{ font-size: 11px; color: rgba(255,255,255,.70); line-height: 1.4; }
.dl-card__chev{ font-size: 18px; opacity: .72; }
.dl-mods{ margin-top: 12px; }

@media (max-width: 720px){
  .dl-actions{ grid-template-columns: 1fr; }
  .dl-grid{ grid-template-columns: 1fr; }
  .dl-hero__title{ font-size: 20px; }
}

.dl-tabs{
  margin-top: 12px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
}
.dl-tab{
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  color: rgba(255,255,255,.78);
  background: transparent;
}
.dl-tab.is-active{
  color: rgba(10,10,14,.92);
  background: linear-gradient(180deg, rgba(251,191,36,.95), rgba(245,158,11,.95));
}

.dl-panel{
  margin-top: 12px;
  padding: 14px 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.dl-panel__title{
  font-weight: 950;
  font-size: 15px;
  margin: 0 0 6px;
}
.dl-panel__desc{
  font-size: 12px;
  color: rgba(255,255,255,.70);
  line-height: 1.5;
}
.dl-version-list{
  margin-top: 12px;
  display: grid;
  gap: 10px;
}
.dl-version{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  padding: 12px;
}
.dl-version__name{
  font-size: 13px;
  font-weight: 950;
  margin-bottom: 8px;
}
.dl-version__meta{
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: rgba(255,255,255,.76);
}
.dl-version__meta span{ color: rgba(255,255,255,.58); }
.dl-version__btn{
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 950;
  font-size: 12px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(251,191,36,.95), rgba(245,158,11,.95));
  color: rgba(10,10,14,.92);
}
.dl-note{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.70);
}
.dl-guide{
  margin-top: 12px;
  padding: 14px 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.dl-guide__title{
  font-weight: 950;
  font-size: 14px;
  margin: 0 0 6px;
}
.dl-guide__sub{
  font-size: 12px;
  color: rgba(255,255,255,.62);
  margin-bottom: 10px;
}
.dl-guide__content{
  font-size: 12px;
  color: rgba(255,255,255,.74);
  line-height: 1.55;
}
.dl-guide__content p{ margin: 0 0 10px; }

.header-top {
  height: 42px;
  background: linear-gradient(90deg, rgba(225, 29, 72, 0.35), rgba(255, 59, 106, 0.18)),
    url(/img/banner-top.png) repeat-x;
  border-radius: 14px 14px 0 0;
  z-index: 100;
}

.header-logo {
  height: 70px;
  margin-top: -10px;
  background: linear-gradient(180deg, rgba(22, 24, 39, 0.9), rgba(14, 15, 22, 0.55));
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.header-bot {
  height: 59px;
  background: linear-gradient(90deg, rgba(225, 29, 72, 0.25), rgba(0, 0, 0, 0)),
    url(/img/banner-bottom.png) repeat-x;
  background-color: rgba(22, 24, 39, 0.7);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.header-logo div {
  display: flex;
  justify-content: center;
  background-color: transparent;
}

.header-logo a img {
  margin-top: -50px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 6px 10px;
  margin: 0 auto 8px;
  max-width: 1080px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.topbar__badge {
  height: 14px;
  width: auto;
  opacity: 0.95;
}

.topbar__text {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.25;
  text-align: left;
}

.site-header__inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  text-decoration: none;
}

.site-header__logo {
  max-width: 160px;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.65));
}

.nav {
  margin-top: -44px;
  /* Trên .content và overlay thông báo trang chủ để nút tài khoản / dropdown bấm được */
  position: relative;
  z-index: 10025;
}

.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(10, 10, 14, 0.85);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 8px;
}

/* Desktop/wide: make header background full-width like ninjamobile */
@media (min-width: 721px){
  .nav{
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 8px 0;
    background: linear-gradient(180deg, #5c2d14 0%, #3d1f0e 55%, #2f180a 100%);
    border-bottom: 1px solid rgba(251, 191, 36, 0.16);
  }
  .nav__row{
    max-width: 1080px;
    margin: 0 auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0 12px;
  }
  .nav__list,
  .nav__actions{
    background: rgba(0, 0, 0, 0.18);
  }
}

.nav__brand {
  display: none;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.96);
  padding: 6px 10px 6px 6px;
  border-radius: 12px;
}

.nav__brand:hover {
  color: #fff;
  text-decoration: none;
}

.nav__brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  object-fit: cover;
  flex-shrink: 0;
}

.nav__brand-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1.15;
  min-width: 0;
}

.nav__brand-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.96);
}

.nav__brand-sub {
  display: none;
  font-size: 11px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nav__list,
.nav__actions {
  /* Group container like ninjamobile */
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 6px;
}

.nav__actions {
  padding: 6px 8px;
}

.banner-bot {
  display: none;
}

.nav__list li {
  display: inline-flex;
}

.nav-drop{
  position: relative;
}
.nav-drop__menu{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 170px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(15, 15, 20, 0.95);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 14px 26px rgba(0,0,0,0.35);
  display: none;
  z-index: 10030;
}
.nav-drop__menu a{
  display: block;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255,255,255,0.92);
  background: transparent;
  border: 1px solid transparent;
  font-weight: 750;
  font-size: 12px;
}
.nav-drop__menu a:hover{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.10);
  transform: none;
}
.nav-drop:hover .nav-drop__menu{
  display: block;
}

/* Tắt hẳn dropdown "Tin tức" */
.nav-drop__menu{
  display: none !important;
}

.nav__list a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 750;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease;
}

.nav__list a:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.nav a:hover {
  text-decoration: underline;
  cursor: pointer;
  opacity: 1;
}

.nav__list .nav-now a {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.96), rgba(245, 158, 11, 0.96));
  color: rgba(10, 10, 14, 0.92);
}

.nav__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* Account dropdown (desktop/mobile header + forum inline) */
.nav-account {
  position: relative;
}

.nav-account__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.95);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 850;
}

.nav-account__btn:hover { filter: brightness(1.06); }

.nav-account__pill {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(251, 191, 36, 0.95);
  color: rgba(10, 10, 14, 0.92);
  font-weight: 950;
}

.nav-account__name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-account__chev {
  opacity: 0.9;
  font-size: 12px;
}

.nav-account__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: rgba(255, 255, 255, 0.96);
  color: #222;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 22px 60px rgba(0,0,0,.35);
  padding: 6px;
  display: none;
  z-index: 10060;
}

.nav-account.is-open .nav-account__menu {
  display: block;
}

.nav-account__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(0,0,0,.78);
  font-size: 12px;
  font-weight: 800;
}

.nav-account__menu a:hover { background: rgba(0,0,0,.06); }
.nav-account__menu a.is-danger { color: #b91c1c; }

.nav-account--inline .nav-account__btn {
  padding: 6px 8px;
  font-size: 12px;
}

.nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.96);
  background: linear-gradient(180deg, rgba(225, 29, 72, 0.95), rgba(159, 18, 57, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.nav__btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.nav__btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

@media (max-width: 520px) {
  .nav__row {
    flex-direction: column;
    align-items: stretch;
  }
  .nav__actions {
    justify-content: flex-end;
  }
}

@media (min-width: 920px) {
  /* Desktop: một hàng ngang — logo | menu | đăng nhập/đăng ký */
  .site-header {
    display: none;
  }
  .nav {
    margin-top: 0;
  }
  .nav__brand {
    display: inline-flex;
  }
  .nav__row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, #5c2d14 0%, #3d1f0e 55%, #2f180a 100%);
    border: 1px solid rgba(251, 191, 36, 0.22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
  .nav__brand-title {
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fbbf24;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  }
  .nav__brand-sub {
    display: block;
    font-size: 10px;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.92);
    margin-top: 1px;
  }
  .nav__brand-logo {
    border-color: rgba(251, 191, 36, 0.35);
  }
  .nav__list {
    flex: 1 1 auto;
    justify-content: center;
    flex-wrap: wrap;
    min-width: 0;
  }
  .nav__actions {
    flex: 0 0 auto;
  }
}

/* Tablet / hẹp: giống mobile ninjamobile — có logo góc trái, không bị “mất logo” 721–919px */
@media (max-width: 919px) {
  .site-header {
    display: none !important;
  }
  .nav {
    margin-top: 0 !important;
  }
  .nav__brand {
    display: inline-flex !important;
    align-items: center;
  }
  .nav__row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "list list";
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, #5c2d14 0%, #3d1f0e 55%, #2f180a 100%);
    border: 1px solid rgba(251, 191, 36, 0.22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
  .nav__brand {
    grid-area: brand;
    justify-self: start;
  }
  .nav__actions {
    grid-area: actions;
  }
  .nav__list {
    grid-area: list;
    justify-content: center;
  }
  .nav__brand-sub {
    display: block;
  }
  .nav__brand-title {
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fbbf24;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  }
  .nav__brand-sub {
    font-size: 10px;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.92);
    margin-top: 1px;
    text-decoration: none;
  }
  .nav__brand-logo {
    border-color: rgba(251, 191, 36, 0.35);
  }
}

/* Điện thoại (có tabbar dưới): chỉ còn logo/tên — ẩn menu ngang + nút đăng nhập/đăng ký trên nav (hero vẫn có Tải game + Đăng ký) */
@media (max-width: 720px) {
  .nav__row {
    grid-template-columns: 1fr;
    grid-template-areas: "brand";
  }
  .nav__actions {
    display: none !important;
  }
  .nav__list {
    display: none !important;
  }
}

/* Hero giống style ninjamobile */
.hero-fullbleed{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 10px;
}
.hero-fullbleed .hero{
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero__bg {
  width: 100%;
  display: block;
  height: auto;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.0) 35%, rgba(0, 0, 0, 0.72) 100%);
}

.hero__logo-banner{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: min(860px, 92%);
  height: auto;
  max-height: min(420px, 72%);
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.55));
  pointer-events: none;
}

.hero__content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__headline {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  text-shadow: 0 10px 20px rgba(0,0,0,.55);
}

.hero__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero__cta--single{
  justify-content: center;
}

.hero__cta .btn {
  padding: 10px 14px;
  border-radius: 12px;
}

/* Desktop: làm nút Tải game/Đăng ký to hơn theo chiều ngang */
@media (min-width: 920px){
  .hero__cta .btn{
    padding: 12px 28px;
    min-width: 180px;
    font-size: 14px;
    font-weight: 850;
  }
}

.hero__cta .btn--dark {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

/* Push news a bit lower on homepage */
.home-news{ margin-top: 14px; }

/* Portrait / narrow screens: make banner taller */
@media (max-width: 920px){
  .hero-fullbleed .hero__bg{
    height: 520px;
    object-fit: cover;
    object-position: center;
  }
  .hero__cta{
    justify-content: center;
  }
}

/* Mobile portrait: style like ninjamobile (centered overlay + nicer crop) */
@media (max-width: 720px){
  .hero-fullbleed{
    margin-top: 8px;
  }
  .hero-fullbleed .hero__bg{
    height: 440px;
    object-fit: cover;
    object-position: center top;
  }
  .hero__overlay{
    background: radial-gradient(900px 360px at 50% 45%, rgba(0,0,0,0.25), rgba(0,0,0,0.78));
  }
  .hero__content{
    inset: 0;
    padding: 16px 14px;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
  }
  .hero__logo-banner{
    width: min(520px, 92%);
    max-height: min(320px, 56%);
    top: 46%;
  }
  .hero--desktop .hero__kicker{
    font-size: 20px;
    font-weight: 950;
  }
  .hero__headline{
    max-width: 520px;
    font-size: 13px;
    line-height: 1.35;
  }
  .hero__cta{
    width: 100%;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin-top: auto;
    margin-bottom: 18px;
    align-self: center;
    max-width: 440px;
  }
  .hero__cta .btn{
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
  }
  /* giống hình mẫu: ẩn dãy social pills trong banner */
  .hero__aside{
    display: none;
  }
  /* đẩy khối tin tức xuống thêm chút */
  .home-news{ margin-top: 18px; }
}

.hero__social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero__chip:hover { filter: brightness(1.06); }

/* --- Home (desktop-like) layout inspired by Ninja School Mobile --- */
.hero--desktop .hero__kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 10px 20px rgba(0,0,0,.55);
}

.hero--desktop .hero__aside {
  position: static;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 10px;
}

.hero__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.hero__social-btn:hover { filter: brightness(1.07); }

.hero__social-btn::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-right: 7px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.85);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.hero__social-btn--fb::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13.5 22v-8h2.6l.4-3H13.5V9.1c0-.9.3-1.6 1.6-1.6H16.6V4.8c-.3 0-1.4-.1-2.7-.1-2.7 0-4.4 1.6-4.4 4.6V11H7v3h2.5v8h4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13.5 22v-8h2.6l.4-3H13.5V9.1c0-.9.3-1.6 1.6-1.6H16.6V4.8c-.3 0-1.4-.1-2.7-.1-2.7 0-4.4 1.6-4.4 4.6V11H7v3h2.5v8h4z'/%3E%3C/svg%3E");
}
.hero__social-btn--yt::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21.6 7.2a3 3 0 0 0-2.1-2.1C17.7 4.6 12 4.6 12 4.6s-5.7 0-7.5.5A3 3 0 0 0 2.4 7.2 31 31 0 0 0 2 12a31 31 0 0 0 .4 4.8 3 3 0 0 0 2.1 2.1c1.8.5 7.5.5 7.5.5s5.7 0 7.5-.5a3 3 0 0 0 2.1-2.1A31 31 0 0 0 22 12a31 31 0 0 0-.4-4.8ZM10 15.5v-7l6 3.5-6 3.5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21.6 7.2a3 3 0 0 0-2.1-2.1C17.7 4.6 12 4.6 12 4.6s-5.7 0-7.5.5A3 3 0 0 0 2.4 7.2 31 31 0 0 0 2 12a31 31 0 0 0 .4 4.8 3 3 0 0 0 2.1 2.1c1.8.5 7.5.5 7.5.5s5.7 0 7.5-.5a3 3 0 0 0 2.1-2.1A31 31 0 0 0 22 12a31 31 0 0 0-.4-4.8ZM10 15.5v-7l6 3.5-6 3.5Z'/%3E%3C/svg%3E");
}
.hero__social-btn--tt::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16 3c.5 2.9 2.2 4.6 5 5v4.1c-1.8.1-3.5-.4-5-1.3v6.4c0 4-3.2 7.2-7.2 7.2S1.6 21 1.6 17s3.2-7.2 7.2-7.2c.4 0 .8 0 1.2.1v4.2c-.4-.1-.8-.2-1.2-.2-1.7 0-3.1 1.4-3.1 3.1s1.4 3.1 3.1 3.1 3.1-1.4 3.1-3.1V3h4Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16 3c.5 2.9 2.2 4.6 5 5v4.1c-1.8.1-3.5-.4-5-1.3v6.4c0 4-3.2 7.2-7.2 7.2S1.6 21 1.6 17s3.2-7.2 7.2-7.2c.4 0 .8 0 1.2.1v4.2c-.4-.1-.8-.2-1.2-.2-1.7 0-3.1 1.4-3.1 3.1s1.4 3.1 3.1 3.1 3.1-1.4 3.1-3.1V3h4Z'/%3E%3C/svg%3E");
}
.hero__social-btn--zl::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3c-5 0-9 3.2-9 7.2C3 14.1 6.7 17 11.3 17c.6 0 1.1 0 1.7-.1l3.3 2.1c.4.3 1-.1.9-.6l-.7-2.7c2.9-1.2 4.5-3.3 4.5-5.5C21 6.2 17 3 12 3Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3c-5 0-9 3.2-9 7.2C3 14.1 6.7 17 11.3 17c.6 0 1.1 0 1.7-.1l3.3 2.1c.4.3 1-.1.9-.6l-.7-2.7c2.9-1.2 4.5-3.3 4.5-5.5C21 6.2 17 3 12 3Z'/%3E%3C/svg%3E");
}

/* Modal (Zalo groups) */
.site-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}
.site-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}
.site-modal__dialog {
  position: relative;
  width: min(560px, calc(100% - 28px));
  margin: 70px auto 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(13, 15, 22, 0.95), rgba(10, 12, 18, 0.92));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.site-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-modal__title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-modal__logo {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.92);
  background: radial-gradient(circle at 30% 30%, rgba(59,130,246,0.9), rgba(37,99,235,0.9));
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.site-modal__title {
  font-weight: 950;
  font-size: 16px;
}
.site-modal__sub {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
}
.site-modal__x {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  cursor: pointer;
}
.site-modal__x:hover { filter: brightness(1.08); }
.site-modal__body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
}
.site-modal__section {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}
.site-modal__section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.4px;
}
.site-modal__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.95);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}
.site-modal__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}
.site-modal__item:hover { filter: brightness(1.06); }
.site-modal__item-logo {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(59, 130, 246, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.site-modal__item-text {
  font-weight: 900;
  font-size: 13px;
}

.home-news {
  margin-top: 10px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  padding: 14px;
}

.home-news__head {
  text-align: center;
  padding: 6px 6px 12px;
}
.home-news__title {
  margin: 0;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0.2px;
}
.home-news__sub {
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.home-news__grid {
  display: grid;
  gap: 12px;
  margin-bottom: 2px;
}

.home-news__featured {
  margin-top: 0;
}

.home-news__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-news__list-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 6px;
  color: rgba(255, 255, 255, 0.92);
}
.home-news__list-icon {
  color: rgba(251, 191, 36, 0.98);
  text-shadow: 0 10px 18px rgba(0,0,0,0.45);
  font-size: 14px;
  line-height: 1;
}
.home-news__list-title {
  font-weight: 950;
  letter-spacing: 0.3px;
  font-size: 14px;
}

.news-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  text-decoration: none;
}
.news-row__main { min-width: 0; }
.news-row__title {
  display: inline-block;
  font-weight: 900;
  font-size: 13px;
  text-decoration: none;
  color: rgba(255,255,255,0.92);
}
.news-row__title:hover { text-decoration: underline; }
.news-row__desc {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-row__chev {
  font-size: 18px;
  color: rgba(255,255,255,0.55);
}

.news-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  color: rgba(10, 10, 14, 0.92);
  background: rgba(251, 191, 36, 0.95);
}
.news-pill--danger {
  background: rgba(225, 29, 72, 0.96);
  color: rgba(255,255,255,0.95);
}
.news-pill--muted {
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.16);
}

.featured-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 14px 26px rgba(0,0,0,0.28);
}
.featured-card--link{
  display: block;
  color: inherit;
  text-decoration: none;
}
.featured-card--link:hover{
  filter: brightness(1.03);
}
.featured-card__media {
  height: 190px;
  background:
    radial-gradient(700px 240px at 10% 10%, rgba(251,191,36,0.18), transparent 50%),
    radial-gradient(800px 280px at 80% 20%, rgba(225,29,72,0.18), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.65));
}
.featured-card__body { padding: 12px 12px 14px; }
.featured-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.featured-card__time { font-size: 10px; color: rgba(255,255,255,0.65); }
.featured-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.2px;
}
.featured-card__desc {
  margin: 8px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  line-height: 1.4;
}
.featured-card__btn {
  display: inline-flex;
  margin-top: 12px;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
  color: rgba(255,255,255,0.95);
  background: linear-gradient(180deg, rgba(225,29,72,0.95), rgba(159,18,57,0.95));
  border: 1px solid rgba(255,255,255,0.14);
}
.featured-card__btn:hover { filter: brightness(1.06); }

.home-news__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  width: 100%;
  align-items: stretch;
}
@media (min-width: 900px) {
  .home-news__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}
.post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}
.post-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  background: rgba(0,0,0,0.2);
}
.post-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  pointer-events: none;
}
.post-card__img {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.55)),
    radial-gradient(600px 220px at 20% 10%, rgba(225,29,72,0.22), transparent 55%);
}
.post-card__img--alt {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.55)),
    radial-gradient(620px 240px at 20% 10%, rgba(251,191,36,0.22), transparent 55%);
}
.post-card__img--alt2 {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.55)),
    radial-gradient(620px 240px at 80% 20%, rgba(34,197,94,0.18), transparent 55%);
}
.post-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 12px;
  min-height: 0;
}
.post-card__title {
  color: rgba(255,255,255,0.92);
  font-weight: 950;
  font-size: 12px;
  line-height: 1.3;
  margin: 0;
}
.post-card__excerpt {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255,255,255,0.62);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 10px;
  color: rgba(255,255,255,0.55);
}
.post-card__foot-left,
.post-card__foot-mid {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
}
.post-card__foot-read {
  margin-left: auto;
  font-weight: 950;
  font-size: 11px;
  color: rgba(251, 191, 36, 0.95);
  white-space: nowrap;
}
.post-card:hover { filter: brightness(1.03); }

/* News article content (from DB HTML) */
.news-article{
  font-size: 13px;
  line-height: 1.7;
  color: rgba(20, 20, 24, 0.95);
}
.news-article img{
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.news-article a{
  color: #8a3e12;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.news-article h1,.news-article h2,.news-article h3{
  margin: 14px 0 8px;
  color: #4a1f07;
}
.news-article p{ margin: 0 0 10px; }

/* News page (tintuc) */
.news-tabs{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 10px 10px 12px;
}
.news-tab{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.news-tab.is-active{
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.96), rgba(245, 158, 11, 0.96));
  color: rgba(10,10,14,0.92);
  border-color: rgba(0,0,0,0.08);
}

.news-page-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}
@media (min-width: 900px){
  .news-page-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (max-width: 340px){
  .news-page-grid{ grid-template-columns: 1fr; }
}

.news-card{
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}
.news-card:hover{ filter: brightness(1.03); }
.news-card__media{
  position: relative;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  background: rgba(0,0,0,0.2);
}
.news-card__badge{
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  pointer-events: none;
}
.news-card__img{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 240px at 10% 10%, rgba(251,191,36,0.18), transparent 50%),
    radial-gradient(800px 280px at 80% 20%, rgba(225,29,72,0.18), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.65));
}
.news-card__body{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 12px;
  min-height: 0;
}
.news-card__title{
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-weight: 950;
  font-size: 12px;
  line-height: 1.3;
}
.news-card__excerpt{
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255,255,255,0.62);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card__foot{
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 10px;
  color: rgba(255,255,255,0.55);
}
.news-card__foot-left,
.news-card__foot-mid{
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
}
.news-card__foot-read{
  margin-left: auto;
  font-weight: 950;
  font-size: 11px;
  color: rgba(251, 191, 36, 0.95);
  white-space: nowrap;
}

/* Community floating button + drawer */
.community-fab{
  position: fixed;
  right: 12px;
  bottom: 92px;
  z-index: 10060;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.96), rgba(245, 158, 11, 0.96));
  color: rgba(10,10,14,0.92);
  font-weight: 950;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 26px rgba(0,0,0,0.28);
  cursor: pointer;
  user-select: none;
}
.community-fab--mini{
  gap: 10px;
}
.community-fab__icons{
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.community-fab__icon{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
}
.community-fab__icon--fb{ background: #1877f2; }
.community-fab__icon--yt{ background: #ff0000; }
.community-fab__icon--zl{ background: #2563eb; font-size: 10px; padding: 0 6px; width: auto; }
.community-fab__label[data-open="1"]{
  font-size: 18px;
  line-height: 1;
}
.community-drawer{
  position: fixed;
  right: 12px;
  bottom: 142px;
  width: min(320px, calc(100vw - 24px));
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(15,15,20,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  z-index: 10061;
  overflow: hidden;
}
.community-drawer__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.community-drawer__title{ font-weight: 950; }
.community-drawer__close{
  height: 28px;
  width: 28px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
}
.community-drawer__body{ padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.community-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  text-decoration: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
}
.community-item__title{ font-weight: 900; font-size: 12px; }
.community-item__sub{ font-size: 11px; opacity: 0.75; margin-top: 2px; }
.community-item__pill{
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.85);
  color: #fff;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.14);
}
.community-more{
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  cursor: pointer;
}
.community-social{
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  margin-top: 6px;
  overflow: hidden;
}
.community-social__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  font-size: 10px;
  flex: 0 0 auto;
}

@media (max-width: 720px){
  .community-fab{ bottom: 78px; }
  /* Mobile: drawer kiểu "stack" gọn bên phải như hình 2 */
  .community-drawer{
    bottom: 128px;
    right: 12px;
    width: min(260px, calc(100vw - 24px));
    border-radius: 18px;
    background: rgba(160, 160, 160, 0.45);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  }
  .community-drawer__head{ display: none; }
  .community-drawer__body{
    padding: 10px;
    gap: 10px;
  }
  .community-item{
    padding: 8px 8px;
    border-radius: 14px;
    background: rgba(0,0,0,0.18);
    border-color: rgba(255,255,255,0.10);
  }
  .community-item__sub{ display: none; }
  .community-item__pill{
    height: 44px;
    min-width: 56px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.95);
    border-color: rgba(255,255,255,0.14);
    font-weight: 950;
  }
  .community-social{
    flex-direction: column;
    gap: 10px;
    margin-top: 2px;
    overflow: visible;
  }
  .community-social__btn{
    height: 44px;
    border-radius: 14px;
    justify-content: flex-start;
    padding: 0 12px 0 44px;
    font-size: 12px;
    font-weight: 950;
    position: relative;
  }

  /* Mobile: hiện icon trên nút social */
  .community-social__btn::before{
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    color: #fff;
    background: rgba(255,255,255,0.14);
  }
  .community-social__btn[aria-label="Facebook"]::before{ content: "f"; background:#1877f2; }
  .community-social__btn[aria-label="YouTube"]::before{ content: "▶"; background:#ff0000; font-size: 12px; }
  .community-social__btn[aria-label="TikTok"]::before{ content: "♪"; background:#111; font-size: 12px; }
  .community-social__btn[aria-label="Group"]::before{ content: "G"; background:#2563eb; font-size: 12px; }

  /* Mobile: khi mở drawer thì nút đổi thành X và ẩn dãy icon */
  .community-fab.is-open{
    width: 40px;
    padding: 0;
  }
  .community-fab.is-open .community-fab__icons{ display: none; }

  /* Khi menu tài khoản mobile mở: đẩy "Cộng đồng" lên để không bị đè */
  body.is-account-open .community-fab{ bottom: 320px; }
  body.is-account-open .community-drawer{ bottom: 370px; }
}

/* Desktop (màn ngang): hiện cụm cộng đồng dạng stack icon bên phải */
@media (min-width: 920px){
  /* không dùng nút "Cộng đồng" dạng chữ */
  .community-fab{ display: none !important; }

  /* drawer luôn hiện, dạng thanh icon */
  .community-drawer{
    display: block !important;
    right: 14px;
    bottom: 120px;
    width: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
  }
  .community-drawer__head{ display: none; }
  .community-drawer__body{
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* social buttons -> icon squares */
  .community-social{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    overflow: visible;
  }
  .community-social__btn{
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 14px;
    font-size: 0; /* ẩn chữ */
    position: relative;
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 14px 26px rgba(0,0,0,0.28);
  }
  .community-social__btn::before{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 950;
    color: #fff;
    content: "•";
  }
  .community-social__btn:nth-child(1){ background: #1877f2; }
  .community-social__btn:nth-child(1)::before{ content: "f"; }
  .community-social__btn:nth-child(2){ background: #ff0000; }
  .community-social__btn:nth-child(2)::before{ content: "▶"; font-size: 18px; }
  .community-social__btn:nth-child(3){ background: #111; }
  .community-social__btn:nth-child(3)::before{ content: "♪"; font-size: 18px; }
  .community-social__btn:nth-child(4){ background: #2563eb; }
  .community-social__btn:nth-child(4)::before{ content: "G"; font-size: 18px; }

  /* Tooltip khi hover: hiện tên bên trái */
  .community-social__btn::after,
  .community-item::after{
    content: attr(aria-label);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(15,15,20,0.92);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.92);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .12s ease, transform .12s ease, visibility .12s ease;
    box-shadow: 0 14px 26px rgba(0,0,0,0.35);
  }
  .community-social__btn:hover::after,
  .community-item:hover::after{
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-2px);
  }

  /* Zalo groups -> mỗi group thành 1 nút Zalo */
  .community-item{
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 14px;
    justify-content: center;
    gap: 0;
    background: #2563eb;
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 14px 26px rgba(0,0,0,0.28);
    position: relative;
  }
  .community-item__left{ display: none; }
  .community-item__pill{
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 12px;
    font-weight: 950;
    color: rgba(255,255,255,0.95);
  }
}

.home-news__more {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
.more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 950;
  font-size: 12px;
  color: rgba(10,10,14,0.92);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.98), rgba(245, 158, 11, 0.98));
  border: 1px solid rgba(255,255,255,0.18);
}
.more-btn:hover { filter: brightness(1.03); }

/* Trang chủ: “Trở lại hành trình” — nội dung SQL full ngang; CTA giữa; dòng phụ sát trái */
.home-journey {
  margin-top: 18px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 10px 8px;
  box-sizing: border-box;
}
.home-journey__inner {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  padding: 18px 16px 20px;
}
.home-journey__col {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.home-journey__title {
  margin: 0 0 14px;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 950;
  letter-spacing: 0.2px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.96);
}
.home-journey__body {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.76);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.home-journey__body--empty {
  opacity: 0.72;
  font-size: 12px;
}
.home-journey__footer {
  margin-top: 22px;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.home-journey__cta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-self: center;
  width: auto;
  max-width: 100%;
}
.home-journey__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 950;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: filter 0.12s ease, transform 0.12s ease;
}
.home-journey__btn--primary {
  color: rgba(10, 10, 14, 0.92);
  background: linear-gradient(180deg, rgba(225, 29, 72, 0.92), rgba(180, 24, 58, 0.92));
  border-color: rgba(255, 255, 255, 0.12);
}
.home-journey__btn--ghost {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.22);
}
.home-journey__btn:hover {
  filter: brightness(1.06);
}
.home-journey__fineprint {
  margin: 0;
  padding: 0;
  text-align: left;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.52);
  letter-spacing: 0.2px;
  align-self: stretch;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

@media (min-width: 920px) {
  .home-journey__inner {
    padding: 22px 32px 28px;
  }
  .home-journey__body {
    font-size: 14px;
  }

  .home-news { padding: 18px; }
  .home-news__grid {
    /* Desktop vẫn theo bố cục mobile: list trước, featured xuống dưới */
    grid-template-columns: 1fr;
    align-items: start;
  }
  .home-news__featured {
    margin-top: 14px;
  }
  /* Featured giống mobile: ảnh trái, nội dung phải */
  .featured-card {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
  }
  .featured-card__media {
    height: auto;
    min-height: 240px;
  }
  .hero--desktop .hero__content {
    inset: auto auto 0 0;
    bottom: 14px;
    /* Canh trái theo khung Tin tức (max-width 1080px, căn giữa) */
    left: calc(50% - 540px + 18px);
    right: auto;
    transform: none;
    width: min(760px, calc(1080px - 36px - 190px));
    padding: 14px 18px 12px;
    align-items: flex-start;
    text-align: left;
  }

  /* Chữ trong banner: nở ngang (không tăng chiều cao) */
  .hero--desktop .hero__headline{
    display: inline-block;
    font-size: 15px;
    transform: scaleX(1.30);
    transform-origin: left center;
  }

  /* Dòng "Ninja School Online" trong banner */
  .hero--desktop .hero__kicker{
    font-size: 16px;
    font-weight: 950;
    display: inline-block;
    transform: scaleX(1.12);
    transform-origin: left center;
  }

  /* Dịch riêng hàng nút trong banner sang phải chút */
  .hero--desktop .hero__cta{
    padding-left: 40x;
  }

  /* Desktop: giảm chiều cao banner */
  .hero-fullbleed .hero__bg{
    height: 560px;
    object-fit: cover;
    object-position: center bottom;
  }
}

.footer {
  height: 57px;
  background: transparent;
  margin-top: 12px;
}

.footer-bg-top {
  margin-top: -52px;
  background: url(/img/footer-top.png) no-repeat;
  height: 48px;
}

.footer-bg {
  margin-top: 31px;
  background: url(/img/footer.png) rgba(225, 29, 72, 0.1) repeat-x;
  height: 26px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

/* New footer (desktop-like) */
.site-footer {
  margin-top: 14px;
}

.site-footer__card{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}

.site-footer__card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
  color: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.site-footer__grid {
  display: grid;
  gap: 18px;
  padding: 18px 18px 14px;
}

.site-footer__col {
  min-width: 0;
}

.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer__avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  object-fit: cover;
}

.site-footer__brand-title {
  font-weight: 950;
  font-size: 14px;
}

.site-footer__brand-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.68);
  margin-top: 1px;
}

.site-footer__desc {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  max-width: 360px;
}

.site-footer__head {
  font-weight: 950;
  font-size: 12px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer__links {
  display: grid;
  gap: 8px;
}

.site-footer__links a,
.site-footer__contact a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 12px;
}

.site-footer__links a:hover,
.site-footer__contact a:hover {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
}

.site-footer__contact {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__social {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.site-footer__social-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.site-footer__social-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

.site-footer__social-btn:hover {
  filter: brightness(1.06);
  background: rgba(255, 255, 255, 0.1);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.site-footer__made {
  white-space: nowrap;
}

@media (min-width: 920px) {
  /* Màn ngang: gom cột vào giữa (không kéo giãn full viewport như 4 cột 1fr) */
  .site-footer__grid {
    max-width: 1080px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    column-gap: clamp(28px, 4vw, 56px);
    row-gap: 20px;
    grid-template-columns: minmax(200px, 1.15fr) minmax(120px, 0.55fr) minmax(120px, 0.55fr) minmax(160px, 0.75fr);
    align-items: start;
  }
}

.content {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.045));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  padding-bottom: 8px;
  padding-left: 2px;
  padding-right: 2px;
  margin-top: 10px;
}

.content--tight {
  padding: 10px;
}

.section-title {
  margin: 0;
  padding: 10px 10px 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.section-subtitle {
  margin: 0;
  padding: 6px 10px 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
}

/* Card list (news-like) */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}

.card {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
}

.card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2px;
  background: rgba(225, 29, 72, 0.22);
  border: 1px solid rgba(225, 29, 72, 0.35);
  color: rgba(255, 255, 255, 0.92);
}

.card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
}

.card__desc {
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}

/* Forms */
.form {
  padding: 12px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Auth modal-like card (register/login) */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.auth-card {
  width: min(520px, 100%);
  background: #fff;
  color: #222;
  border-radius: 18px;
  border: 2px solid rgba(251, 191, 36, 0.55);
  box-shadow:
    0 24px 70px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.35);
  overflow: hidden;
  transform: translateY(-2px);
  animation: auth-pop .18s ease-out;
}

@keyframes auth-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(-2px) scale(1); }
}

.auth-card__head {
  position: relative;
  padding: 18px 18px 10px;
  text-align: center;
}

.auth-card__title {
  margin: 0;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: 0.2px;
  color: #b45309;
}

.auth-card__sub {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(60, 22, 0, 0.65);
}

.auth-card__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(0,0,0,.55);
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.04);
  font-size: 18px;
  font-weight: 900;
}
.auth-card__close:hover { filter: brightness(0.98); }

.auth-card__body {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(180, 83, 9, 0.22);
}

.auth-grid {
  display: grid;
  gap: 12px;
}

.auth-field label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  color: #b45309;
  margin-bottom: 6px;
}

.auth-field label small {
  font-size: 11px;
  font-weight: 800;
  color: rgba(60, 22, 0, 0.55);
}

.auth-input {
  position: relative;
}

.auth-input.is-ok input {
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.auth-input.is-bad input {
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
}

.auth-input input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(180, 83, 9, 0.25);
  background: #fff;
  color: #222;
  padding: 12px 12px 12px 44px;
  outline: none;
}

.auth-input__right {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  font-weight: 900;
  color: rgba(0,0,0,.45);
}

.auth-msg {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.25;
  color: rgba(60, 22, 0, 0.65);
}

.auth-msg.is-ok { color: #0a7a3a; }
.auth-msg.is-bad { color: #b91c1c; }

.auth-input input:focus {
  border-color: rgba(251, 191, 36, 0.95);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.22);
}

.auth-input__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: rgba(0,0,0,.55);
}

.auth-hint {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(60, 22, 0, 0.65);
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.auth-actions {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.auth-btn {
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 950;
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.98), rgba(88, 34, 0, 0.98));
  color: #fff;
  box-shadow: 0 14px 26px rgba(0,0,0,.22);
}
.auth-btn:hover { filter: brightness(1.03); }

.auth-foot {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: rgba(60, 22, 0, 0.65);
}
.auth-foot a {
  color: #b45309;
  text-decoration: none;
  font-weight: 950;
}
.auth-foot a:hover { text-decoration: underline; }

.form__grid {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.92);
  padding: 10px 10px;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.12);
}

.form__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 4px;
}

/* Tables and tabs */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
}

.tabs button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.tabs button:hover { filter: brightness(1.06); }

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

.table th,
.table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
}

.table th {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.06);
}

.content-down img {
  height: 44px;
}

.content-down-1 {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.content-down-2 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-title {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 750;
  font-size: 15px;
  padding: 10px 10px 0;
  letter-spacing: 0.2px;
}

.hr1 {
  margin-top: 1px;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225, 29, 72, 0.6), transparent);
  margin-left: 10px;
  margin-right: 10px;
}

.content p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
}

.content-info {
  display: flex;
  justify-content: space-between;
  bottom: -5px;
  position: relative;
}

.content-info-link {
  font-size: 12px;
  color: var(--link);
  cursor: pointer;
}

.content-info-time {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.55);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 10px 0;
  text-align: center;
}

.footer__brand {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.9);
}

.footer__copy {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.login {
  font-size: 12px;
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.login input {
  border-radius: 5px;
  height: 20px;
  border: 1px solid var(--border-2);
  font-weight: 550;
  width: 90%;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.92);
  padding: 6px 8px;
}

.thong-bao-dang-nhap {
  font-size: 12px;
}

.thong-bao-dang-nhap a {
  text-decoration: none;
  color: var(--main2);
}

.thong-bao-dang-nhap ul {
  margin-block-end: -3px;
}

/* Diễn đàn: hai nút ảnh + Nạp lượng căn giữa giống Ninja School (cột, mọi hàng center) */
.diendan-hero .login {
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.diendan-hero .login input {
  width: min(148px, 38vw) !important;
  flex: 0 1 auto;
  max-width: 44%;
}

.diendan-action-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.diendan-hero .diendan-guest-btns-outer,
.diendan-action-stack .diendan-guest-btns-outer {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-top: 8px;
  text-align: center;
  line-height: 0;
  box-sizing: border-box;
}

.diendan-hero .diendan-guest-btns-outer .diendan-guest-btns,
.diendan-action-stack .diendan-guest-btns-outer .diendan-guest-btns {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 18px;
  margin: 14px 0 10px;
  line-height: normal;
  vertical-align: top;
  max-width: 100%;
  box-sizing: border-box;
}

.diendan-guest-btns a {
  line-height: 0;
}

.diendan-guest-btns img {
  width: 88px;
  height: 30px;
  max-width: 88px;
  display: block;
  box-sizing: border-box;
}

.diendan-action-stack .napluong {
  width: 100%;
  margin-top: 12px;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.diendan-action-stack .taive {
  width: 100%;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.napluong {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.taive {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
}

.taive table {
  color: var(--main2);
  text-decoration: none;
  font-size: 12px;
}

.taive img {
  height: 15px;
  width: 13px;
  margin-right: 5px;
}

/* Danh sách mod (Tải về) — khung cổ điển theo palette site */
.taive-mods-block {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 0 4px 8px;
}

.taive-mods-toggle-wrap {
  text-align: center;
  margin: 6px 0 8px;
}

.taive-mods-block table .taive-mods-toggle-wrap {
  margin: 0;
}

.taive-mods-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--link-actor);
  text-decoration: underline;
}

.taive-mods-toggle:hover {
  color: var(--main2);
}

/* Mặc định ẩn; chỉ hiện lưới khi bỏ thuộc tính hidden (nút Xem).
   Không dùng display:grid trên selector chung — nhiều trình duyệt/reset
   để [hidden] thua specificity với .class { display: grid } nên lưới vẫn lộ. */
.taive-mods-grid {
  display: none;
  padding: 8px 2px 6px;
  box-sizing: border-box;
}

.taive-mods-grid:not([hidden]) {
  display: block;
  animation: taiveModsFadeIn 0.22s ease-out;
}

/* Hai khối MOD — cùng phong cách khung cổ điển với .mod-card / .content */
.taive-mod-deck {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 520px) {
  .taive-mod-deck {
    flex-direction: row;
    align-items: stretch;
  }
  .taive-mod-panel {
    flex: 1 1 0;
    min-width: 0;
  }
}

.taive-mod-panel {
  border-radius: 8px;
  padding: 12px 10px 14px;
  box-sizing: border-box;
  background: var(--tbl-bg2);
  border: 2px solid var(--main3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 2px 4px rgba(86, 29, 0, 0.12);
}

.taive-mod-panel-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: var(--main2);
  line-height: 1.25;
}

.taive-mod-panel-sub {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  color: #2a1a0a;
}

.taive-mod-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: stretch;
}

.taive-mod-buttons--single {
  margin-top: 6px;
  justify-content: center;
}

.taive-mod-buttons--single .taive-mod-btn {
  flex: 0 1 auto;
  min-width: 130px;
  max-width: 220px;
}

.taive-mod-buttons--two .taive-mod-btn {
  flex: 1 1 calc(50% - 4px);
  min-width: 108px;
}

.taive-mod-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  color: #fff;
  border-radius: 6px;
  border: 2px solid #6b1010;
  background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.taive-mod-buttons:not(.taive-mod-buttons--single):not(.taive-mod-buttons--two)
  .taive-mod-btn {
  flex: 1 1 calc(33.333% - 6px);
  min-width: 82px;
}

@media (max-width: 380px) {
  .taive-mod-buttons:not(.taive-mod-buttons--single):not(.taive-mod-buttons--two)
    .taive-mod-btn {
    flex: 1 1 calc(50% - 4px);
  }
}

.taive-mod-btn:hover {
  filter: brightness(1.06);
  color: #fff;
}

.taive-mod-btn:active {
  filter: brightness(0.96);
}

@keyframes taiveModsFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.taive > .taive-mods-block {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.mod-card {
  background: var(--tbl-bg2);
  border: 2px solid var(--main3);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 2px 4px rgba(86, 29, 0, 0.15);
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 140px;
}

.mod-card-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: var(--main2);
  line-height: 1.25;
}

.mod-card-desc {
  margin: 0;
  flex: 1;
  font-size: 11px;
  line-height: 1.4;
  color: #2a1a0a;
}

.mod-card-btn {
  display: block;
  text-align: center;
  margin-top: auto;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid #6b1010;
  background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
}

.mod-card-btn:hover {
  filter: brightness(1.06);
  color: #fff;
}

.diendan-action-stack .taive-mods-block {
  padding-left: 0;
  padding-right: 0;
}

.title-diendan {
  display: flex;
  justify-content: space-between;
}

.title-diendan a,
.title-diendan {
  background-color: var(--main3);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
}

.title-diendan a {
  text-decoration: none;
  margin-left: -10px;
  font-size: 11px;
  font-weight: 500;
}

.content-baidang-admin {
  display: flex;
  flex-direction: column;
  padding-top: 5px;
  padding-left: 15px;
  font-size: 12px;
  line-height: 15px;
}

.hr2 {
  margin-bottom: 1px;
  border: 0.5px solid var(--line-flat2);
}

.link-actor {
  color: var(--link-actor);
  text-decoration: none;
}

.link-actor:hover {
  text-decoration: underline;
}

/* Floating "Quay lại tin tức" button (article only) */
.news-back-fab{
  position: fixed;
  left: 12px;
  top: 88px;
  z-index: 10080;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(15,15,20,0.78);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(0,0,0,0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .12s ease, transform .12s ease;
}
.news-back-fab.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.news-back-fab:hover{ filter: brightness(1.06); }

/* Desktop: canh theo khung content cho đẹp */
@media (min-width: 920px){
  .news-back-fab{
    left: calc(50% - 540px + 12px);
  }
}

.content-baidang-admin.mem {
  padding-left: 5px;
}

.title-diendan.page {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  height: 23px;
}

.btn-page {
  background-color: white;
  border: 2px solid #e5e5e5;
  color: var(--text-color2);
  font-weight: 600;
  cursor: pointer;
}

.btn-page.now {
  background-color: var(--main3);
  border: 2px solid #e5e5e5;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

/* Badge NEW (img/new.gif) — kích thước cố định, không bị flex stretch */
img.icon-new-badge {
  width: auto;
  height: 16px;
  max-width: 44px;
  object-fit: contain;
  vertical-align: middle;
  margin-left: 4px;
}

/* Khối link cuối diễn đàn (static/baoloi.php) */
.sidebox-links {
  box-sizing: border-box;
  background: var(--tbl-bg2, #f9f0da);
  border: 2px solid var(--main3, #561d00);
  border-radius: 6px;
  padding: 10px 12px 12px;
  margin: 6px 0 10px;
}

.sidebox-links__row {
  margin-bottom: 12px;
}

.sidebox-links__row:last-child {
  margin-bottom: 0;
}

.sidebox-links__head {
  margin: 0 0 2px;
  line-height: 1.35;
}

.sidebox-links__head a {
  font-size: 13px;
  font-weight: 700;
  color: var(--link-actor);
  text-decoration: none;
}

.sidebox-links__head a:hover {
  text-decoration: underline;
}

.sidebox-links__sub {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: #1a1008;
  line-height: 1.35;
}

.content-bottom {
  padding-left: 10px;
}

.content-bot-1 {
  font-size: 13px;
  color: var(--text-color3);
  font-weight: 550;
}

.content-bot-2 {
  font-size: 12px;
  top: -4px;
  position: relative;
  font-weight: 450;
}

.taikhoan a,
.nav-user {
  color: var(--link-actor);
  text-decoration: none;
}

.taikhoan a:hover,
.nav-user:hover {
  color: red;
  text-decoration: underline;
  cursor: pointer;
}

.taikhoan {
  font-size: 12px;
  margin-top: 10px;
}
.taikhoan2 {
  font-size: 12px;
  background-color: var(--tbl-bg2);
}

.content .viewinfo {
  margin: 0 auto;
  width: 90%;
  margin-top: 50px;
}

.taikhoan label {
  font-weight: 500;
}

.taikhoan th {
  min-width: 100px;
}
.taikhoan2 th {
  font-weight: 500;
  min-width: 100px;
  vertical-align: bottom;
  text-align: right;
  background-color: var(--tbl-bg1);
  padding: 2px 5px 2px 2px;
  margin: 3px 5px 2px 5px;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: #c1c1c1;
  width: 70px;
  -webkit-border-top-left-radius: 4px;
  -webkit-border-bottom-left-radius: 4px;
  -moz-border-radius-topleft: 4px;
  -moz-border-radius-bottomleft: 4px;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.taikhoan2 td {
  font-weight: 500;
  border-width: 0px 0px 1px 0px;
  padding: 2px 0px 2px 2px;
  border-style: solid;
  border-color: #c1c1c1;
}

.btn-new-thread {
  font-size: 14px;
}

.trang-login {
  text-align: center;
}

.trang-login label {
  font-size: 12px;
  font-weight: 500;
}

.trang-login input {
  border-radius: 4px;
  padding: 2px 2px;
  border: 1px solid var(--border-color);
  width: 90%;
}

.trang-login button {
  font-size: 12px;
  margin-top: -5px;
  margin-bottom: -5px;
}

.center-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.2px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(225, 29, 72, 0.95), rgba(159, 18, 57, 0.95));
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.32);
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.btn--dark {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38);
}

.btn:active {
  transform: translateY(0px);
  filter: brightness(0.98);
}

.btn[disabled],
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-new-thread a {
  color: black;
  text-decoration: none;
}

.new-thread {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  padding-left: 10px;
  padding-right: 30px;
}

.new-thread label {
  font-weight: 600;
  margin: 4px 0px;
}

.new-thread textarea {
  resize: none;
  min-height: 300px;
}

.btn-new-thread {
  margin-top: 20px;
  padding-left: 10px;
}

.btn-new-thread button {
  min-width: 80px;
}

.paging {
  text-decoration: none;

  color: var(--text-color2);
}

.paging.now {
  color: white;
}

.btn-page:hover {
  background-color: var(--main3);
  color: white;
  cursor: pointer;
}

.chude-title {
  background-color: var(--main5);
  margin: 5px 5px;
  padding: 10px 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chude-title .ava {
  display: flex;
  flex-direction: column;
}

.chude-title .ava span {
  font-size: 10px;
  margin-top: 4px;
}

.chude-content {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  width: calc(100% - 45px - 20px - 10px);
}

.chude-title2 {
  margin: 5px 5px;
  margin-top: -15px;
  background-color: var(--main5);
  padding: 10px 10px;
  font-size: 10px;
  color: var(--text-color5);
  display: flex;
  justify-content: space-between;
}

.adver {
  background-color: var(--main4);
  display: flex;
  justify-content: center;
  font-size: 12px;
  gap: 5px;
  padding: 15px 10px;
  padding-bottom: 20px;
}

.adver a {
  text-decoration: none;
  color: var(--link-actor);
}

.box-content {
  margin-top: -5px;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.btn-quote {
  width: 18px;
}

.quote-view {
  background-color: var(--text-color6);
  border-radius: 5px;
  margin: 10px 10px;
  padding: 5px 5px;
  width: 80%;
  word-wrap: break-word;
}

.quote-view-cmt {
  background-color: var(--text-color6);
  border-radius: 15px;
  padding: 10px 10px;
  margin-bottom: 5px;
  font-size: 10px;
  margin-bottom: 15px;
}

.taikhoan3,
.tbl-author {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  background-color: var(--main4);
  margin-top: -1px;
  gap: 5px;
}

.taikhoan3,
.tbl-author table {
  width: calc(100% - 3px - 3px);
  font-size: 12px;
  margin-bottom: 5px;
  margin-top: 5px;
  table-layout: fixed;
}

.tbl-author table {
  word-break: break-all;
}

.taikhoan3 th,
.tbl-author th {
  padding: 4px 9px;
}

.taikhoan3 td,
.tbl-author td {
  padding: 4px 4px;
  width: 95%;
}

.form-cmt {
  background-color: var(--main4);
  padding: 4px 0px;
  padding-left: 50px;
  display: flex;
  flex-direction: column;
  align-items: start;
}

.form-cmt textarea {
  width: 60%;
  height: 100px;
  resize: none;
}

.quote-view-cmt {
  word-wrap: break-word;
  width: 80%;
}

.index {
  color: var(--text-color5);
  font-size: 10px;
  position: absolute;
  margin-top: -1px;
  margin-left: 5px;
}

.conainter-naptien {
  max-width: 600px;
  margin: 0 auto;
}

.naptien-content {
  background-color: white;
  border-radius: 10px;
}

.naptien-banner {
  padding: 10px 10px;
  text-align: center;
}

.naptien-banner img {
  max-width: 200px;
}

.naptien .naptien-section {
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  padding: 14px 14px;
  gap: 5px;
}

.naptien select,
.naptien input {
  padding: 8px 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.naptien-section table,
.naptien-section td,
.naptien-section th {
  border: 1px solid var(--border-color);
  border-collapse: collapse;
  padding: 12px 12px;
  text-align: left;
}

.btn-thanhtoan {
  background-color: var(--btn-color-suc);
  border: none;
  padding: 10px 10px;
  color: white;
  width: 100%;
  border-radius: 5px;
}

#hienqrnap {
  display: flex;
  justify-content: center;
}

.qr-show {
  width: 100%;
  max-width: 400px;
}

.btn-thanhtoan:hover {
  cursor: pointer;
}

.test {
  word-wrap: break-word;
}

#icon-select img,
.icon-show-area {
  width: 50px;
  cursor: pointer;
}

.tbl-icon-show {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  width: 80%;
}

.like-show-area {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.edit-remove-cmt {
  font-size: 10px;
  display: flex;
  width: 25%;
  gap: 7px;
  flex-direction: column;
}

.napthe-select {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 10px 0px;
}

.btn-select-nap {
  padding: 8px 8px;
  background-color: #e7e7e7;
  border: none;
  border-radius: 10px;
}

.btn-select-nap.active {
  background-color: #04aa6d;
}

.btn-select-nap:hover {
  cursor: pointer;
}

/* --- Payment page (naptien) modern UI --- */
.pay-shell {
  max-width: 760px;
  margin: 0 auto;
}

.pay-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 6px 0 12px;
}

.pay-tabs .btn-select-nap {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.pay-tabs .btn-select-nap.active {
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.45);
}

.pay-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.pay-panel {
  padding: 12px 14px;
}

.pay-panel__title {
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
  margin: 2px 0 10px;
}

.pay-bank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.pay-bank {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 10px;
  font-weight: 900;
  cursor: pointer;
}

.pay-bank.is-active {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.14);
}

.pay-amount-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.pay-amount-error {
  font-size: 12px;
  font-weight: 800;
  color: var(--red-2);
  margin-top: 6px;
}

.pay-input-error {
  border-color: rgba(255, 59, 106, 0.85) !important;
  box-shadow: 0 0 0 3px rgba(255, 59, 106, 0.12);
}

@media (max-width: 520px) {
  .pay-bank-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 992px) {
}

@media screen and (max-width: 600px) {
  .quote-view-cmt {
    word-wrap: break-word;
  }

  .mobile-login-notice {
    text-align: center;
  }
}

/* --- Retro modal (home notice) --- */
.retro-modal-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(900px 540px at 15% 0%, rgba(225, 29, 72, 0.18), transparent 55%),
    rgba(0, 0, 0, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

/* Khi đã đóng: tránh lớp fixed vẫn bắt pointer (một số trường hợp display/aria lệch) */
#home-modal-overlay[aria-hidden="true"] {
  pointer-events: none !important;
}

.retro-modal {
  width: min(420px, 100%);
  background: rgba(20, 22, 31, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
  padding: 12px 12px 12px;
  backdrop-filter: blur(12px);
}

.retro-modal-title {
  font-size: 14px;
  font-weight: 950;
  color: rgba(255,255,255,0.95);
  text-align: center;
  padding: 10px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(225, 29, 72, 0.22), rgba(225, 29, 72, 0.10));
  border: 1px solid rgba(225, 29, 72, 0.30);
}

.retro-modal-body {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  padding: 12px 10px 6px;
  text-align: center;
}

.retro-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 6px 8px;
}

.retro-modal-actions a,
.retro-modal-actions button {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  cursor: pointer;
}

.retro-modal-actions a:hover,
.retro-modal-actions button:hover {
  filter: brightness(1.05);
}

.retro-modal-close {
  width: 100%;
  font-size: 12px;
  font-weight: 950;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(225, 29, 72, 0.95), rgba(159, 18, 57, 0.95));
  color: rgba(255,255,255,0.96);
  cursor: pointer;
}

.retro-modal-close:hover {
  filter: brightness(1.05);
}

/* --- Trang tài khoản: nội dung gọn, căn giữa trong .content, luôn xếp dọc --- */
.acct-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: 520px;
  margin: 12px auto 20px;
  padding: 0 12px 12px;
}

.acct-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 10px;
}

.acct-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: filter 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.acct-tab:hover {
  filter: brightness(1.06);
}

.acct-tab.is-active {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.95), rgba(245, 158, 11, 0.88));
  color: rgba(10, 10, 14, 0.92);
  border-color: rgba(251, 191, 36, 0.55);
}

.acct-panel[hidden] {
  display: none !important;
}

.acct-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.acct-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.acct-card__head {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.92);
}

.acct-card .taikhoan2 {
  width: 100%;
  margin: 0;
}

.acct-settings {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 100%;
  margin: 0 auto;
}

.acct-set-block {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 14px 14px;
}

.acct-set-block h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.94);
}

.acct-set-block p,
.acct-set-block .acct-set-desc {
  margin: 0 0 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.acct-set-block .taikhoan2 {
  margin-top: 8px;
}

.acct-set-block input[type="password"],
.acct-set-block input[type="tel"] {
  width: 100%;
  max-width: 320px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 12px;
}

.acct-set-block .btn {
  margin-top: 10px;
  font-size: 12px;
}

.acct-char-detail {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.char-detail-table th[scope="row"] {
  width: 160px;
  max-width: 42%;
  white-space: nowrap;
  vertical-align: middle;
}

.char-detail-table td {
  word-break: break-word;
}

.acct-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  font-size: 12px;
}

.acct-history-hint {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
  padding: 4px 8px 10px;
  line-height: 1.45;
}
