/* Local layout fixes — keep Figma/site structure intact */

/* Article artwork keeps its original proportions, including text in the image. */
.StaticMain .ContentBlock .article-banner {
  box-sizing: border-box;
  width: 100%;
  max-width: 760px;
  margin: 0 auto 24px;
  padding: 5px;
  border: 1px solid #b49964;
  background: #f3ead6;
  box-shadow: 0 3px 12px rgba(57, 39, 19, .12);
}
.StaticMain .ContentBlock .article-banner img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
}
@media (max-width: 768px) {
  .StaticMain .ContentBlock .article-banner { padding: 3px; margin-bottom: 18px; }
}

/* Visible SEO introduction belongs below the game showcase, not above news. */
.game-introduction {
  box-sizing: border-box;
  width: calc(100% - 40px);
  max-width: 1000px;
  margin: 40px auto 28px;
  padding: 28px 36px;
  text-align: center;
  color: #59432c;
  background: linear-gradient(135deg, rgba(250,242,223,.94), rgba(233,217,182,.9));
  border-top: 1px solid #b49964;
  border-bottom: 1px solid #b49964;
  box-shadow: inset 0 0 0 5px rgba(255,250,237,.35);
}
.game-introduction__eyebrow { font-size: 11px; letter-spacing: 3px; color: #80612f; }
.game-introduction h1 { margin: 10px 0 14px; font: 600 24px/1.5 Georgia, 'Times New Roman', serif; color: #563615; }
.game-introduction p { max-width: 780px; margin: 0 auto; font-size: 14px; line-height: 1.9; }
.game-introduction nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; }
.game-introduction a { color: #68421e; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.game-introduction a:hover, .game-introduction a:focus-visible { color: #a15e13; }
.site-information { box-sizing: border-box; max-width: 980px; width: calc(100% - 32px); margin: 28px auto; padding: 32px; background: #fbf7ef; border: 1px solid #c8b18a; color: #403426; font-size: 16px; line-height: 1.85; }
.site-information h1 { font: 600 28px/1.5 Georgia, 'Times New Roman', serif; margin: 12px 0 24px; color: #67431d; }
.site-information h2 { font-size: 20px; margin: 24px 0 10px; color: #67431d; }
.site-information p, .site-information ol { margin: 12px 0; }
.site-information ol { padding-left: 24px; }
.site-information a { color: #68421e; text-decoration: underline; }
.site-information__note { padding: 12px 16px; border-left: 3px solid #b49964; background: #f0e7d5; }
@media (max-width: 768px) {
  .game-introduction { width: calc(100% - 24px); margin: 24px auto; padding: 24px 18px; }
  .game-introduction h1 { font-size: 20px; }
  .game-introduction nav { gap: 12px 18px; }
  .site-information { padding: 22px 18px; font-size: 15px; }
  .site-information h1 { font-size: 24px; }
}

/* Responsive: một layout, hai theme PC/Mobile */
.site-view-mobile {
  display: none;
}
@media (max-width: 768px) {
  .site-view-pc {
    display: none;
  }
  .site-view-mobile {
    display: block;
  }
}
body.device-preview-pc .site-view-pc {
  display: block !important;
}
body.device-preview-pc .site-view-mobile {
  display: none !important;
}
body.device-preview-mobile .site-view-pc {
  display: none !important;
}
body.device-preview-mobile .site-view-mobile {
  display: block !important;
}

/* Mobile hamburger menu (từ layout inline → tái dùng site-fix) */
.site-view-mobile .menu.open {
  display: block !important;
}

/* Hide inactive news tabs before/without JS (prevents overlap into Nhân Vật) */
.news .tab-content > div:not(.active),
.tab-content > div:not(.active) {
  display: none !important;
}
.news .tab-content > div.active,
.tab-content > div.active {
  display: block !important;
}

/* Banner bài viết phủ kín khung, không để hở nền */
.site-view-pc .section-1 .banner-slider {
  height: calc(362px - 8px) !important;
  overflow: hidden;
}
.site-view-pc .section-1 .banner-slider .swiper-wrapper,
.site-view-pc .section-1 .banner-slider .swiper-slide,
.site-view-pc .section-1 .banner-slider .swiper-slide a {
  height: 100% !important;
}
.site-view-pc .section-1 .banner-slider .swiper-slide img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
}
.site-view-mobile .banner-slider a {
  box-sizing: border-box;
  aspect-ratio: 550 / 362;
  height: auto;
  overflow: hidden;
}
.site-view-mobile .banner-slider a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Character slider — 4 nhân vật (asset 1156x750, thumb 225x225) */
.site-view-pc .character-block {
  min-height: 0;
  overflow: visible;
}
.site-view-pc .character-swiper-large {
  width: 100%;
  aspect-ratio: 1156 / 750;
}
.site-view-pc .character-swiper-large .swiper-slide {
  text-align: left;
  height: auto !important;
}
.site-view-pc .character-swiper-large .swiper-slide img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure section-1 does not leak into next sections */
.section-1 {
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.character.section-2,
.section-3 {
  position: relative;
  z-index: 1;
  clear: both;
}

/* Subpage — danh mục / bài viết (Figma PC + Mobile) */
.main-content .ContentBlock img {
  max-width: 100%;
  height: auto;
}
.main-content .icons-home {
  margin-right: 5px;
  font-size: 12px;
}
.main-content .static {
  position: relative;
}
ul.page__list li a.disable {
  pointer-events: none;
}

/* PC category list rows — match Figma EventListItem (~101px, thumb + title + date) */
.site-view-pc .main-content ul.news-list > li.highlight {
  background: none !important;
  min-height: 101px;
  padding: 10px 0 !important;
  margin: 0 0 10px !important;
  border-bottom: 1px dashed #908070 !important;
  overflow: hidden;
}
.site-view-pc .main-content ul.news-list > li.highlight .news__thumb {
  float: left;
  margin: 0 12px 0 0;
}
.site-view-pc .main-content ul.news-list > li.highlight .news__thumb img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border: 2px solid #3c365a;
  display: block;
}
.site-view-pc .main-content ul.news-list > li.highlight .news-title {
  float: none;
  width: auto !important;
  display: block;
  color: #b48300;
  font-family: "SF-Bold", "SF", sans-serif;
  font-size: 15px;
  position: relative;
  padding-right: 100px;
  min-height: 88px;
}
.site-view-pc .main-content ul.news-list > li.highlight .news-title span {
  display: block;
  width: auto !important;
  max-width: 100%;
  padding: 28px 0 0 !important;
  line-height: 1.4 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-view-pc .main-content ul.news-list > li.highlight .news-title .news-time {
  color: #b48300;
  top: 32px !important;
  right: 0 !important;
}
.site-view-pc .main-content ul.news-list > li.highlight .news-des {
  display: none !important;
}

/* PC article title — Figma cream/gold */
.site-view-pc .main-content .StaticMain h3 {
  color: #d7c6b8;
  font-family: "SF-Bold", "SF", sans-serif;
  text-align: center;
}
.site-view-pc .main-content .StaticMain h4 {
  color: #f1945a;
}

/* Mobile — Figma titles darker; rows compact */
.site-view-mobile .main-content ul.news-list > li.highlight {
  background: none !important;
  overflow: hidden;
  border-bottom: 1px solid #cfc3b4 !important;
  padding: 10px 0 !important;
}
.site-view-mobile .main-content ul.news-list > li.highlight .news__thumb {
  float: left;
  margin-right: 10px;
}
.site-view-mobile .main-content ul.news-list > li.highlight .news__thumb img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  display: block;
}
.site-view-mobile .main-content ul.news-list > li.highlight .news-title {
  color: #35353c !important;
  font-family: "SF-Bold", "SF", sans-serif;
  display: block;
  position: relative;
  padding-right: 70px;
  min-height: 70px;
}
.site-view-mobile .main-content ul.news-list > li.highlight .news-title span {
  display: block;
  padding-top: 22px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-view-mobile .main-content ul.news-list > li.highlight .news-time {
  color: #35353c !important;
  top: 24px !important;
  right: 0 !important;
}
.site-view-mobile .main-content .StaticMain h3 {
  color: #35353c !important;
  font-family: "SF-Bold", "SF", sans-serif;
  text-align: center;
  line-height: 1.15;
}

/*
 * Mobile layout: CSS gốc chỉ thu nhỏ ở @media (max-width:480px).
 * Khi ?device=mobile trên màn rộng vẫn dùng size tablet (~770px) → Nhân Vật/Đặc Sắc trông như PC.
 * Ép scale điện thoại theo class .site-view-mobile (giống breakpoint 480px của site gốc).
 */
.site-view-mobile .wrapper {
  max-width: 480px;
  margin: 0 auto;
  overflow-x: hidden;
}

.site-view-mobile .header {
  height: 425px;
  margin-bottom: 0;
  background-position: center bottom;
  background-size: 100%;
}
.site-view-mobile .header .logo {
  top: 0;
  left: 0;
  transform: none;
}
.site-view-mobile .header .logo img {
  max-width: 110px;
}
.site-view-mobile .header .text {
  top: 20%;
  max-width: 180px;
}
.site-view-mobile .header .play-video {
  top: 60%;
}
.site-view-mobile .header .play-video img {
  max-width: 55px;
}
.site-view-mobile .buttons-list {
  left: 0;
  right: 0;
  bottom: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 12px;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.site-view-mobile .buttons-list .choingay-btn {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  z-index: 1;
  flex: 1 1 0;
}
.site-view-mobile .buttons-list > a {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  max-width: 180px;
  height: 64px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #bfaa75;
  border-radius: 6px;
  background: linear-gradient(135deg, #faf1d8, #d8c499);
  box-shadow: inset 0 0 0 3px #f7edd4, 0 3px 8px #0005;
  color: #62431f;
  font: 700 17px/1.2 Georgia, 'Times New Roman', serif;
  text-transform: uppercase;
  text-decoration: none;
}
.site-view-mobile .buttons-list > a.choingay-btn {
  background: linear-gradient(135deg, #26594a, #10382f);
  box-shadow: inset 0 0 0 3px #285849, 0 3px 8px #0005;
  color: #fff0c2;
}
.site-view-mobile .buttons-list > a i { font-size: 20px; }
.site-view-mobile .buttons-list > a:focus-visible { outline: 2px solid #fff0c2; outline-offset: 3px; }
.site-view-mobile .buttons-list img {
  display: block;
  width: auto;
  height: auto;
}
.site-view-mobile .buttons-list .choingay-btn img {
  width: 124px;
  max-width: 40vw;
}
.site-view-mobile .buttons-list > a:not(.choingay-btn) img {
  width: 168px;
  max-width: 48vw;
}

.site-view-mobile .section-2 {
  background-size: 100%;
  height: 660px;
}
.site-view-mobile .news {
  background-size: 100% 100%;
  height: 370px;
  padding: 15px 20px;
  margin: 0;
  max-width: 100%;
}
.site-view-mobile .hotro-block {
  margin-bottom: 85px;
}

/* Nhân Vật — phone scale (ảnh 1156x750 + 4 thumb kim cương) */
.site-view-mobile .character.section-3 {
  position: relative;
  z-index: 1;
  height: auto;
  min-height: 480px;
  overflow: hidden;
  clear: both;
  background-size: 100% 100%;
  padding-bottom: 8px;
}
.site-view-mobile .character.section-3 .section-title {
  text-align: center;
  margin: 0;
}
.site-view-mobile .character.section-3 .section-title img {
  max-width: 70%;
  height: auto;
  display: inline-block;
}
.site-view-mobile .character.section-3 .character-block {
  position: relative;
  min-height: 0 !important;
  overflow: hidden;
  margin: 0 auto;
  max-width: 100%;
}
.site-view-mobile .character.section-3 .character-swiper-large {
  width: 100%;
  overflow: hidden;
}
.site-view-mobile .character.section-3 .character-swiper-large .swiper-slide {
  width: 100% !important;
  text-align: center;
}
.site-view-mobile .character.section-3 .character-swiper-large img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.site-view-mobile .character.section-3 .character-swiper-nav {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  z-index: 4;
  width: auto;
  max-width: 90%;
}
.site-view-mobile .character.section-3 .character-swiper-nav .swiper-slide {
  width: auto !important;
}
.site-view-mobile .character.section-3 .character-swiper-nav img {
  max-width: 64px;
  height: auto;
  display: block;
}

/* Đặc Sắc — phone scale */
.site-view-mobile .section-4 {
  position: relative;
  z-index: 2;
  height: 450px;
  clear: both;
  overflow: hidden;
  background-size: 100% 100%;
}
.site-view-mobile .section-4 .heading {
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 0;
}
.site-view-mobile .section-4 .heading img {
  max-width: 70%;
  height: auto;
}
.site-view-mobile .dacsac {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  height: 260px;
  margin: -10px auto 40px;
  padding: 24px 16px 0 27px;
  background-size: 100% 100%;
  box-sizing: border-box;
}
.site-view-mobile .dacsac:after {
  left: 33px;
}
.site-view-mobile .dacsac .swiper-container,
.site-view-mobile .dacsac .dacsac-slider {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.site-view-mobile .dacsac .swiper-slide img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.site-view-mobile .dacsac .swiper-pagination {
  bottom: -36px !important;
}

.site-view-mobile .buttons-footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: nowrap;
  padding: 10px;
  background: #191919;
  max-width: 480px;
  margin: 0 auto;
}
.site-view-mobile .buttons-footer .btn-image {
  flex: 0 0 auto;
  max-width: 18%;
}
.site-view-mobile .buttons-footer .btn-image img {
  max-width: 100%;
  height: auto;
}
.site-view-mobile .footer {
  max-width: 480px;
  margin: 0 auto;
}

/* Auth & member panel */
.site-flash {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.site-flash.success {
  background: #e1f2e8;
  color: #156548;
  border: 1px solid #b8dfc9;
}

.auth-box {
  max-width: 420px;
  margin: 30px auto 50px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #f5f0e6;
}
.auth-box h2 {
  margin: 0 0 16px;
  text-align: center;
  font-size: 22px;
}
.auth-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 13px;
}
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}
.auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-check input { width: auto; }
.auth-submit {
  width: 100%;
  margin-top: 6px;
  padding: 11px;
  border: 0;
  border-radius: 6px;
  background: #c8a45a;
  color: #1a1208;
  font-weight: 600;
  cursor: pointer;
}
.auth-switch {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
}
.auth-switch a { color: #e8c878; }
.auth-alert.error {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(180, 35, 24, 0.2);
  border: 1px solid rgba(180, 35, 24, 0.45);
  color: #ffb4ae;
  font-size: 13px;
}

.site-view-mobile .member-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 6px;
}
.site-view-mobile .member-auth-label {
  color: #e8c878;
  font-size: 12px;
  font-weight: 600;
}
.site-view-mobile .member-logout-mobile {
  display: inline-block;
  margin-left: 6px;
}
.site-view-mobile .member-logout-link {
  border: 0;
  background: none;
  color: #ccc;
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
}
.site-view-mobile .member-admin-link {
  display: inline-block;
  margin-left: 4px;
  color: #e8c878;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.site-view-mobile .member-admin-link:hover {
  text-decoration: underline;
}

/* ── Figma site panels (Account / Nạp thẻ / Server) ── */
.site-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 12px;
  overflow-y: auto;
  background: rgba(20, 30, 24, 0.72);
}
.site-panel-overlay[hidden] {
  display: none !important;
}
.site-panel {
  display: none;
  width: 100%;
  max-width: 720px;
  margin: 40px auto;
  background: #faf5e5;
  border: 3px solid #1f6b58;
  border-radius: 4px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  color: #261f14;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
}
.site-panel.is-active {
  display: block;
}
.site-panel--wide {
  max-width: 980px;
}
.site-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px 0 20px;
  background: #144738;
}
.site-panel__title {
  margin: 0;
  color: #c9a227;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.site-panel__close {
  border: 0;
  background: none;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}
.site-panel__body {
  padding: 18px 20px 20px;
}
.site-panel__hint,
.site-panel__note {
  margin: 0 0 14px;
  color: #8c6647;
  font-size: 12px;
}
.site-panel__note {
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 11px;
}

.site-panel-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1f6b58;
  color: #faf5e5;
  font-weight: 700;
  font-size: 22px;
  flex-shrink: 0;
}
.site-panel-avatar--sm {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
.site-panel-avatar--slot {
  width: 40px;
  height: 40px;
  font-size: 16px;
}
.site-panel-avatar--chip {
  width: 22px;
  height: 22px;
  font-size: 11px;
  margin-right: 6px;
  vertical-align: middle;
}

.site-panel-user-head,
.site-panel-user-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.site-panel-user-chip {
  gap: 10px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #c9a227;
  border-radius: 4px;
  width: fit-content;
  max-width: 100%;
}
.site-panel-user-head__name,
.site-panel-user-chip__name {
  margin: 0;
  color: #5c3a1e;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
}
.site-panel-user-chip__name {
  font-size: 13px;
}
.site-panel-user-head__meta,
.site-panel-user-chip__balance {
  margin: 4px 0 0;
  color: #144738;
  font-size: 12px;
}
.site-panel-user-chip__balance {
  margin-top: 1px;
  font-size: 11px;
}

.site-panel-rows {
  margin: 0 0 14px;
}
.site-panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  margin-bottom: 8px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #d1bf94;
}
.site-panel-row dt,
.site-panel-row dd {
  margin: 0;
}
.site-panel-row dt {
  color: #8c6647;
  font-size: 12px;
  font-weight: 400;
}
.site-panel-row dd {
  color: #261f14;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.site-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.site-panel-logout-form {
  display: inline;
  margin: 0;
  padding: 0;
}
.site-panel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #c9a227;
  border-radius: 2px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.site-panel-btn--gold {
  background: #c7942e;
}
.site-panel-btn--green {
  background: #1f6b58;
}
.site-panel-btn--brown {
  background: #5c3a1e;
}

.site-panel--info {
  max-width: 560px;
}
.site-panel-info-steps {
  margin: 0 0 16px;
  padding: 0 0 0 20px;
  color: #3d2a22;
  font-size: 14px;
  line-height: 1.55;
}
.site-panel-info-steps li + li {
  margin-top: 8px;
}
.site-panel-info-text {
  margin: 0 0 16px;
}
.site-panel-info-text p {
  margin: 0 0 8px;
  color: #3d2a22;
  font-size: 13px;
  line-height: 1.5;
}
.site-panel-info-text p:last-child {
  margin-bottom: 0;
}
.site-panel-row dd a {
  color: #144738;
  text-decoration: none;
}
.site-panel-row dd a:hover {
  text-decoration: underline;
}

.site-panel-server-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-panel-server-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  margin-bottom: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #d1bf94;
}
.site-panel-server-item.is-new {
  background: #f2e5d1;
}
.site-panel-server-item--empty {
  justify-content: center;
  color: #8c6647;
  font-size: 13px;
}
.site-panel-server-item__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.site-panel-server-item__name {
  color: #5c3a1e;
  font-size: 13px;
  font-weight: 600;
}
.site-panel-server-item.is-new .site-panel-server-item__name {
  font-weight: 700;
}
.site-panel-server-item__schedule {
  color: #8c6647;
  font-size: 11px;
}
.site-panel-server-item__status {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 2px;
  background: #1f6b58;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-panel-server-item.is-new .site-panel-server-item__status {
  background: #144738;
}

.site-view-pc .buttons-block .server-plan-list li .select-server {
  display: block;
  padding: 0 35px 0 25px;
  background: url(../assets/pc/images/icon-dot.png) no-repeat left center;
  color: #694f32;
  cursor: default;
}
.site-view-pc .buttons-block .server-plan-list li.new .select-server {
  background: url(../assets/pc/images/icon-dot-hover.png) no-repeat left center;
  color: #a67844;
}

.site-panel-pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.site-panel-pack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 130px;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid #c9a227;
  border-radius: 4px;
}
.site-panel-pack__badge {
  display: inline-block;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 10px;
  background: #144738;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.site-panel-pack__price {
  margin: 0;
  color: #8b2e1f;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}
.site-panel-pack__xu {
  margin: 0;
  color: #261f14;
  font-size: 14px;
  font-weight: 700;
}
.site-panel-pack__label {
  margin: 0;
  color: #8c6647;
  font-size: 11px;
}
.site-panel-pack__buy {
  width: 160px;
  height: 32px;
  margin-top: auto;
  border: 0;
  border-radius: 2px;
  background: #c7942e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  opacity: 1;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.site-panel-pack__buy:disabled {
  cursor: not-allowed;
  opacity: 0.85;
}

.payment-page {
  min-height: 70vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 80px;
}
.site-panel--static {
  position: relative;
  display: block;
  margin: 0 auto;
  pointer-events: auto;
}
.payment-qr__summary {
  margin: 12px 0 20px;
  line-height: 1.6;
}
.payment-qr__summary code {
  font-weight: 700;
  color: #8b1e1e;
}
.payment-qr__demo {
  margin: 16px 0;
  text-align: center;
}

/* —— Checkout / VietQR transfer —— */
.pay-checkout {
  display: grid;
  gap: 16px;
}
.pay-checkout__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 248, 230, 0.96), rgba(245, 232, 200, 0.92));
  border: 1px solid rgba(201, 162, 39, 0.45);
  color: #3d2a14;
}
.pay-checkout__eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a6a3a;
}
.pay-checkout__amount {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
  color: #6b1f1f;
}
.pay-checkout__amount span {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f6b58;
}
.pay-checkout__who {
  margin: 8px 0 0;
  font-size: 13px;
  color: #5c4630;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.pay-checkout__dot {
  opacity: 0.45;
}
.pay-checkout__status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.pay-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #efe4cf;
  color: #5c3a1e;
}
.pay-pill--live {
  background: #e8f5f1;
  color: #156b55;
}
.pay-pill--ok {
  background: #e5f6ea;
  color: #1d6b38;
}
.pay-pill--warn {
  background: #fff0d9;
  color: #9a5b00;
}
.pay-pill--danger {
  background: #fde8e8;
  color: #a12626;
}
.pay-pill__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1f9a72;
  box-shadow: 0 0 0 0 rgba(31, 154, 114, 0.55);
  animation: pay-pulse 1.6s ease-out infinite;
}
@keyframes pay-pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 154, 114, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(31, 154, 114, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 154, 114, 0); }
}

