/* ============================================================
   CUSTOM CSS — Login & Register Pages
   Theme: game — tím/vàng/tối, hài hoà với header sẵn có
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

/* ============================================================
   Page wrapper — override nền trắng mặc định
   ============================================================ */
.news__page__ {
  min-height: 70vh;
  padding: 40px 0 70px;
  background: #f0edf8 !important;
  position: relative;
}

.news__page__::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 35% at 5% 50%, rgba(108, 60, 180, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 95% 50%, rgba(255, 160, 0, 0.07) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.subpage-container.wrapper-id {
  position: relative;
  z-index: 1;
}

/* ============================================================
   Page title
   ============================================================ */
.news__page__ .page-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-bottom: 14px;
}

.news__page__ .page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #a855f7, transparent);
}

/* ============================================================
   Main card wrapper (row.content)
   ============================================================ */
.news__page__ .row.content {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  /* sidebar kéo cao bằng phần form */
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.18);
  box-shadow:
    0 4px 6px rgba(109, 40, 217, 0.04),
    0 20px 50px rgba(109, 40, 217, 0.10),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

/* ============================================================
   Left sidebar
   ============================================================ */
.news__page__ .col-3 {
  flex: 0 0 190px;
  max-width: 190px;
  background: linear-gradient(180deg, #3b1f72 0%, #2d1559 100%);
  padding: 28px 0;
  /* bỏ min-height — dùng align-items: stretch để tự kéo dài */
}

.news__page__ ul.left-side {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news__page__ ul.left-side li a {
  display: block;
  padding: 15px 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.22s ease;
  border-left: 3px solid transparent;
  position: relative;
}

.news__page__ ul.left-side li a:hover {
  color: #fbbf24;
  background: rgba(255, 255, 255, 0.06);
  border-left-color: rgba(251, 191, 36, 0.5);
}

.news__page__ ul.left-side li.active a {
  color: #fbbf24;
  background: rgba(255, 255, 255, 0.08);
  border-left-color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.news__page__ ul.left-side li.active::after {
  content: '';
  display: block;
  margin: 0 18px;
  height: 1px;
  background: rgba(251, 191, 36, 0.2);
}

/* ============================================================
   Right user box
   ============================================================ */
.news__page__ .col-9.user-box {
  flex: 1;
  padding: 32px 36px 40px;
  background: #fff;
}

/* ============================================================
   Breadcrumb heading
   ============================================================ */
.news__page__ .breadcrumb {
  background: transparent;
  border: none;
  padding: 0 0 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid #f0ebff;
}

.news__page__ .breadcrumb h4.text-blue {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  color: #7c3aed !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

/* ============================================================
   Wrap form
   ============================================================ */
.news__page__ .wrap-form {
  max-width: 440px;
  width: 100% !important;
}

.news__page__ .form-login {
  display: flex;
  flex-direction: column;
}

/* ============================================================
   mb-3 spacing
   ============================================================ */
.news__page__ .form-login .mb-3 {
  margin-bottom: 20px;
}

/* ============================================================
   Label
   ============================================================ */
.news__page__ .form-login .form-label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 7px;
}

/* ============================================================
   Input
   ============================================================ */
.news__page__ .form-login .form-control {
  width: 100%;
  padding: 11px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #1e1b4b;
  background: #faf8ff;
  border: 1.5px solid #ddd6fe;
  border-radius: 10px;
  outline: none;
  transition: all 0.22s ease;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.news__page__ .form-login .form-control::placeholder {
  color: #c4b5fd;
  font-weight: 400;
}

.news__page__ .form-login .form-control:focus {
  border-color: #8b5cf6;
  background: #fff;
  box-shadow: 0 0 0 3.5px rgba(139, 92, 246, 0.14);
}

/* ============================================================
   Submit button
   ============================================================ */
.news__page__ .form-login .btn.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 13px 38px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 60%, #5b21b6 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow:
    0 4px 15px rgba(109, 40, 217, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.15) inset;
  align-self: flex-start;
  position: relative;
  overflow: hidden;
}

.news__page__ .form-login .btn.btn-secondary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.22s;
}

.news__page__ .form-login .btn.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(109, 40, 217, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

.news__page__ .form-login .btn.btn-secondary:hover::after {
  opacity: 1;
}

.news__page__ .form-login .btn.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.3);
}

/* ============================================================
   Alert messages
   ============================================================ */
.news__page__ .alert {
  padding: 11px 15px;
  border-radius: 9px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  border: 1px solid transparent;
  line-height: 1.5;
}

.news__page__ .alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.news__page__ .alert-success strong {
  color: #166534;
}

.news__page__ .alert-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

/* ============================================================
   Responsive — tablet / mobile
   ============================================================ */
@media (max-width: 768px) {
  .news__page__ {
    padding: 20px 0 48px;
  }

  .news__page__ .row.content {
    flex-direction: column;
    margin: 0 12px;
    border-radius: 14px;
  }

  .news__page__ .col-3 {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    min-height: auto;
    padding: 16px 0;
    background: linear-gradient(90deg, #3b1f72 0%, #2d1559 100%);
  }

  .news__page__ ul.left-side {
    display: flex;
    flex-direction: row;
  }

  .news__page__ ul.left-side li {
    flex: 1;
  }

  .news__page__ ul.left-side li a {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
  }

  .news__page__ ul.left-side li.active a {
    border-left: none;
    border-bottom-color: #fbbf24;
    background: rgba(255, 255, 255, 0.08);
  }

  .news__page__ ul.left-side li.active::after {
    display: none;
  }

  .news__page__ .col-9.user-box {
    padding: 24px 18px 32px;
  }

  .news__page__ .form-login .btn.btn-secondary {
    width: 100%;
    align-self: stretch;
  }

  .news__page__ .wrap-form {
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .news__page__ .page-title {
    font-size: 18px;
    margin-bottom: 18px;
  }

  .news__page__ .row.content {
    margin: 0 8px;
  }

  .news__page__ .col-9.user-box {
    padding: 18px 14px 26px;
  }
}

/* ============================================================
   SERVER LIST PAGE — .list-server, .sv-item, .sv_hot, .paging
   ============================================================ */

/* ---- Wrapper card (dùng chung .row.content.w-100) ---- */
.news__page__ .row.content.w-100 {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  box-shadow:
    0 4px 6px rgba(109, 40, 217, 0.04),
    0 20px 50px rgba(109, 40, 217, 0.10);
  padding: 28px 28px 32px;
  max-width: 860px;
}

/* ---- List server container ---- */
.news__page__ .list-server {
  width: 100%;
}

/* ---- Server HOT (mới nhất) ---- */
.news__page__ .list-server .sv_hot.sv-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  margin-bottom: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 60%, #b45309 100%);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  position: relative;
  overflow: hidden;
}

.news__page__ .list-server .sv_hot.sv-item::before {
  content: '🔥';
  font-size: 15px;
}

.news__page__ .list-server .sv_hot.sv-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.22s;
}

.news__page__ .list-server .sv_hot.sv-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.5);
  color: #fff;
}

