/* Full site CSS with fix for .disabled-parent and spin wheel styles
   Paste/replace your existing styles.css with this file. */
/* Variables */
:root{
  --mu-bg: #060507;
  --mu-hero-overlay: rgba(0,0,0,0.55);
  --mu-panel-bg: rgba(12,12,14,0.88);
  --mu-accent-gold: #d6b37a;
  --mu-accent-gold-2: #b8905a;
  --mu-metal-light: #f2efec;
  --mu-metal-mid: #bfbdbb;
  --mu-muted: #d0c7bd;
  --panel-border: rgba(214,179,122,0.18);
  --glass: rgba(255,255,255,0.03);

  --max-width: 1100px;
  --radius-lg: 12px;
  --radius-md: 8px;
}
/* SVG Title */
.title-svg {
  width: 100%;
  max-width: 250px;   /* giảm còn 250px */
  height: 50px;       /* thấp hơn */
}
.title-svg text {
  font-family: 'Cinzel Decorative', serif;
  font-size: 28px;    /* nhỏ hơn 48px */
  font-weight: 700;
  fill: url(#gradTitle);
  stroke: #000;
  stroke-width: 1.5px;
  paint-order: stroke fill;
}

/* Crown icons */
.crown-icon {
  width: 18px;   /* nhỏ hơn 28px */
  height: 18px;
  vertical-align: middle;
  margin-right: 4px;
}


.news-list-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 cột ngang */
  gap: 14px; /* khoảng cách giữa các mục */
}
.tx-table th, .tx-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tx-table tbody tr:nth-child(1) td { color:#FFD700; font-weight:bold; } /* Top 1 vàng */
.tx-table tbody tr:nth-child(2) td { color:#C0C0C0; font-weight:bold; } /* Top 2 bạc */
.tx-table tbody tr:nth-child(3) td { color:#CD7F32; font-weight:bold; } /* Top 3 đồng */

.countdown-panel {
  border: 2px solid #b8905a;   /* khung màu vàng nâu */
  border-radius: 10px;         /* bo góc */
  padding: 10px 14px;          /* khoảng cách trong */
  background: rgba(0, 0, 0, 0.35); /* nền mờ tối để chữ nổi bật */
  margin: 6px;                 /* khoảng cách giữa các ô */
  text-align: center;
  min-width: 140px;            /* giữ khung đều nhau */
}
.countdown-label {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 6px;
  color: #ffe08a; /* chữ nhấn màu vàng */
}
.countdown-value {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

@media (max-width: 1200px) {
  .news-list-grid {
    grid-template-columns: repeat(3, 1fr); /* màn hình vừa thì 3 cột */
  }
}

@media (max-width: 768px) {
  .news-list-grid {
    grid-template-columns: repeat(2, 1fr); /* mobile thì 2 cột */
  }
}

@media (max-width: 480px) {
  .news-list-grid {
    grid-template-columns: 1fr; /* nhỏ nữa thì 1 cột */
  }
}

.news-card {
  background: rgba(255,255,255,0.05);
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  background: var(--mu-bg);
  color: var(--mu-metal-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
}

/* Container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 18px; }

/* Header / Brand / Nav (unchanged) */
.site-header {
  position: relative;
  padding: 14px 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.6));
  border-bottom: 1px solid rgba(255,255,255,0.02);
  z-index: 40;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}

/* Brand */
.brand { display: flex; flex-direction: column; gap: 6px; }
.logo-badge {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: var(--mu-muted);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.18));
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.03);
  display: inline-block;
  letter-spacing: 1px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #d8d8d8 25%, #a6a6a6 50%, #6b6b6b 75%, #2c2c2c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0.9px rgba(0,0,0,0.6);
  letter-spacing: 4px;
  line-height: 1;
  margin: 0;
  text-transform: none;
}

/* Nav panel */
.nav { position: relative; z-index: 45; }
.nav-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: calc(var(--radius-lg) - 2px);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(0,0,0,0.12));
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  position: relative;
}
.nav-panel::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: calc(var(--radius-lg) + 6px);
  pointer-events: none;
  background: linear-gradient(90deg, rgba(214,179,122,0.06), rgba(255,255,255,0.00));
  filter: blur(10px);
  z-index: -1;
  opacity: 0.95;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--mu-metal-light);
  font-size: 20px;
  cursor: pointer;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-list li a {
  color: var(--mu-muted);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.12s ease;
  display: inline-block;
  font-family: 'Poppins', sans-serif;
}
.nav-list li a:hover,
.nav-list li a.active {
  color: var(--mu-metal-light);
  background: linear-gradient(180deg, rgba(214,179,122,0.06), rgba(214,179,122,0.02));
  box-shadow: 0 6px 18px rgba(214,179,122,0.08);
}