.pay-checkout__timer {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 220, 150, 0.35);
}
.pay-checkout__timer-text {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #f3e6c8;
  font-size: 14px;
}
.pay-checkout__timer-text strong {
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: #ffe9a8;
}
.pay-checkout__timer--warn .pay-checkout__timer-text strong {
  color: #ffb347;
}
.pay-checkout__timer--ended .pay-checkout__timer-text strong {
  color: #ff7a7a;
}
.pay-checkout__timer-track {
  margin-top: 10px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.pay-checkout__timer-bar {
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c9a227, #e8c45a);
  transition: width 0.8s linear;
}
.pay-checkout__timer--warn .pay-checkout__timer-bar {
  background: linear-gradient(90deg, #c97822, #e8a23a);
}
.pay-checkout__timer-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: rgba(243, 230, 200, 0.75);
}

.pay-transfer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pay-transfer__col {
  padding: 16px;
  border-radius: 14px;
  background: #fffdf8;
  border: 1px solid #e2d2b0;
  color: #3d2a14;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.pay-transfer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.pay-transfer__head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #2f2112;
}
.pay-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  background: #ffe2e2;
  color: #b42318;
}
.pay-transfer__hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: #7a6244;
}
.pay-transfer__qr {
  display: flex;
  justify-content: center;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px dashed #d7c4a0;
}
.pay-transfer__qr img {
  width: min(100%, 280px);
  height: auto;
  display: block;
}
.pay-transfer__dl {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #1f6b58;
  text-decoration: underline;
}
.pay-transfer__empty {
  margin: 0;
  padding: 18px;
  text-align: center;
  font-size: 13px;
  color: #8c6647;
  background: #f7f0e4;
  border-radius: 10px;
}
.pay-rows {
  margin: 0;
  display: grid;
  gap: 8px;
}
.pay-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f7f1e6;
}
.pay-row dt {
  margin: 0;
  font-size: 12px;
  color: #8a6a3a;
  font-weight: 600;
}
.pay-row dd {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: #2f2112;
}
.pay-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
}
.pay-row--ref {
  background: #e9f7ef;
  border: 1px solid #9fd4b3;
}
.pay-row--ref code {
  color: #147a45;
}
.pay-copy {
  flex-shrink: 0;
  border: 0;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  background: #1f6b58;
  color: #fff;
}
.pay-copy:hover {
  filter: brightness(1.08);
}
.pay-copy.is-copied {
  background: #147a45;
}
.pay-transfer__warn {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #8a3b12;
  background: #fff4e5;
  border: 1px solid #f0c48a;
  border-radius: 8px;
  padding: 10px 12px;
}
.pay-result {
  padding: 18px;
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 248, 230, 0.92);
  color: #3d2a14;
}
.pay-result p {
  margin: 0 0 14px;
}
.pay-result--ok {
  background: #e8f6ee;
  border: 1px solid #9fd4b3;
}
.pay-result--danger {
  background: #fdecea;
  border: 1px solid #f0b4b0;
  color: #7a1f1f;
}
.pay-checkout__back {
  margin-top: 4px;
}