.news__page__ .list-server .sv_hot.sv-item:hover::after {
  opacity: 1;
}

/* ---- List page (ul.pagesv) ---- */
.news__page__ .list-server ul.pagesv {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

/* ---- li item ---- */
.news__page__ .list-server ul.pagesv li {
  margin: 0;
  padding: 0;
}

/* ---- Server item link (thường) ---- */
.news__page__ .list-server .sv-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #5b21b6;
  background: #f5f3ff;
  border: 1.5px solid #ddd6fe;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news__page__ .list-server .sv-item:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(109, 40, 217, 0.3);
}

/* ---- Pagination ---- */
.news__page__ .list-server .paging {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid #f0ebff;
}

.news__page__ .list-server .paging .prev_page,
.news__page__ .list-server .paging .next_page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #ede9fe;
  color: #7c3aed;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid #ddd6fe;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.news__page__ .list-server .paging .prev_page:hover,
.news__page__ .list-server .paging .next_page:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
  transform: scale(1.05);
}

.news__page__ .list-server .paging .text {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #6d28d9;
  min-width: 100px;
  text-align: center;
  letter-spacing: 0.04em;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .news__page__ .row.content.w-100 {
    padding: 20px 14px 24px;
    margin: 0 10px;
    border-radius: 14px;
  }

  .news__page__ .list-server ul.pagesv {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
  }

  .news__page__ .list-server .sv-item {
    font-size: 12.5px;
    padding: 9px 8px;
  }
}

