/* ============================================
   RESET
   ============================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #1a1a1a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   VARIABLES
   ============================================ */
:root {
  --red: #e61e26;
  --red-hover: #c4181f;
  --red-light: #fef2f2;
  --gray-bg: #f5f5f5;
  --gray-border: #e0e0e0;
  --gray-text: #6b6b6b;
  --black: #1a1a1a;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.site-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  overflow: hidden;
  flex-shrink: 0;
}
.site-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.site-logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}
.site-logo-text .sub {
  font-size: 12px;
  color: var(--gray-text);
  font-weight: 400;
}
.site-nav {
  display: none;
  align-items: center;
  gap: 28px;
}
@media (min-width: 768px) {
  .site-nav { display: flex; }
}
.site-nav a {
  color: var(--gray-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--red); }
.site-nav a.active { color: var(--red); }
.site-user {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-text);
}

/* ============================================
   SECTION CHỌN GAME
   ============================================ */
.section-games {
  background: var(--gray-bg);
  border-bottom: 1px solid var(--gray-border);
  padding: 20px 0;
}
.section-games .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-games h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin: 0 0 14px;
}
.games-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.games-scroll::-webkit-scrollbar { display: none; }
.game-item {
  flex-shrink: 0;
  width: 110px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}
.game-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  position: relative;
  background: linear-gradient(135deg, #e61e26, #f59e0b);
  transition: transform 0.15s;
}
.game-item:hover .game-icon {
  transform: translateY(-2px);
}
.game-item.active .game-icon {
  box-shadow: 0 0 0 2px var(--red);
}
.game-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid #fff;
}
.game-name {
  font-size: 13px;
  color: var(--gray-text);
  margin-top: 10px;
  line-height: 1.3;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-item.active .game-name {
  color: var(--red);
  font-weight: 600;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.main-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 20px 140px;
}

/* ============================================
   BANNER GAME
   ============================================ */
.game-banner {
  background: linear-gradient(135deg, #7f1d1d 0%, #1a1a1a 100%);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 120px;
}
.game-banner-icon {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e61e26, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  position: relative;
  flex-shrink: 0;
}
.game-banner-content {
  flex: 1;
  z-index: 1;
}
.game-banner-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.2;
}
.game-banner-content .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  background: rgba(0,0,0,.4);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.15);
}
.game-banner-content .badge svg {
  width: 13px;
  height: 13px;
}

/* ============================================
   STEPS
   ============================================ */
.step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 16px;
}
.step-number {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================
   FORM INPUT
   ============================================ */
.form-input {
  width: 100%;
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  background: #fff;
}
.form-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230, 30, 38, 0.08);
}

/* ============================================
   TABS
   ============================================ */
.tab-btn {
  padding: 8px 20px;
  border-radius: 22px;
  border: 1px solid var(--gray-border);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-text);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.tab-btn:hover {
  border-color: #ccc;
}
.tab-btn.active {
  border-color: var(--red);
  color: var(--red);
  background: #fff;
}

/* ============================================
   DENOM GRID
   ============================================ */
.denom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (min-width: 640px) {
  .denom-grid { grid-template-columns: repeat(6, 1fr); }
}
.denom-item {
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 16px 6px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: all 0.15s;
}
.denom-item:hover {
  border-color: #fca5a5;
}
.denom-item.active {
  border-color: var(--red);
  background: var(--red-light);
}
.denom-amount {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
}
.denom-points {
  font-size: 13px;
  color: var(--gray-text);
  margin-top: 6px;
}
.denom-points .diamond {
  color: #3b82f6;
}

/* ============================================
   METHOD GRID
   ============================================ */
.method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .method-grid { grid-template-columns: repeat(2, 1fr); }
}
.method-item {
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  transition: all 0.15s;
  position: relative;
}
.method-item:hover {
  border-color: #fca5a5;
}
.method-item.active {
  border-color: var(--red);
  background: var(--red-light);
}
.method-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  background: var(--gray-bg);
}
.method-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--black);
}
.method-desc {
  font-size: 12px;
  color: var(--gray-text);
  margin-top: 3px;
}
.method-hot {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--black);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

