:root {
  --purple-main: #7c3aed;
  --purple-soft: #a855f7;
  --pink-neon: #ec4899;
  --cyan-neon: #22d3ee;
  --bg-deep: #020617;
  --text-main: #e5e7eb;
  --text-soft: #c4b5fd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Kanit", system-ui, sans-serif;
  background:
    radial-gradient(circle at top, #1e002f 0%, #020014 40%, #020617 85%);
  color: var(--text-main);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 12px 40px;
}

.section {
  margin-bottom: 22px;
}

.center-text {
  text-align: center;
}

.section-title {
  text-align: center;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--text-soft);
  text-shadow:
    0 0 6px rgba(192,132,252,.9),
    0 0 14px rgba(236,72,153,.9);
}

/* ======================
   HERO + CTA
   ====================== */
.hero-card {
  border-radius: 22px;
  padding: 16px 14px 20px;
  background:
    radial-gradient(circle at top, rgba(76,29,149,.9), rgba(15,23,42,.96));
  box-shadow:
    0 0 30px rgba(129,140,248,.9),
    inset 0 0 14px rgba(15,23,42,.95);
  border: 1px solid rgba(192,132,252,.85);
}

.hero-avatar {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  border: 3px solid rgba(236,72,153,1);
  object-fit: contain;
  margin: -36px auto 8px;
  box-shadow:
    0 0 18px rgba(236,72,153,1),
    0 0 26px rgba(56,189,248,.9);
  background: #020617;
}

.hero-text {
  margin: 8px 0 14px;
  font-size: 15px;
  color: #e5e7eb;
  text-shadow: 0 0 6px rgba(15,23,42,1);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 50px;
  border-radius: 999px;
  background: radial-gradient(circle at top, var(--pink-neon), var(--purple-main));
  color: #ffffff;
  border: 1px solid rgba(244,114,182,.9);
  cursor: pointer;
  box-shadow:
    0 0 20px rgba(236,72,153,0.95),
    0 0 32px rgba(56,189,248,0.85);
  font-size: 22px;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(15,23,42,1);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.12);
  filter: brightness(1.08);
  box-shadow:
    0 0 26px rgba(236,72,153,1),
    0 0 38px rgba(56,189,248,0.95);
}

.btn-primary img {
  height: 30px;
  width: auto;
}

/* ======================
   STATS BLOCK
   ====================== */
.blk-stats {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  font-family: "Kanit", system-ui, sans-serif;
}

.blk-stats__box {
  flex: 1 1 120px;
  min-width: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #2b0b3f 0%, #050114 100%);
  padding: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: default;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid rgba(192, 132, 252, 0.6);
  box-shadow:
    0 0 18px rgba(124, 58, 237, 0.6),
    inset 0 0 10px rgba(15, 23, 42, 0.85);
}

.blk-stats__box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 0%, rgba(192, 38, 211, 0.65) 50%, transparent 100%);
  opacity: 0.4;
  pointer-events: none;
}

.blk-stats__box:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 28px rgba(168, 85, 247, 0.95),
    0 8px 24px rgba(15, 23, 42, 0.9),
    inset 0 0 14px rgba(236, 72, 153, 0.98);
}

.blk-stats__icon {
  margin-bottom: 6px;
  margin-top: -4px;
  position: relative;
  z-index: 1;
}

.blk-stats__icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter:
    drop-shadow(0 12px 16px rgba(15, 23, 42, 0.85))
    drop-shadow(0 4px 6px rgba(79, 70, 229, 0.75));
}

.blk-stats__value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #e9d5ff;
  position: relative;
  z-index: 1;
  text-shadow:
    0 0 6px rgba(129, 140, 248, 0.95),
    0 0 10px rgba(56, 189, 248, 0.7);
}

.blk-stats__value--prize {
  color: #f973f3;
  animation: blk-stats-prizeGlow 1.4s ease-in-out infinite;
}

.blk-stats__label {
  font-size: 0.95rem;
  color: #c4b5fd;
  margin-top: 4px;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 6px rgba(15, 23, 42, 0.9);
}