/* Hero - căn giữa panel trái/phải */
.hero {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 20px;
  min-height: 420px;
  background-image: url('/assets/images/bg-hero.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.32), var(--mu-hero-overlay));
  pointer-events: none;
  z-index: 1;
}
.hero-left, .hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-left { z-index: 2; max-width: 640px; }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  margin: 0;
  color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #cfcfcf 40%, #9f9f9f 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0.9px rgba(0,0,0,0.6);
  letter-spacing: 4px;
  line-height: 0.95;
  text-shadow: 0 12px 30px rgba(0,0,0,0.8);
}
.hero-sub { color: var(--mu-muted); margin: 12px 0 18px; font-size: 15px; }
.hero-cta { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }

/* Thông tin nhanh - nằm dưới phần tải game */
.quick-info-panel {
  min-width: 340px;
  max-width: 520px;
  margin-top: 18px;
  opacity: 0.98;
  position: static;
}
@media (max-width: 900px) {
  .quick-info-panel {
    min-width: 0;
    max-width: 100%;
    margin-top: 18px;
  }
}

/* Panels - làm nền đặc hơn, tăng contrast chữ */
.mu-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(22,22,24,0.92), rgba(12,12,14,0.88));
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  border: 1px solid var(--panel-border);
  overflow: visible;
  -webkit-backdrop-filter: blur(4px) saturate(120%);
  backdrop-filter: blur(4px) saturate(120%);
}
.mu-panel::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius-lg) + 2px);
  padding: 6px;
  background: linear-gradient(180deg, rgba(214,179,122,0.06), rgba(155,122,82,0.02));
  box-shadow: 0 0 0 2px rgba(0,0,0,0.5) inset;
  mix-blend-mode: normal;
}
.mu-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--mu-metal-light);
  margin: 0 0 8px 0;
  letter-spacing: 1.2px;
  text-transform: none;
}
.mu-content { color: var(--mu-muted); font-size: 14px; line-height:1.6; }

/* --- FIX: disabled-parent should NOT block all pointer events --- */
/* Old code used `pointer-events: none` on the parent which prevents any child (including wheel) from receiving events.
   Now we only disable interactive controls inside the disabled panel and keep panel clickable for non-disabled children. */

.disabled-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  border-radius: 12px;
  z-index: 3; /* lower than wheel z-index which we'll keep at 6/7 */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  pointer-events: auto; /* overlay blocks events for the panel only */
}

/* Updated rule: don't set pointer-events: none on parent */
.disabled-parent {
  position: relative;
  opacity: 0.60;
  filter: grayscale(0.18);
}

/* But disable only interactive controls inside that panel */
.disabled-parent input,
.disabled-parent select,
.disabled-parent textarea,
.disabled-parent button {
  pointer-events: none;
  opacity: 0.6;
}

/* If overlay exists as a direct child, keep it interactive */
.disabled-parent > .disabled-overlay {
  pointer-events: auto;
}

/* Quick Topup - nổi bật hơn, viền & glow mạnh, chữ sáng */
.topup-highlight {
  background: linear-gradient(180deg, #2c1c07 0%, #b8905a 100%);
  border: 1.5px solid #bfa968;
  box-shadow: 0 16px 48px rgba(156,113,63,0.34), 0 0 40px rgba(214,179,122,0.08) inset;
  transition: transform .14s ease, box-shadow .14s ease;
  position: relative;
  overflow: visible;
  z-index: 5;
  color: #fff;
}
.topup-highlight::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: calc(var(--radius-lg) + 4px);
  background: linear-gradient(90deg, rgba(214,179,122,0.12), rgba(255,255,255,0.02));
  filter: blur(14px);
  z-index: -1;
  opacity: 0.98;
}
.topup-highlight.attention { animation: topup-pulse 3.2s ease-in-out infinite; }

/* Rest of UI (inputs, buttons, slider, news cards etc.) unchanged - copy from your base styles */
.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--mu-metal-light);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}
.input-small { width: 140px; }