/* ============================================
   STICKY BOTTOM
   ============================================ */
.sticky-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--gray-border);
  z-index: 30;
}
.sticky-bottom .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sticky-total-label {
  font-size: 12px;
  color: var(--gray-text);
}
.sticky-total-amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  background: var(--red);
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 13px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}
.btn-primary:hover:not(:disabled) {
  background: var(--red-hover);
}
.btn-primary:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}
.btn-secondary {
  background: #fff;
  color: var(--gray-text);
  border: 1px solid var(--gray-border);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.15s;
}
.btn-secondary:hover {
  background: var(--gray-bg);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.15s ease;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: #fff;
  border-radius: 12px;
  max-width: 460px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  animation: slideUp 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--gray-bg);
  border-top: 1px solid var(--gray-border);
  margin-top: 40px;
}
.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-border);
}
@media (min-width: 768px) {
  .footer-top { grid-template-columns: 2fr 1fr; }
}
.footer-company {
  font-size: 11px;
  color: var(--gray-text);
  line-height: 1.7;
}
.footer-company b {
  color: #4a4a4a;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 12px;
}
.footer-links a {
  color: var(--gray-text);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--red);
}
.footer-bottom {
  padding-top: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--gray-text);
}

/* ============================================
   UTILITIES
   ============================================ */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 16px; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 6px;
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
/* ============================================
   STEP BLOCKS (mới)
   ============================================ */
.step-block {
  margin-bottom: 28px;
}
.step-card {
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  padding: 20px;
}
.step-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  display: block;
  margin-bottom: 10px;
}
.step-note {
  font-size: 12px;
  color: var(--gray-text);
  margin-top: 10px;
}
.step-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 8px;
}
.tab-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.denom-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--gray-text);
  padding: 24px;
  font-size: 14px;
}

/* ============================================
   METHOD ICON COLORS (mới)
   ============================================ */
.method-icon.bank {
  background: #dbeafe;
  color: #2563eb;
}
.method-icon.card {
  background: #ffedd5;
  color: #ea580c;
}
.method-info {
  flex: 1;
  min-width: 0;
}

/* ============================================
   ALERT BOX (mới)
   ============================================ */
.alert-box {
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}
.alert-warning {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
}

/* ============================================
   MODAL HEADER / BODY (mới)
   ============================================ */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--gray-border);
}
.modal-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
}
.modal-header .close-popup {
  background: none;
  border: none;
  font-size: 26px;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}
.modal-header .close-popup:hover {
  color: var(--black);
}
.modal-body {
  padding: 20px;
}
.form-group {
  margin-bottom: 14px;
}

/* ============================================
   INFO ROWS (mới - dùng cho popup Bank/Success)
   ============================================ */
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  gap: 12px;
}
.info-row span {
  color: var(--gray-text);
  flex-shrink: 0;
}
.info-row b {
  color: var(--black);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}
/* ============================================
   REVIEWS / TESTIMONIALS
   ============================================ */
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .review-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .review-grid { grid-template-columns: repeat(3, 1fr); }
}
.review-card {
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.review-stars {
  font-size: 15px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.review-content {
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.6;
  margin-bottom: 14px;
  font-style: italic;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}
.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.review-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
}
.review-location {
  font-size: 11px;
  color: var(--gray-text);
  margin-top: 1px;
}
/* ============================================
   MOBILE MENU (hamburger)
   ============================================ */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  padding: 0;
  border-radius: 8px;
  transition: background 0.15s;
}
.mobile-menu-btn:hover {
  background: var(--gray-bg);
}
.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

/* Mobile dropdown menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--gray-border);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  z-index: 39;
  animation: slideDown 0.2s ease;
}
.mobile-menu.open {
  display: block;
}
.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--black);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.15s;
}
.mobile-menu a:last-child {
  border-bottom: none;
}
.mobile-menu a:hover,
.mobile-menu a.active {
  background: var(--gray-bg);
  color: var(--red);
}
.mobile-menu a .icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Overlay khi mở menu */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 38;
  top: 64px;
}
.mobile-menu-overlay.open {
  display: block;
}