@media (max-width: 480px) {
  .news__page__ .list-server ul.pagesv {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   USER ACCOUNT PAGES — info, change-pass, change-email
   ============================================================ */

/* ---- Breadcrumb description text ---- */
.news__page__ .breadcrumb p {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  color: #6b7280;
  margin: 6px 0 12px;
  line-height: 1.6;
}

/* ---- Alert warning (info page) ---- */
.news__page__ .alert-warning,
.news__page__ .user-info-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  color: #92400e;
  border-radius: 9px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  line-height: 1.55;
}

/* ---- User info table ---- */
.news__page__ .user-table {
  width: 100%;
  margin-top: 6px;
}

.news__page__ .user-table .info-row {
  display: flex;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #f3f0ff;
  gap: 0;
}

.news__page__ .user-table .info-row .col-2 {
  flex: 0 0 16.66%;
}

.news__page__ .user-table .info-row .col-4 {
  flex: 0 0 33%;
}

.news__page__ .user-table .info-row .col-6 {
  flex: 0 0 50%;
}

.news__page__ .user-table .info-row:last-child {
  border-bottom: none;
}

/* Label column */
.news__page__ .user-table .label-text {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news__page__ .user-table .label-text i {
  color: #a78bfa;
  font-size: 15px;
  width: 18px;
  text-align: center;
}

.news__page__ .user-table .label-text img {
  display: inline-block;
  margin-right: 0 !important;
}

/* Value column */
.news__page__ .user-table .value-text {
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: #1e1b4b;
}

/* Action link (Cập nhật) */
.news__page__ .user-table .action-link {
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #7c3aed;
  text-decoration: none;
  padding: 5px 14px;
  border: 1.5px solid #ddd6fe;
  border-radius: 7px;
  background: #f5f3ff;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-block;
}

.news__page__ .user-table .action-link:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
}

/* ---- user-info-balance card (info.blade.php — hidden section) ---- */
.news__page__ .user-info-balance {
  background: linear-gradient(145deg, #3b1f72, #2d1559);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 20px;
}

.news__page__ .user-info-balance .balance-title {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.news__page__ .user-info-balance .balance-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news__page__ .user-info-balance .balance-details li {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}

.news__page__ .user-info-balance .balance-details li span {
  font-weight: 700;
  color: #fff;
}

/* ---- custom-form-wrapper (form cập nhật tài khoản) ---- */
.news__page__ .custom-form-wrapper {
  background: #faf8ff;
  border: 1px solid #ede9fe;
  border-radius: 14px;
  padding: 22px 24px;
}

/* ---- custom-link-btn ---- */
.news__page__ .custom-link-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #7c3aed;
  text-decoration: none;
  padding: 6px 16px;
  border: 1.5px solid #ddd6fe;
  border-radius: 8px;
  background: #f5f3ff;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.news__page__ .custom-link-btn:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}

/* Đổi mật khẩu link màu đỏ override */
.news__page__ .custom-link-btn[style*="color: #ff0000"],
.news__page__ .custom-link-btn[style*="color:#ff0000"] {
  color: #dc2626 !important;
  border-color: #fecaca;
  background: #fef2f2;
}

.news__page__ .custom-link-btn[style*="color: #ff0000"]:hover,
.news__page__ .custom-link-btn[style*="color:#ff0000"]:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff !important;
}

/* ---- form-horizontal wrapper (change-pass, change-email) ---- */
.news__page__ .col-9.user-box .row.content.w-100 {
  /* remove duplicate card shadow từ server page — user-box đã có nền */
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  max-width: 100%;
}

.news__page__ .col-9.user-box .wrap-form {
  max-width: 460px;
}

/* control-label (dùng thay form-label ở một số chỗ) */
.news__page__ .form-horizontal .control-label,
.news__page__ .form-horizontal .form-label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 7px;
}

/* ---- form-group spacing ---- */
.news__page__ .form-group {
  margin-top: 6px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .news__page__ .user-table .info-row {
    padding: 10px 0;
  }

  .news__page__ .user-table .label-text {
    font-size: 12px;
  }

  .news__page__ .user-table .value-text {
    font-size: 13.5px;
  }

  .news__page__ .user-info-balance {
    margin-bottom: 16px;
  }

  .news__page__ .col-9.user-box .wrap-form {
    max-width: 100%;
  }
}

/* ============================================================
   FIX: input bị ẩn trong .te-content (style.css gốc override)
   FIX: btn-default chưa được style
   ============================================================ */

/* Reset toàn bộ input/select bên trong .te-content khi nằm trong news__page__ */
.news__page__ .te-content input,
.news__page__ .te-content input.form-control,
.news__page__ .te-content select.form-control,
.news__page__ .te-content textarea.form-control {
  display: block !important;
  width: 100% !important;
  padding: 11px 14px !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #1e1b4b !important;
  background: #faf8ff !important;
  border: 1.5px solid #ddd6fe !important;
  border-radius: 10px !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  float: none !important;
}

.news__page__ .te-content input::placeholder,
.news__page__ .te-content textarea::placeholder {
  color: #c4b5fd !important;
}

.news__page__ .te-content input:focus,
.news__page__ .te-content textarea:focus {
  border-color: #8b5cf6 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3.5px rgba(139, 92, 246, 0.14) !important;
}

/* btn-default (nút Cập Nhật dùng sai class) — style giống btn-secondary */
.news__page__ .btn.btn-default,
.news__page__ .form-horizontal .btn.btn-default {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 13px 38px !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: #fff !important;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 60%, #5b21b6 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 15px rgba(109, 40, 217, 0.35) !important;
  margin-top: 8px !important;
}

.news__page__ .btn.btn-default:hover,
.news__page__ .form-horizontal .btn.btn-default:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(109, 40, 217, 0.45) !important;
}