.btn-topup {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 15px;
  background: linear-gradient(180deg, var(--mu-accent-gold) 0%, var(--mu-accent-gold-2) 100%);
  color: #111;
  border: 1px solid rgba(0,0,0,0.25);
  box-shadow: 0 12px 36px rgba(156,113,63,0.36);
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: 'Poppins', sans-serif;
}
.btn-primary {
  background: linear-gradient(180deg, var(--mu-accent-gold) 0%, var(--mu-accent-gold-2) 100%);
  color: #111;
  box-shadow: 0 12px 36px rgba(156,113,63,0.28);
  border: 1px solid rgba(0,0,0,0.25);
}
.btn-outline {
  background: transparent;
  color: var(--mu-metal-light);
  border: 1px solid rgba(255,255,255,0.05);
}

/* withdraw select styling (unchanged) */
.withdraw-form select {
  background: linear-gradient(180deg, #2c1c07 0%, #b8905a 100%);
  color: #fff;
  border-radius: 8px;
  border: 1.5px solid #bfa968;
  padding: 10px 12px;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(156,113,63,0.11);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' viewBox='0 0 20 20' width='20' height='20' xmlns='http://www.w3.org/2000/svg'><polygon points='0,0 20,0 10,12'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}
.withdraw-form select:invalid,
.withdraw-form select option[value=""] {
  color: #d0c7bd;
}
.withdraw-form select option {
  background: #e7c99b !important;
  color: #222 !important;
}

/* Slider, downloads, QR, tables etc. unchanged but text color made clearer */
.slider-row { display: flex; gap: 12px; margin-top: 8px; }
.slide-item { flex: 1; overflow: hidden; border-radius: 8px; border: 1px solid rgba(255,255,255,0.03); }
.slide-item img { width: 100%; height: 180px; object-fit: cover; display: block; }

.downloads-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.download-card { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.08)); padding: 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.03); box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
.download-card h3 { margin: 0 0 8px 0; font-family: 'Playfair Display', serif; font-size: 18px; color: var(--mu-metal-light); }
.download-card p { margin: 0 0 12px 0; color: var(--mu-muted); font-size: 13px; }

.qr-box {
  display: inline-block;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.15));
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 16px 40px rgba(0,0,0,0.65);
  text-align: center;
}

/* Tables admin */
table.payments { width: 100%; border-collapse: collapse; margin-top: 10px; font-family: 'Poppins', sans-serif; }
table.payments th, table.payments td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--mu-muted); vertical-align: middle; }
table.payments thead th { font-family: 'Playfair Display', serif; color: var(--mu-metal-light); text-align: left; }

/* Login */
.login-box {
  max-width: 420px;
  margin: 80px auto;
  background: linear-gradient(180deg, rgba(15,15,16,0.95), rgba(6,6,7,0.98));
  padding: 28px;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.9);
  border: 1px solid rgba(255,255,255,0.03);
}

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,0.02); padding: 18px 0; color: var(--mu-muted); text-align: center; }

/* Utility */
.text-muted { color: var(--mu-muted); }
.small { font-size: 13px; color: var(--mu-muted); }
.center { text-align: center; }

/* Responsive */
@media (max-width: 900px) {
  .hero { flex-direction: column; align-items: stretch; min-height: unset; padding: 28px 14px; }
  .hero-left, .hero-right { align-items: stretch; }
  .nav-toggle { display: inline-block; }
  .nav-list {
    position: absolute;
    right: 14px;
    top: 64px;
    background: rgba(8,8,8,0.95);
    padding: 12px;
    border-radius: 8px;
    flex-direction: column;
    display: none;
    min-width: 160px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.6);
  }
  .nav-list.open { display: flex; }
  .nav-list li { margin: 6px 0; }
  .nav-panel::after { display: none; }
  .hero-title { font-size: 40px; }
  .logo { font-size: 34px; }
}
.news-card {
  background: linear-gradient(180deg, rgba(30,30,28,0.97), rgba(15,14,14,0.93));
  border: 1.5px solid rgba(214,179,122,0.16);
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
  border-radius: 12px;
  padding: 20px 22px 16px 22px;
  margin-bottom: 18px;
  transition: box-shadow 0.14s;
  position: relative;
}
.news-card:hover {
  box-shadow: 0 8px 38px rgba(214,179,122,0.11), 0 2px 24px rgba(0,0,0,0.28);
  border-color: var(--mu-accent-gold);
}
.news-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin: 0 0 6px 0;
  color: var(--mu-metal-light);
}
.news-card .small {
  color: var(--mu-muted);
  font-size: 13px;
}
.news-card .news-excerpt {
  margin: 10px 0 0 0;
  color: var(--mu-muted);
  font-size: 15px;
}