@media (min-width: 768px) {
  .mobile-menu,
  .mobile-menu-overlay {
    display: none !important;
  }
}
/* ============================================
   FIX iOS AUTO-ZOOM
   ============================================ */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  touch-action: manipulation;
}

/* iOS zoom khi input font < 16px → set tất cả >= 16px */
input,
select,
textarea,
button {
  font-size: 16px !important;
  touch-action: manipulation;
}

/* Giữ kích cỡ chữ hiển thị hợp lý cho các thành phần nhỏ */
.denom-points,
.denom-amount,
.step-note,
.step-error,
.method-desc,
.review-location,
.footer-company,
.footer-links,
.info-row,
.info-row span,
.info-row b {
  font-size: inherit;
}

/* Override lại một số chỗ cần nhỏ */
.step-note { font-size: 12px !important; }
.step-error { font-size: 12px !important; }
.method-desc { font-size: 13px !important; }
.info-row { font-size: 14px !important; }
.review-location { font-size: 12px !important; }
.footer-company { font-size: 12px !important; }
.footer-links { font-size: 13px !important; }

/* Nhưng input/select/button phải luôn >= 16px */
.form-input,
.tab-btn,
.btn-primary,
.btn-secondary,
.mobile-menu-btn {
  font-size: 16px !important;
}

/* Nút bấm không bị double-tap zoom */
a, button, .game-item, .denom-item, .method-item {
  touch-action: manipulation;
}
/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 2px solid var(--gray-border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.contact-info {
  flex: 1;
  min-width: 0;
}
.contact-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
}
.contact-value {
  font-size: 13px;
  color: var(--gray-text);
  margin-top: 2px;
  word-break: break-word;
}
.contact-arrow {
  font-size: 20px;
  color: var(--gray-text);
  transition: transform 0.15s;
}
.contact-card:hover .contact-arrow {
  transform: translateX(4px);
  color: var(--red);
}
/* ============================================
   ADMIN DARK MODE
   ============================================ */
html.dark-mode body {
  background: #1a1a1a !important;
  color: #e5e7eb;
}