@keyframes blk-stats-prizeGlow {
  0%,100% {
    text-shadow:
      0 0 10px rgba(236, 72, 153, 1),
      0 0 20px rgba(168, 85, 247, 0.9),
      0 0 30px rgba(56, 189, 248, 0.8);
    opacity: 1;
  }
  50% {
    text-shadow:
      0 0 14px rgba(244, 114, 182, 1),
      0 0 26px rgba(129, 140, 248, 1),
      0 0 38px rgba(34, 211, 238, 0.95);
    opacity: 0.9;
  }
}

@media (max-width: 768px) {
  .blk-stats__value { font-size: 1.3rem; }
  .blk-stats__label { font-size: 0.9rem; }
}

/* ======================
   JACKPOT BLOCK
   ====================== */
.blk-jp {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 16px;
  padding: 18px 20px;
  background: radial-gradient(circle at top, rgba(76, 29, 149, 0.75), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(192, 132, 252, .8);
  text-align: center;
  font-family: "Kanit", system-ui, sans-serif;
  box-shadow:
    0 0 24px rgba(129, 140, 248, 0.9),
    inset 0 0 10px rgba(15, 23, 42, 0.95);
}

.blk-jp__title {
  font-size: 20px;
  color: #e9d5ff;
  margin-bottom: 10px;
  text-shadow:
    0 0 4px rgba(192,132,252,.8),
    0 0 10px rgba(236,72,153,.9);
}

.blk-jp__value {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  min-height: 50px;
  text-shadow:
    0 0 5px rgba(255,255,255,0.75),
    0 0 12px rgba(192,132,252,0.95),
    0 0 20px rgba(56,189,248,0.8);
  transition: transform 0.25s, filter 0.25s;
  transform: scale(1);
  filter: drop-shadow(0 0 4px rgba(236,72,153,0.85));
}

.blk-jp__time {
  font-size: 12px;
  color: #c4b5fd;
  margin-top: 6px;
  text-shadow: 0 0 4px rgba(15,23,42,0.9);
}

/* ======================
   WITHDRAW LIST BLOCK
   ====================== */
.blk-wdrp {
  max-width: 600px;
  margin: 0 auto;
  font-family: "Kanit", system-ui, sans-serif;
  color: #f9f5ff;
}

.blk-wdrp__header {
  text-align: center;
  margin-bottom: 8px;
}

.blk-wdrp__title {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 12px;
  color: #f5d0ff;
  font-weight: 800;
  text-shadow:
    0 2px 0 #000,
    0 0 14px rgba(236,72,153,.9);
  font-size: 18px;
  background: rgba(15,23,42,.8);
  border: 1px solid rgba(192,132,252,.85);
}

.blk-wdrp__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blk-wdrp-card {
  background: radial-gradient(circle at left, rgba(56,189,248,.25), rgba(15,23,42,.96));
  border-radius: 16px;
  padding: 10px 12px;
  border: 2px solid rgba(192,132,252,.9);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow:
    0 0 20px rgba(76,29,149,.9),
    inset 0 0 10px rgba(15,23,42,1);
}

.blk-wdrp__bank-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex: 0 0 52px;
  background: rgba(15,23,42,.85);
  display: grid;
  place-items: center;
  border: 2px solid rgba(129,140,248,.95);
  overflow: hidden;
  box-shadow: 0 0 12px rgba(56,189,248,0.9);
}

.blk-wdrp__bank-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.blk-wdrp__body {
  flex: 1;
  min-width: 0;
}

.blk-wdrp__user a {
  color: #f9a8ff;
  text-decoration: none;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(15,23,42,1);
}

.blk-wdrp__amount {
  margin-top: 2px;
}

.blk-wdrp__amount .val {
  color: #a5b4fc;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(15,23,42,1);
}

.blk-wdrp__time {
  color: #c4b5fd;
  font-size: .92rem;
  margin-top: 2px;
}

.blk-wdrp__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  white-space: nowrap;
}

.blk-wdrp__status--done {
  color: #c7d2fe;
  text-shadow: 0 0 6px rgba(59,130,246,0.95);
}

.blk-wdrp__status--pending {
  color: #f9a8ff;
  text-shadow: 0 0 6px rgba(236,72,153,0.95);
}

.blk-wdrp__footer {
  margin-top: 8px;
  text-align: center;
  color: #a78bfa;
  font-size: .9rem;
  text-shadow: 0 0 4px rgba(15,23,42,1);
}