@media (max-width: 860px) {
  .pay-transfer {
    grid-template-columns: 1fr;
  }
  .pay-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .pay-checkout__amount {
    font-size: 1.3rem;
  }
}

.payment-target {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 220, 150, 0.35);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.payment-target__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.payment-target__field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #f3e6c8;
}

.payment-target__field select {
  width: 100%;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 220, 150, 0.4);
  background: #1a2218;
  color: #f7f0de;
  padding: 8px 10px;
}

.payment-target__status {
  margin: 8px 0 0;
  font-size: 12px;
  min-height: 1.2em;
}

@media (max-width: 640px) {
  .payment-target__grid {
    grid-template-columns: 1fr;
  }
}
.site-panel-user-chip__meta {
  margin: 2px 0 0;
  font-size: 12px;
  color: #6b5a45;
}

.pay-server-pick {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 220, 150, 0.35);
}
.pay-server-pick__label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #f3e6c8;
}
.pay-sid-select {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 220, 150, 0.45);
  background: #1a2218;
  color: #f7f0de;
  font-size: 14px;
  font-weight: 600;
}
.pay-sid-select:focus {
  outline: 2px solid rgba(201, 162, 39, 0.55);
  outline-offset: 1px;
}
.pay-server-pick__hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: rgba(243, 230, 200, 0.7);
}
.site-flash.success {
  margin: 0 0 12px;
  padding: 8px 12px;
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}
.site-flash.error {
  margin: 0 0 12px;
  padding: 8px 12px;
  background: #fdecea;
  color: #8b1e1e;
  border: 1px solid #f5c6c2;
}