/* Backgrounds */
html.dark-mode .bg-white { background: #262626 !important; }
html.dark-mode .bg-gray-50 { background: #2d2d2d !important; }
html.dark-mode .bg-gray-100 { background: #1a1a1a !important; }
html.dark-mode .bg-gray-200 { background: #3a3a3a !important; }
html.dark-mode .bg-gray-300 { background: #4a4a4a !important; }

/* Borders */
html.dark-mode .border-gray-100 { border-color: #333 !important; }
html.dark-mode .border-gray-200 { border-color: #3a3a3a !important; }
html.dark-mode .border-gray-300 { border-color: #4a4a4a !important; }
html.dark-mode .divide-gray-100 > * + * { border-color: #333 !important; }

/* Text */
html.dark-mode .text-gray-800 { color: #f3f4f6 !important; }
html.dark-mode .text-gray-700 { color: #d1d5db !important; }
html.dark-mode .text-gray-600 { color: #9ca3af !important; }
html.dark-mode .text-gray-500 { color: #6b7280 !important; }
html.dark-mode .text-gray-400 { color: #6b7280 !important; }
html.dark-mode .text-black { color: #fff !important; }

/* Input, select, textarea */
html.dark-mode input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html.dark-mode select,
html.dark-mode textarea {
  background: #2d2d2d !important;
  color: #e5e7eb !important;
  border-color: #4a4a4a !important;
}
html.dark-mode input::placeholder,
html.dark-mode textarea::placeholder { color: #6b7280 !important; }

/* Table */
html.dark-mode table { color: #d1d5db; }
html.dark-mode thead.bg-gray-50 { background: #2d2d2d !important; }
html.dark-mode .hover\:bg-gray-50:hover { background: #333 !important; }

/* Sidebar link active + hover */
html.dark-mode .sidebar-link.active {
  background: #3a1f1f !important;
  color: #f87171 !important;
  border-right-color: #ef4444 !important;
}
html.dark-mode .sidebar-link { color: #9ca3af !important; }
html.dark-mode .sidebar-link:hover { background: #2d2d2d !important; }

/* Cards */
html.dark-mode .bg-white.rounded-xl,
html.dark-mode .bg-white.rounded-2xl,
html.dark-mode .bg-white.rounded-lg {
  background: #262626 !important;
}

/* Badges - giữ màu nhưng tối hơn */
html.dark-mode .bg-green-100 { background: #14532d !important; }
html.dark-mode .text-green-800 { color: #86efac !important; }
html.dark-mode .bg-yellow-100 { background: #78350f !important; }
html.dark-mode .text-yellow-800 { color: #fde047 !important; }
html.dark-mode .bg-red-50 { background: #450a0a !important; }
html.dark-mode .bg-red-100 { background: #7f1d1d !important; }
html.dark-mode .text-red-800 { color: #fca5a5 !important; }
html.dark-mode .text-red-700 { color: #fca5a5 !important; }
html.dark-mode .bg-blue-100 { background: #1e3a8a !important; }
html.dark-mode .text-blue-800 { color: #93c5fd !important; }
html.dark-mode .text-blue-600 { color: #60a5fa !important; }
html.dark-mode .bg-orange-50 { background: #431407 !important; }
html.dark-mode .bg-orange-100 { background: #7c2d12 !important; }
html.dark-mode .text-orange-600 { color: #fb923c !important; }
html.dark-mode .bg-amber-50 { background: #451a03 !important; }
html.dark-mode .border-amber-200 { border-color: #78350f !important; }
html.dark-mode .border-amber-300 { border-color: #78350f !important; }
html.dark-mode .text-amber-800 { color: #fcd34d !important; }
html.dark-mode .text-amber-900 { color: #fde68a !important; }
html.dark-mode .text-amber-700 { color: #fcd34d !important; }

/* Modal overlay - tối hơn */
html.dark-mode .bg-black\/60 { background: rgba(0,0,0,.75) !important; }

/* Hover button phụ */
html.dark-mode .hover\:bg-gray-200:hover { background: #3a3a3a !important; }

/* Scrollbar tối */
html.dark-mode ::-webkit-scrollbar { width: 10px; height: 10px; }
html.dark-mode ::-webkit-scrollbar-track { background: #1a1a1a; }
html.dark-mode ::-webkit-scrollbar-thumb { background: #4a4a4a; border-radius: 5px; }
html.dark-mode ::-webkit-scrollbar-thumb:hover { background: #5a5a5a; }
/* ============================================
   GIFT TIERS / NHẬN ACC
   ============================================ */
.gift-tiers-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .gift-tiers-preview { grid-template-columns: repeat(3, 1fr); }
}
.gift-tier-card {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}
.gift-tier-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(135deg, #f59e0b, #e61e26);
}
.gift-tier-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  border-color: #f59e0b;
}
.gift-tier-name {
  font-size: 17px;
  font-weight: 700;
  color: #e61e26;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.gift-tier-amount {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}
.gift-tier-desc {
  font-size: 13px;
  color: #6b6b6b;
  line-height: 1.5;
}

/* Nút Zalo */
.btn-zalo-gift {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0068ff, #00a8ff);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,104,255,.25);
  transition: all 0.15s;
}
.btn-zalo-gift:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,104,255,.35);
}
.btn-zalo-gift .zalo-icon {
  width: 26px;
  height: 26px;
  background: #fff;
  color: #0068ff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
/* Banner full-width cho loại Ảnh */
.gift-banner-full {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 20px;
}
.gift-banner-full img {
  width: 100%;
  display: block;
  border-radius: 12px;
}
.gift-banner-full a {
  display: block;
  text-decoration: none;
}

/* Banner HTML */
.gift-banner-html {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 20px;
}
/* ============================================
   LOOKUP TABS
   ============================================ */
.lookup-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0;
}
.lookup-tab {
  background: none;
  border: none;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #6b6b6b;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.lookup-tab:hover { color: #1a1a1a; }
.lookup-tab.active {
  color: #e61e26;
  border-bottom-color: #e61e26;
  font-weight: 600;
}

/* ============================================
   TIER ITEMS (kết quả tra cứu SĐT)
   ============================================ */
.tier-item {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.tier-item.tier-done {
  border-color: #86efac;
  background: #f0fdf4;
}
.tier-item.tier-ready {
  border-color: #fbbf24;
  background: #fffbeb;
}
.tier-item.tier-locked {
  border-color: #e0e0e0;
  background: #fafafa;
  opacity: 0.85;
}
.tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 10px;
}
.tier-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}
.tier-amount {
  font-size: 13px;
  color: #6b6b6b;
}
.tier-desc {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
}
.tier-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.tier-badge-success {
  background: #dcfce7;
  color: #166534;
}
.tier-badge-ready {
  background: #fef3c7;
  color: #92400e;
}
.tier-badge-locked {
  background: #f3f4f6;
  color: #6b7280;
}
/* ============================================
   BANNER IMAGE — Giữ tỉ lệ gốc, không crop
   ============================================ */
.site-banner-img {
  width: 100%;
  display: block;
  height: auto;
}
/* ============================================
   ĐƠN NẠP GẦN ĐÂY — 2 CỘT DỌC
   ============================================ */
.recent-orders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.recent-orders-col {
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  overflow: hidden;
}

.recent-order-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}
.recent-order-item:last-child { border-bottom: none; }
.recent-order-item:hover { background: #fafafa; }

.recent-order-row1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.recent-order-code {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.3px;
}
.recent-order-time {
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
}

.recent-order-row2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.recent-order-game {
  color: #4b5563;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-order-method {
  color: #6b7280;
  white-space: nowrap;
  text-align: right;
}
.recent-order-amount {
  font-weight: 700;
  color: #1a1a1a;
  text-align: right;
  white-space: nowrap;
}

/* Mobile: về 1 cột */
@media (max-width: 768px) {
  .recent-orders-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .recent-order-item { padding: 10px 12px; }
  .recent-order-code { font-size: 12px; }
  .recent-order-row2 { font-size: 11px; gap: 6px; }
}
/* ============================================
   BANNER VIEWPORT DISPLAY
   ============================================ */
/* Chỉ hiện trên PC (ẩn khi màn hình ≤ 768px) */
@media (max-width: 768px) {
  .banner-only-desktop {
    display: none !important;
  }
}

/* Chỉ hiện trên Mobile (ẩn khi màn hình > 768px) */
@media (min-width: 769px) {
  .banner-only-mobile {
    display: none !important;
  }
}

/* ============================================
   GAMES GRID CHO MOBILE — 3 cột, tự xuống hàng
   ============================================ */
@media (max-width: 768px) {
  .games-scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 8px;
    overflow-x: visible;
    padding-bottom: 0;
  }
  .game-item {
    width: auto;
    flex-shrink: unset;
  }
  .game-icon {
    width: 72px;
    height: 72px;
    font-size: 18px;
    border-radius: 12px;
  }
  .game-name {
    font-size: 12px;
    min-height: 28px;
    margin-top: 8px;
    line-height: 1.25;
  }
}

/* ============================================
   MOBILE TINH CHỈNH — game nhỏ hơn + banner cao hơn
   ============================================ */
@media (max-width: 768px) {
  /* Game item nhỏ hơn */
  .game-icon {
    width: 60px;
    height: 60px;
    font-size: 16px;
    border-radius: 10px;
  }
  .game-name {
    font-size: 11px;
    min-height: 22px;
    margin-top: 6px;
    line-height: 1.2;
  }
}