/* Fix các row/label dạng float trong form cũ */
.news__page__ .te-content .row {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
  float: none !important;
}

.news__page__ .te-content .row label {
  font-family: 'Outfit', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #6b7280 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  margin-bottom: 7px !important;
  float: none !important;
  width: auto !important;
}

.news__page__ .te-content .row .float-left {
  float: none !important;
  width: 100% !important;
}

/* ============================================================
   GLOBAL: button.btn.btn-secondary
   ============================================================ */
button.btn.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 36px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 60%, #5b21b6 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(109, 40, 217, 0.35);
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

button.btn.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.22s;
}

button.btn.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(109, 40, 217, 0.45);
  color: #fff;
}

button.btn.btn-secondary:hover::before {
  opacity: 1;
}


button.btn.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.3);
}

/* ============================================================
   NAVBAR DROPDOWN — "Tài khoản"
   ============================================================ */

/* Li wrapper — cần position: relative */
#menu li.nav-dropdown-wrap {
  position: relative;
}

/* Trigger link */
#menu li.nav-dropdown-wrap>a.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* Mũi tên xoay khi open */
#menu li.nav-dropdown-wrap>a.nav-dropdown-trigger .nav-dropdown-arrow {
  font-size: 11px;
  line-height: 1;
  transition: transform 0.22s ease;
  display: inline-block;
}

