/* ==========================================================================
   WowLaos - Page specific styles
   ========================================================================== */

/* ---------- Page header (back button + title) - ใช้ซ้ำได้ทุกหน้าย่อย ---------- */
.vl-page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.vl-page-header__title { font-size: 1.3rem; margin: 0; }
.vl-back-btn {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--vl-glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--vl-white);
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--vl-transition-fast), background var(--vl-transition-fast);
}
.vl-back-btn:hover { border-color: var(--vl-gold); background: rgba(212, 175, 55, 0.08); }
.vl-back-btn svg { width: 18px; height: 18px; }

/* ---------- Deposit ---------- */
.vl-qr-box {
  text-align: center;
  padding: 20px;
  border-radius: var(--vl-radius-lg);
  background: #fff;
  margin-bottom: 16px;
}
.vl-qr-box img { margin: 0 auto; width: 200px; height: 200px; object-fit: contain; }

.vl-bank-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--vl-radius-md);
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
}
.vl-bank-info__label { font-size: 0.72rem; color: var(--vl-muted); }
.vl-bank-info__value { font-weight: 700; font-size: 0.95rem; }
.vl-copy-btn {
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(212, 175, 55, 0.15); color: var(--vl-gold);
  display: flex; align-items: center; justify-content: center;
}

.vl-upload-box {
  border: 2px dashed var(--vl-glass-border);
  border-radius: var(--vl-radius-lg);
  padding: 24px;
  text-align: center;
  color: var(--vl-muted);
  cursor: pointer;
  transition: border-color var(--vl-transition-fast), background var(--vl-transition-fast);
}
.vl-upload-box:hover { border-color: var(--vl-gold); background: rgba(212, 175, 55, 0.04); }
.vl-upload-box__icon { font-size: 1.8rem; margin-bottom: 8px; }

/* ช่องอัปโหลดสลิปฝากเงิน - รูปแบบปกติ (ไม่ใช่กล่อง dropzone ไอคอนใหญ่) แค่ input file ธรรมดา */
.vl-upload-box--plain {
  border: 1px solid var(--vl-glass-border);
  border-radius: var(--vl-radius-md);
  padding: 14px 16px;
  text-align: left;
  cursor: default;
}
.vl-upload-box--plain:hover { background: none; border-color: var(--vl-glass-border); }
.vl-upload-box--plain .vl-label { margin-bottom: 8px; }
.vl-upload-box--plain input[type="file"] {
  width: 100%;
  padding: 8px 0;
  cursor: pointer;
}
.vl-upload-preview {
  position: relative;
  border-radius: var(--vl-radius-lg);
  overflow: hidden;
  border: 1px solid var(--vl-glass-border);
}
.vl-upload-preview img { width: 100%; max-height: 320px; object-fit: contain; background: #000; }
.vl-upload-preview__actions {
  display: flex; gap: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
}

/* ---------- Withdraw ---------- */
.vl-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.vl-tab {
  flex: 1;
  text-align: center;
  padding: 11px;
  border-radius: var(--vl-radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: var(--vl-muted);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--vl-transition-fast);
}
.vl-tab.is-active {
  background: var(--vl-gradient-primary);
  color: var(--vl-white);
  border-color: rgba(212, 175, 55, 0.4);
}
.vl-tab-panel { display: none; }
.vl-tab-panel.is-active { display: block; animation: vl-fade-in var(--vl-transition-base); }

.vl-amount-input {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 4px 4px 16px;
  border-radius: var(--vl-radius-full);
  border: 1px solid var(--vl-glass-border);
  background: rgba(255, 255, 255, 0.05);
}
.vl-amount-input input {
  flex: 1; border: none; background: transparent; color: var(--vl-white); font-size: 1.1rem; font-weight: 700;
  padding: 10px 0;
}
.vl-amount-input input:focus { outline: none; }
.vl-amount-input__suffix { color: var(--vl-muted); font-size: 0.85rem; padding-right: 8px; }

/* ---------- Profile ---------- */
.vl-profile-header {
  display: flex; align-items: center; gap: 14px;
  padding: 20px;
  border-radius: var(--vl-radius-lg);
  background: var(--vl-gradient-primary);
  margin-bottom: 20px;
}
.vl-profile-header .vl-avatar { width: 60px; height: 60px; font-size: 1.4rem; }
.vl-profile-header__name { font-weight: 800; font-size: 1.1rem; }
.vl-profile-header__phone { font-size: 0.8rem; color: rgba(247, 243, 233, 0.75); }

.vl-info-list { border-radius: var(--vl-radius-lg); overflow: hidden; margin-bottom: 20px; }
.vl-info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--vl-glass-border);
}
.vl-info-row:last-child { border-bottom: none; }
.vl-info-row__label { color: var(--vl-muted); font-size: 0.85rem; }
.vl-info-row__value { font-weight: 700; }