.blk-wdrp__spin {
  animation: blk-wdrp-spin 1s linear infinite;
}

@keyframes blk-wdrp-spin {
  to { transform: rotate(360deg); }
}

/* ======================
   PROVIDER SLIDER
   ====================== */
.provider-container {
  max-width: 800px;
  width: 100%;
  margin: 10px auto 0;
  padding: 20px 10px;
  border-radius: 15px;
  border: 1px solid rgba(192,132,252,.9);
  background:
    radial-gradient(circle, rgba(76,29,149,0.55), rgba(15,23,42,0.95));
  box-shadow:
    0 0 22px rgba(129,140,248,0.9),
    inset 0 0 10px rgba(15,23,42,1);
  overflow: hidden;
  position: relative;
}

.provider-list {
  display: inline-flex;
  gap: 12px;
  white-space: nowrap;
  animation: provider-slide 20s linear infinite;
}

.provider-container:hover .provider-list {
  animation-play-state: paused;
}

.provider-item {
  position: relative;
  display: inline-block;
  padding: 5px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(30,64,175,.96), rgba(15,23,42,.98));
  box-shadow:
    0 0 18px rgba(59,130,246,0.85),
    inset 0 0 10px rgba(15,23,42,1);
  transition: transform .3s, box-shadow .3s, filter .3s;
}

.provider-item:hover {
  transform: scale(1.05);
  filter: brightness(1.08);
  box-shadow:
    0 0 26px rgba(56,189,248,1),
    0 0 34px rgba(236,72,153,0.95);
}

.provider-image {
  width: 150px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.hot-icon {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(244,114,182,1);
  background: radial-gradient(circle, rgba(251,113,133,.95), rgba(30,64,175,1));
  box-shadow:
    0 0 16px rgba(248,113,113,1),
    0 0 22px rgba(251,113,133,0.9);
}

@keyframes provider-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .provider-image {
    width: 120px;
    height: 50px;
  }
  .hot-icon {
    width: 25px;
    height: 25px;
    top: -8px;
    right: -8px;
  }
}

/* ======================
   GAME GRID BLOCK
   ====================== */
#nfx-games {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 12px;
}

#nfx-games .frame {
  width: min(90vw, 520px);
  margin-inline: auto;
  border: 2px solid rgba(192,132,252,.8);
  border-radius: 45px;
  padding: 20px;
  background: radial-gradient(circle at center, #1f1033 40%, #020617 100%);
  box-shadow:
    0 0 12px rgba(129,140,248,.75),
    inset 0 0 10px rgba(15,23,42,.95);
  overflow: hidden;
}

#nfx-games .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

#nfx-games .card {
  text-align: center;
}

#nfx-games .thumb {
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 14px rgba(56,189,248,.7),
    0 0 18px rgba(236,72,153,.6);
}

#nfx-games .thumb img {
  width: 100%;
  border-radius: 16px;
  display: block;
  opacity: 1;
  transition: opacity .6s ease;
}

#nfx-games .label-top {
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
  text-shadow: 0 1px 4px rgba(0,0,0,1);
  margin: 6px 0 3px;
}

#nfx-games .progress-container {
  width: 88%;
  height: 13px;
  margin: 4px auto;
  position: relative;
  background: #020617;
  border-radius: 999px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,.06),
    inset 0 4px 6px rgba(15,23,42,1);
}

#nfx-games .progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,#f97316,#fb7185 30%,#a855f7 65%,#22d3ee 100%);
  transition: width .5s ease;
}

#nfx-games .progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-1px);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .2px;
  color: #fff;
  -webkit-text-stroke: 1.2px #000;
  paint-order: stroke fill;
  pointer-events: none;
}

#nfx-games .countdown {
  font-size: 11px;
  font-weight: 600;
  color: #e5e7eb;
  margin-top: 3px;
  text-shadow: 0 1px 4px rgba(0,0,0,1);
}

#nfx-games .countdown.pulse {
  animation: cdPulse .42s ease-out;
}

@keyframes cdPulse {
  0%   { transform: scale(1); }
  35%  {
    transform: scale(1.12);
    text-shadow: 0 1px 5px rgba(244,114,182,.9);
  }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  #nfx-games .frame {
    padding: 16px;
  }
  #nfx-games .grid {
    gap: 12px;
  }
}