#menu li.nav-dropdown-wrap.open>a.nav-dropdown-trigger .nav-dropdown-arrow {
  transform: rotate(180deg);
}

/* Avatar chữ cái đầu */
.nav-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a0e00;
  font-size: 12px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* Dropdown panel */
#menu li.nav-dropdown-wrap .nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  background: rgba(30, 14, 60, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 14px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  padding: 6px 0;
  z-index: 9999;
  list-style: none;
  margin: 0;
  /* animation */
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

#menu li.nav-dropdown-wrap.open .nav-dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Header (tên user) */
#menu .nav-dropdown-menu li.nav-dropdown-header {
  padding: 10px 16px 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}

/* Divider */
#menu .nav-dropdown-menu li.nav-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 4px 0;
}

/* Item link */
#menu .nav-dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
  border-radius: 8px;
  margin: 0 6px;
}

#menu .nav-dropdown-menu li a:hover {
  background: rgba(139, 92, 246, 0.18);
  color: #fff;
  padding-left: 20px;
}

/* Logout — màu đỏ */
#menu .nav-dropdown-menu li a.nav-dropdown-logout {
  color: #f87171;
}

#menu .nav-dropdown-menu li a.nav-dropdown-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

/* ---- Toggle bằng JS click ---- */
/* (Xem thêm script cuối file home.blade.php) */

/* ============================================================
   GIFTCODE PAGE — .giftcode-page
   ============================================================ */

/* Wrapper form card */
.giftcode-page .wrapper-content {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.giftcode-page .wrapper-content .content {
  width: 100%;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  box-shadow: 0 20px 50px rgba(109, 40, 217, 0.10);
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Alert wrapper */
.giftcode-page .giftcode-alert {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 10px;
}

/* Select group rows */
.giftcode-page .select-group {
  flex-direction: column;
  gap: 8px;
}

/* Server tên (đã chọn) */
.giftcode-page .dropdown.server>span {
  font-family: 'Outfit', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #5b21b6 !important;
  font-style: normal !important;
}

/* Select server */
.giftcode-page .dropdown.server select.form-select,
.giftcode-page select#server_id {
  width: 100%;
  padding: 11px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1e1b4b;
  background: #faf8ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237c3aed' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1.5px solid #ddd6fe;
  border-radius: 10px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.22s ease;
  cursor: pointer;
}

.giftcode-page .dropdown.server select:focus,
.giftcode-page select#server_id:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3.5px rgba(139, 92, 246, 0.14);
}

/* Input nhập code */
.giftcode-page .dropdown.giftcode input[type="text"],
.giftcode-page input[name="code"] {
  display: block !important;
  width: 100% !important;
  padding: 12px 16px !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #1e1b4b !important;
  background: #faf8ff !important;
  border: 1.5px solid #ddd6fe !important;
  border-radius: 10px !important;
  outline: none !important;
  transition: all 0.22s ease !important;
  box-sizing: border-box !important;
  letter-spacing: 0.06em !important;
}

.giftcode-page .dropdown.giftcode input[type="text"]:focus,
.giftcode-page input[name="code"]:focus {
  border-color: #8b5cf6 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3.5px rgba(139, 92, 246, 0.14) !important;
}

/* Captcha area */
.giftcode-page .captcha-wrap img,
.giftcode-page .select-group img:not(.refresh-icon) {
  border-radius: 8px;
  border: 1px solid #ede9fe;
  height: 48px;
  width: auto;
}

.giftcode-page .refresh-icon {
  width: 28px;
  height: 28px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.3s ease;
  vertical-align: middle;
  margin-left: 8px;
}

.giftcode-page .refresh-icon:hover {
  opacity: 1;
  transform: rotate(180deg);
}