.vl-menu-list { border-radius: var(--vl-radius-lg); overflow: hidden; }
.vl-menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--vl-glass-border);
  transition: background var(--vl-transition-fast);
}
.vl-menu-item:last-child { border-bottom: none; }
.vl-menu-item:hover { background: rgba(255, 255, 255, 0.05); }
.vl-menu-item__icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--vl-gold);
  display: flex; align-items: center; justify-content: center;
}
.vl-menu-item__label { flex: 1; font-weight: 600; }
.vl-menu-item__chevron { color: var(--vl-muted); }
.vl-menu-item.is-danger .vl-menu-item__icon { background: rgba(231, 76, 60, 0.15); color: var(--vl-danger); }
.vl-menu-item.is-danger .vl-menu-item__label { color: var(--vl-danger); }

/* ---------- Loading Page ---------- */
.vl-loading-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--vl-gradient-hero);
  padding: 24px;
  text-align: center;
}
.vl-loading-page__logo {
  height: 40px;
  width: auto;
  margin-bottom: 30px;
  animation: vl-logo-glow 2s ease infinite;
}
.vl-loading-page__providers {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.vl-loading-page__provider-logo {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--vl-gold); font-weight: 800;
}
.vl-loading-page__vs { color: var(--vl-muted); }
.vl-loading-page__game-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 24px; }
.vl-loading-page__spinner {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 4px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--vl-gold);
  animation: vl-spin 0.9s linear infinite;
  margin-bottom: 20px;
}
.vl-progress-track {
  width: 100%;
  max-width: 280px;
  height: 8px;
  border-radius: var(--vl-radius-full);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}
.vl-progress-fill {
  height: 100%;
  background: var(--vl-gradient-gold);
  border-radius: var(--vl-radius-full);
  transition: width 0.3s ease;
}
.vl-loading-page__status { margin-top: 12px; font-size: 0.85rem; color: var(--vl-muted); }

/* ---------- Offline / 404 ---------- */
.vl-status-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: var(--vl-gradient-hero);
}
.vl-status-page__emoji {
  font-size: 4rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
}
.vl-status-page__title { font-size: 1.4rem; color: var(--vl-gold); margin-bottom: 8px; }
.vl-status-page__desc { color: var(--vl-muted); max-width: 360px; margin-bottom: 24px; }
.vl-status-page__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.vl-status-page__contact-label {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vl-muted);
}
.vl-status-page__contact-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 380px;
}
.vl-status-contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--vl-radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  box-shadow: var(--vl-shadow-sm);
  transition: transform var(--vl-transition-fast);
}
.vl-status-contact-btn:hover { transform: translateY(-2px); }
.vl-status-contact-btn__icon { width: 18px; height: 18px; }
.vl-status-contact-btn__icon--emoji { display: flex; align-items: center; justify-content: center; font-size: 1rem; line-height: 1; }
.vl-status-contact-btn.facebook { background: #1877f2; }
.vl-status-contact-btn.line { background: #06c755; }
.vl-status-contact-btn.whatsapp { background: #25d366; }
.vl-status-contact-btn.telegram { background: #229ed9; }

/* ---------- Home layout responsive ---------- */
@media (max-width: 991.98px) {
  .vl-game-grid { gap: 10px; }
}

.vl-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vl-gold);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
  cursor: pointer;
}

/* Lazy image fade-in */
img.vl-lazy { opacity: 0; transition: opacity 0.4s ease; }
img.vl-lazy.is-loaded { opacity: 1; }