/* Khung cho bài chi tiết */
.news-article {
  background: linear-gradient(180deg, rgba(38,36,35,0.98), rgba(22,20,19,0.96));
  border: 2px solid rgba(214,179,122,0.22);
  box-shadow: 0 8px 48px rgba(214,179,122,0.10), 0 2px 28px rgba(0,0,0,0.32);
  border-radius: 16px;
  padding: 32px 30px 28px 30px;
  margin: 0 auto 24px auto;
  max-width: 700px;
  position: relative;
}

.news-article h1, .news-article h2, .news-article h3 {
  font-family: 'Playfair Display', serif;
  color: var(--mu-accent-gold);
  margin-top: 0;
}
.news-article .news-meta {
  color: var(--mu-muted);
  font-size: 14px;
  margin-bottom: 18px;
}
.news-article .mu-content {
  font-size: 16px;
  color: var(--mu-metal-light);
  line-height: 1.75;
}
.btn-withdraw {
  background: linear-gradient(90deg, #f8b500 30%, #e29100 90%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  padding: 8px 0;
  cursor: pointer;
  transition: background 0.13s;
}
.btn-withdraw:hover {
  background: linear-gradient(90deg, #e29100 10%, #f8b500 100%);
  color: #222;
}
.withdraw-highlight {
  border: 1.5px solid #e29100;
  box-shadow: 0 2px 16px #f8b50044;
}

/* Quick panels row */
.quick-panels-row {
  display: flex;
  gap: 18px;
  margin-bottom: 0;
}
.quick-panels-row > .mu-panel {
  flex: 1 1 0;
  min-width: 0;
}
@media (max-width: 900px) {
  .quick-panels-row {
    flex-direction: column;
    gap: 12px;
  }
}

/* === Spin wheel styles (append to your existing styles.css) === */
/* spin-styles.css - CSS cho vòng quay (10 ô) */

.spin-panel {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.08));
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 10px 34px rgba(0,0,0,0.6);
  width: 100%;
  box-sizing: border-box;
  pointer-events: auto; /* ensure wheel area receives events */
  z-index: 6; /* above disabled overlays (z-index:3) */
}

.wheel-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 7; /* ensure pointer sits above overlays */
}

.wheel {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 6px solid rgba(214,179,122,0.18);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6), inset 0 2px 6px rgba(255,255,255,0.02);
  transition: transform 5s cubic-bezier(.12,.83,.26,1);
  transform: rotate(0deg);
  position: relative;
  overflow: hidden;
  background: conic-gradient(
    #b8905a 0deg 36deg,
    rgba(255,255,255,0.05) 36deg 72deg,
    #d6b37a 72deg 108deg,
    rgba(255,255,255,0.05) 108deg 144deg,
    #b8905a 144deg 180deg,
    rgba(255,255,255,0.05) 180deg 216deg,
    #d6b37a 216deg 252deg,
    rgba(255,255,255,0.05) 252deg 288deg,
    #b8905a 288deg 324deg,
    rgba(255,255,255,0.05) 324deg 360deg
  );
}

.wheel .label {
  position: absolute;
  width: 50%;
  left: 50%;
  top: 50%;
  transform-origin: 0 0;
  text-align: left;
  padding-left: 8px;
  color: #111;
  font-weight: 700;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 13px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.2);
}

.wheel-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 18px solid #ffe08a;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
  z-index: 10;
}

.wheel-center {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(180deg,#ffe8b2,#d6b37a);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  font-weight: 800;
  color: #111;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  cursor: default;
}

.btn-spin {
  padding: 10px 18px;
  background: linear-gradient(180deg, #ffd36b 0%, #f0a83a 100%);
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.15);
  font-weight: 800;
  cursor: pointer;
  color: #111;
  box-shadow: 0 10px 30px rgba(240,160,60,0.18);
}
.btn-spin[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.spin-result {
  min-height: 22px;
  color: var(--mu-metal-light, #f2efec);
  font-weight: 700;
  text-align: center;
}

@media (max-width: 700px) {
  .wheel-wrap { width: 220px; height: 220px; }
  .wheel { width: 200px; height: 200px; }
  .wheel-center { width: 72px; height: 72px; font-size: 13px; }
}