/* Input captcha */
.giftcode-page .input-captcha {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  padding: 11px 14px !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 15px !important;
  color: #1e1b4b !important;
  background: #faf8ff !important;
  border: 1.5px solid #ddd6fe !important;
  border-radius: 10px !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: all 0.22s ease !important;
}

.giftcode-page .input-captcha:focus {
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 0 3.5px rgba(139, 92, 246, 0.14) !important;
  background: #fff !important;
}

/* Checkbox xác nhận */
.giftcode-page .confirm-checkbox {
  width: 18px !important;
  height: 18px !important;
  accent-color: #7c3aed;
  cursor: pointer;
  flex-shrink: 0;
}

/* Button nhận giftcode */
.giftcode-page button.get-giftcode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 36px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 60%, #5b21b6 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(109, 40, 217, 0.35);
}

.giftcode-page button.get-giftcode:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(109, 40, 217, 0.45);
}

/* Mô tả lưu ý */
.giftcode-page .giftcode-description {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.7;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 9px;
  padding: 12px 14px;
}

/* Choose server heading */
.giftcode-page h3 {
  font-family: 'Outfit', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #5b21b6 !important;
  padding-left: 0 !important;
  margin-bottom: 6px !important;
}

.giftcode-page p[style*="color:rgb(255"] {
  font-family: 'Outfit', sans-serif !important;
  font-size: 13px !important;
  padding-left: 0 !important;
  color: #d97706 !important;
}

/* ============================================================
   PAYMENT PAGE — .wrapper-payment
   ============================================================ */

/* Tab navigation */
.wrapper-payment .payment-tab {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  border-bottom: 2px solid #ede9fe;
  gap: 0;
}

.wrapper-payment .payment-tab li.link-to-payment a {
  display: block;
  padding: 12px 22px;
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.wrapper-payment .payment-tab li.link-to-payment a:hover {
  color: #7c3aed;
}

.wrapper-payment .payment-tab li.link-to-payment.active a {
  color: #7c3aed;
  border-bottom-color: #7c3aed;
  font-weight: 700;
}

/* Promotion banner */
.wrapper-payment .promotion-alert {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  color: #92400e;
  margin-bottom: 16px;
}

/* Payment form area */
.wrapper-payment .payment {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  box-shadow: 0 20px 50px rgba(109, 40, 217, 0.10);
  padding: 28px;
}

/* User info bar */
.wrapper-payment .payment-userinfo {
  background: linear-gradient(135deg, #3b1f72, #2d1559);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.wrapper-payment .payment-userinfo ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.wrapper-payment .payment-userinfo li {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
}

.wrapper-payment .payment-userinfo .uname-label,
.wrapper-payment .payment-userinfo .gem-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wrapper-payment .payment-userinfo .gem-label.color-blue {
  color: #a78bfa;
}

.wrapper-payment .payment-userinfo b {
  color: #fff;
  font-weight: 700;
  margin-left: 4px;
}

/* Server select */
.wrapper-payment .server-list select.form-control {
  width: 100%;
  padding: 11px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: #1e1b4b;
  background: #faf8ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237c3aed' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1.5px solid #ddd6fe;
  border-radius: 10px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  margin-bottom: 16px;
  transition: all 0.22s ease;
}

.wrapper-payment .server-list select.form-control:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3.5px rgba(139, 92, 246, 0.14);
}

/* "Chọn giá trị" label */
.wrapper-payment .item-list>label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
}

/* Item grid */
.wrapper-payment .item-list-slick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

/* Item card */
.wrapper-payment .item-list-slick .item {
  border-radius: 12px;
  border: 1.5px solid #ddd6fe;
  background: #f5f3ff;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}

.wrapper-payment .item-list-slick .item label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  text-decoration: none;
  gap: 4px;
  cursor: pointer;
}