/* PC header — AccountSlot (Figma PC/AccountSlot) */
.site-view-pc .buttons-block .logged.site-account-slot {
  padding: 10px 8px;
  margin-right: 25px;
  color: #1f1e1e;
}
.site-view-pc .site-account-slot__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.site-view-pc .site-account-slot__name {
  margin: 0;
  color: #5c3a1e;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-view-pc .site-account-slot__balance {
  margin: 2px 0 0;
  color: #144738;
  font-size: 11px;
}
.site-view-pc .site-account-slot__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.site-view-pc .site-account-slot__link {
  border: 0;
  background: none;
  padding: 0;
  color: #8b2e1f;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.site-view-pc .site-account-slot__link:hover {
  text-decoration: underline;
}
.site-view-pc .site-account-slot__link--admin {
  color: #144738;
  font-weight: 700;
}
.site-view-pc .site-account-slot__logout {
  display: inline;
  margin: 0;
  padding: 0;
}
.site-view-pc .site-account-slot__hint {
  margin: 6px 0 0;
  color: #8c6647;
  font-size: 10px;
}

.site-view-mobile .site-mobile-account-chip {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.site-view-mobile .site-mobile-account-chip .member-auth-label {
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Launcher popup — Figma / Chơi ngay orb style */
.site-panel-launcher__hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(31, 107, 88, 0.12) 0%, rgba(201, 162, 39, 0.1) 100%);
  border: 1px solid #d1bf94;
  border-radius: 4px;
}
.site-panel-launcher__logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
}
.site-panel-launcher__logo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.site-panel-launcher__meta {
  min-width: 0;
}
.site-panel-launcher__badge {
  display: inline-block;
  margin: 0 6px 8px 0;
  padding: 4px 10px;
  border-radius: 12px;
  background: #144738;
  color: #faf5e5;
  font-size: 11px;
  font-weight: 700;
}
.site-panel-launcher__badge--muted {
  background: #5c3a1e;
}
.site-panel-launcher__updated {
  margin: 0 0 6px;
  color: #8c6647;
  font-size: 11px;
}
.site-panel-launcher__lead {
  margin: 0;
  color: #5c3a1e;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}
.site-panel-launcher__requirements {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #d1bf94;
  border-left: 4px solid #1f6b58;
}
.site-panel-launcher__requirements strong {
  color: #144738;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.site-panel-launcher__requirements span {
  color: #5c3a1e;
  font-size: 12px;
}
.site-panel-launcher__steps {
  margin: 0 0 18px;
  padding: 0 0 0 22px;
  color: #5c3a1e;
  font-size: 13px;
  line-height: 1.55;
}
.site-panel-launcher__steps li {
  margin-bottom: 6px;
}
.site-panel-launcher__steps li::marker {
  color: #c7942e;
  font-weight: 700;
}
.site-panel-launcher__downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.site-panel-launcher__download {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 56px;
  padding: 10px 18px;
  border-radius: 3px;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.site-panel-launcher__download--primary {
  background: linear-gradient(180deg, #d4a843 0%, #c7942e 45%, #a67822 100%);
  border: 1px solid #c9a227;
  box-shadow: 0 4px 12px rgba(167, 120, 34, 0.35);
  color: #fff;
}
.site-panel-launcher__download--mirror {
  background: #1f6b58;
  border: 1px solid #c9a227;
  color: #fff;
}
.site-panel-launcher__download--disabled {
  background: #ccc;
  border: 1px solid #aaa;
  color: #666;
  cursor: not-allowed;
}
.site-panel-launcher__download--primary:hover,
.site-panel-launcher__download--mirror:hover {
  filter: brightness(110%);
  transform: translateY(-1px);
}
.site-panel-launcher__download-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.site-panel-launcher__download-sub {
  margin-top: 2px;
  font-size: 10px;
  opacity: 0.9;
}
.site-panel-launcher__note {
  margin-top: 12px;
}

@media (max-width: 768px) {
  .site-panel-launcher__hero {
    flex-direction: column;
    text-align: center;
  }
  .site-panel-launcher__downloads {
    flex-direction: column;
  }
  .site-panel-launcher__download {
    width: 100%;
  }
  .site-panel-pack-grid {
    grid-template-columns: 1fr;
  }
  .site-panel {
    margin: 12px auto;
  }
  .site-panel-actions {
    flex-direction: column;
  }
  .site-panel-btn {
    width: 100%;
  }
}


/* Animate library không load — tránh opacity:0 vĩnh viễn */
.fadeInDownShort,
.fadeInUpShort,
.fadeInLeftShort,
.fadeInRightShort,
.fadeInDown,
.fadeInUp,
.fadeInLeft,
.fadeInRight,
.bounceInRight,
.bounceInLeft,
.bounceInUp,
.bounceInDown {
  opacity: 1 !important;
  -webkit-transform: none !important;
  -ms-transform: none !important;
  transform: none !important;
}

/* Nav PC: giữ 1 dòng như demo tienkiem.cmn.vn (không đụng layout logo) */
.site-view-pc .header .navbar-nav ul {
  flex-wrap: nowrap;
}
.site-view-pc .header .navbar-nav ul > li {
  flex-shrink: 0;
}
.site-view-pc .header .navbar-nav ul > li > a {
  white-space: nowrap;
}