.wrapper-payment .item-list-slick .item .top {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.wrapper-payment .item-list-slick .item .top b {
  color: #5b21b6;
  font-weight: 700;
  font-size: 13px;
}

.wrapper-payment .item-list-slick .item .bot {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  color: #9ca3af;
}

.wrapper-payment .item-list-slick .item .bot b {
  color: #7c3aed;
  font-weight: 600;
}

.wrapper-payment .item-list-slick .item:hover,
.wrapper-payment .item-list-slick .item.active {
  border-color: #7c3aed;
  background: linear-gradient(135deg, #ede9fe, #f5f3ff);
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.2);
  transform: translateY(-2px);
}

.wrapper-payment .item-list-slick .item.active {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.wrapper-payment .item-list-slick .item.active .top,
.wrapper-payment .item-list-slick .item.active .top b,
.wrapper-payment .item-list-slick .item.active .bot,
.wrapper-payment .item-list-slick .item.active .bot b {
  color: #fff;
}

/* Amount radio labels */
.wrapper-payment .list-amount label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid #ddd6fe;
  border-radius: 8px;
  background: #f5f3ff;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #5b21b6;
  cursor: pointer;
  margin: 4px;
  transition: all 0.2s ease;
}

.wrapper-payment .list-amount label:has(input:checked),
.wrapper-payment .list-amount label input:checked+span {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}

.wrapper-payment .list-amount input[type="radio"] {
  accent-color: #7c3aed;
}

/* Amount heading */
.wrapper-payment .amount-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}

/* Captcha area */
.wrapper-payment .w-100.mw-457 img:not(.refresh-icon) {
  border-radius: 8px;
  border: 1px solid #ede9fe;
}

.wrapper-payment .refresh-icon {
  width: 26px;
  cursor: pointer;
  opacity: 0.6;
  vertical-align: middle;
  margin-left: 8px;
  transition: opacity 0.2s, transform 0.3s;
}

.wrapper-payment .refresh-icon:hover {
  opacity: 1;
  transform: rotate(180deg);
}

.wrapper-payment input[name="captcha"].form-control {
  margin-top: 10px;
  padding: 11px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: #1e1b4b;
  background: #faf8ff;
  border: 1.5px solid #ddd6fe;
  border-radius: 10px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.22s ease;
}

.wrapper-payment input[name="captcha"].form-control:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3.5px rgba(139, 92, 246, 0.14);
  background: #fff;
}

/* Submit button */
.wrapper-payment button.submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  margin-top: 16px !important;
  padding: 13px 40px !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: #fff !important;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 60%, #5b21b6 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 15px rgba(109, 40, 217, 0.35) !important;
  height: auto !important;
}

.wrapper-payment button.submit:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(109, 40, 217, 0.45) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .giftcode-page .wrapper-content .content {
    padding: 20px 16px 24px;
  }

  .wrapper-payment .payment {
    padding: 20px 16px;
  }

  .wrapper-payment .item-list-slick {
    grid-template-columns: repeat(2, 1fr);
  }

  .wrapper-payment .payment-tab li.link-to-payment a {
    padding: 10px 12px;
    font-size: 12px;
  }
}


.ct-home-btn img {
  display: block;
  width: 100%;
  height: auto;
}

.navbar-content ul li a {
  width: auto;
}
/* Fix old browsers */
.main_head .limit__game {
    padding-left: 1.33333vw;
    padding-right: 1.33333vw;
}
.limit__game {
    margin-left: auto;
    margin-right: auto;
}
.wrapper-payment .payment-userinfo ul {
  gap: 0;
}
.wrapper-payment .payment-userinfo ul li {
  margin-right: 20px;
}
.wrapper-payment .item-list-slick {
  gap: 0;
}
.wrapper-payment .item-list-slick .item {
  margin-right: 10px;
  margin-bottom: 10px;
}
@media only screen and (min-width: 992px) {
    .fixed__right .dlStore__, .dlStore__ {
      gap: 0;
    }
  .fixed__right .dlStore__ .aLink__Dlstore {
    margin-bottom: 5px;
  }
  .dlStore__ a.aLink__Dlstore {
     margin-bottom: 5px;
  }
}