/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --fire-yellow: #ffd000;
  --fire-orange: #ff7a00;
  --fire-red:    #ff2a00;
  --fire-dark:   #1a0000;
  --bg1:         #1a0000;
  --bg2:         #3b0000;
  --text-white:  #ffffff;
  --muted:       rgba(255,200,160,0.8);
  --glass:       rgba(40,0,0,0.65);
  --stroke:      rgba(255,120,0,0.25);
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
  font-family: var(--font);
  background: linear-gradient(180deg, #2d2e2e 0%, #000000 100%);
  min-height: 100vh;
  color: var(--text-white);
  overflow-x: hidden;
  padding-bottom: 80px; /* space for fixed marquee */
}

/* ===== BACKGROUND IMAGE ===== */
.bg-image {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.94;
  pointer-events: none;
}

/* ===== PAGE ROOT ===== */
.page-root {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 8px;
}

.page-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* ===== LOGO BLOCK ===== */
.logo-block {
  display: flex;
  justify-content: center;
  padding: 0 16px 65px;
}

.logo-block img {
  width: auto;
  max-width: 340px;
  max-height: 250px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ===== BRAND NAME + VERIFIED ===== */
.brand-title {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  font-size: clamp(28px, 7vw, 46px);
  margin: 0 0 4px;

  background: linear-gradient(180deg,
    #fff6b0 0%,
    #ffd000 25%,
    #ff7a00 55%,
    #ff2a00 80%,
    #b30000 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow:
    0 0 8px rgba(255,120,0,0.7),
    0 0 16px rgba(255,60,0,0.6),
    0 0 28px rgba(255,0,0,0.4);
}

.brand-name {
  line-height: 1;
}

.verified-icon {
  width: clamp(26px, 6vw, 40px);
  height: auto;
  flex-shrink: 0;
  filter:
    drop-shadow(0 0 6px rgba(255,80,0,0.7))
    drop-shadow(0 0 14px rgba(255,0,0,0.55));
}

/* ===== FADE DESCRIPTIONS ===== */
.title-fade {
  position: relative;
  width: 100%;
  text-align: center;
  font-weight: 800;
  font-size: clamp(15px, 4vw, 16px);
  line-height: 1.35;
  margin: 4px 0 14px;
  padding-inline: 14px;
  min-height: 2.5em;
}

.fade-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(90deg, #fff6b0, #ffc400, #ff7a00, #ff2a00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  opacity: 0;
  animation: fadeCycle 12s ease-in-out infinite;
}

.fade-layer:nth-child(1) { animation-delay: 0s; }
.fade-layer:nth-child(2) { animation-delay: 4s; }
.fade-layer:nth-child(3) { animation-delay: 8s; }

@keyframes fadeCycle {
  0%, 42%, 100% { opacity: 0; }
  10%, 32%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-layer { animation: none; }
  .fade-layer:first-child { opacity: 1; }
}

/* ===== REGISTER BAR ===== */
.register-bar {
  position: relative;
  z-index: 9999;
  padding: 12px 0;
}

.btn-register {
  position: relative;
  display: flex;
  align-items: center;
  width: 95%;
  max-width: 380px;
  height: 64px;
  margin: 0 auto;
  padding-left: 18px;

  background: linear-gradient(135deg, #3a0000, #120000);
  border-radius: 999px;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;

  box-shadow:
    0 0 12px rgba(255,80,0,.6),
    inset 0 0 25px rgba(255,120,0,.25);
  transition: all .2s ease;
}

.btn-register .btn-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter:
    drop-shadow(0 0 8px var(--fire-orange))
    drop-shadow(0 0 16px var(--fire-red));
}

.btn-register span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-white);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .8px;
  white-space: nowrap;
  text-shadow:
    0 0 6px #ffb300,
    0 0 14px #ff6a00,
    0 0 24px #ff0000;
}

.btn-register:active {
  transform: scale(0.96);
  opacity: .9;
}

/* ===== FIRE RUNNING BORDER (shared) ===== */
.led-fire::before,
.led-fire-top::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 3px;

  background: linear-gradient(90deg,
    transparent,
    var(--fire-yellow),
    var(--fire-orange),
    var(--fire-red),
    transparent
  );
  background-size: 200% 100%;
  animation: fire-run 1.2s linear infinite;

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  filter:
    drop-shadow(0 0 8px var(--fire-orange))
    drop-shadow(0 0 16px var(--fire-red));
  pointer-events: none;
}

@keyframes fire-run {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ===== FIXED TOP REGISTER BUTTON ===== */
.top-actions {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  z-index: 1000;
  pointer-events: none;
}

.top-actions::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(40,0,0,.92);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 2px solid var(--fire-orange);
  opacity: 0;
  transition: opacity .4s ease;
}

.top-actions.show-reg::before { opacity: 1; }

#topRegBtn {
  position: absolute;
  top: 10px; right: 15px;
  height: 44px;
  min-width: 140px;
  display: none;
  pointer-events: auto;
}

.top-actions.show-reg #topRegBtn { display: flex; }

.btn-top-reg {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;

  background: linear-gradient(135deg, #3a0000, #120000);
  border-radius: 999px;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;

  box-shadow:
    0 0 10px rgba(255,90,0,.7),
    inset 0 0 15px rgba(255,120,0,.35);
}

.top-reg-icon {
  width: 26px; height: 26px;
  filter:
    drop-shadow(0 0 6px var(--fire-orange))
    drop-shadow(0 0 12px var(--fire-red));
}

.btn-top-reg span {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-shadow:
    0 0 6px #ff9d00,
    0 0 14px #ff3c00;
}

/* ===== JACKPOT PANEL ===== */
.jackpot-panel {
  width: 100%;
  max-width: 520px;
  margin: 28px auto 10px;
  padding: 14px;
  border-radius: 20px;

  background:
    radial-gradient(circle at 50% -10%, rgba(255,120,0,.35), transparent 70%),
    linear-gradient(180deg, var(--bg2), var(--bg1));
  border: 1px solid rgba(255,120,0,.35);
  box-shadow:
    0 20px 45px rgba(0,0,0,.8),
    0 0 35px rgba(255,80,0,.25),
    inset 0 0 20px rgba(255,120,0,.12);

  position: relative;
  overflow: hidden;
}

/* heat grid */
.jackpot-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--stroke) 1px, transparent 1px),
    linear-gradient(90deg, var(--stroke) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .12;
  pointer-events: none;
}

.jp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.jp-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.jp-title .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--fire-orange);
  box-shadow:
    0 0 10px var(--fire-orange),
    0 0 18px var(--fire-red);
}

.jp-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .5px;
  margin-top: 3px;
}

.jp-card {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 15px;
  padding: 15px 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 12px 25px rgba(0,0,0,.6),
    inset 0 0 20px rgba(255,120,0,.1);
  position: relative;
  z-index: 1;
}

.jp-amount {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -.5px;

  background: linear-gradient(180deg,
    #fff8c4 0%,
    var(--fire-yellow) 30%,
    var(--fire-orange) 60%,
    var(--fire-red) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  filter:
    drop-shadow(0 0 10px rgba(255,200,0,.8))
    drop-shadow(0 0 25px rgba(255,60,0,.6));
  line-height: 1;
}

.jp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.delta-box {
  color: #ffdf7a;
  font-weight: 800;
  background: rgba(255,120,0,.15);
  padding: 2px 8px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(255,120,0,.3);
}

.jp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--fire-orange);
  background: rgba(255,80,0,.15);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(255,80,0,.5);
}

.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--fire-red);
  box-shadow:
    0 0 8px var(--fire-orange),
    0 0 16px var(--fire-red);
  animation: livePulse 1.1s infinite;
}

@keyframes livePulse {
  0%   { opacity: 1; transform: scale(1);   }
  50%  { opacity: .5; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1);   }
}

/* ===== WITHDRAWAL FEED ===== */
.kplus-panel {
  width: 100%;
  max-width: 520px;
  margin: 0 auto 16px;
  padding: 14px;
  border-radius: 18px;

  background:
    radial-gradient(800px 300px at 50% -10%, rgba(255,120,0,.35), transparent 60%),
    linear-gradient(180deg, #2a0000, #140000);
  border: 1px solid rgba(255,120,0,.35);
  box-shadow:
    0 18px 42px rgba(0,0,0,.7),
    0 0 30px rgba(255,80,0,.25),
    inset 0 0 15px rgba(255,120,0,.12);
}

.kplus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.kplus-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow:
    0 0 6px #ffb300,
    0 0 12px #ff3c00;
}

.kplus-title .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--fire-orange);
  box-shadow:
    0 0 8px var(--fire-yellow),
    0 0 18px var(--fire-red);
  animation: pulseFire 1.2s infinite;
}

@keyframes pulseFire {
  0%   { transform: scale(1);    opacity: 1; }
  50%  { transform: scale(1.35); opacity: .7; }
  100% { transform: scale(1);    opacity: 1; }
}

.kplus-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.withdraw-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.w-item {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 12px 12px 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 10px 22px rgba(0,0,0,.5),
    inset 0 0 10px rgba(255,120,0,.08);
  transition: all .4s cubic-bezier(.175,.885,.32,1.275);
}

.w-item:hover {
  border-color: var(--fire-orange);
  box-shadow:
    0 0 18px rgba(255,120,0,.4),
    0 10px 25px rgba(0,0,0,.6);
}

.w-item[data-status="success"] {
  border-color: rgba(255,120,0,.55);
  box-shadow:
    0 0 20px rgba(255,120,0,.35),
    0 10px 25px rgba(0,0,0,.6);
}

.w-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.w-name {
  font-weight: 600;
  color: var(--text-white);
  font-size: 14px;
  line-height: 1.2;
}

.w-amt {
  font-weight: 900;
  background: linear-gradient(180deg,
    #fff5b0,
    var(--fire-yellow),
    var(--fire-orange),
    var(--fire-red)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 15px;
}

.w-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.w-status {
  font-weight: 700;
  color: #ffd48a;
  padding: 2px 8px;
  background: rgba(255,120,0,.15);
  border-radius: 4px;
  font-size: 11px;
  box-shadow: 0 0 8px rgba(255,120,0,.2);
}

.w-item[data-status="success"] .w-status {
  color: #fff3c4;
  background: rgba(255,120,0,.25);
  text-shadow:
    0 0 8px #ffb300,
    0 0 16px #ff4a00;
}

@media (prefers-reduced-motion: reduce) {
  .w-item { transition: none; }
}

/* ===== LOGO MARQUEE (fixed bottom) ===== */
.logo-marquee-fixed {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  z-index: 9999;
  overflow: hidden;

  background:
    radial-gradient(120% 160% at 50% 0%, rgba(255,120,0,.35), transparent 60%),
    linear-gradient(180deg, #2b0000, #120000);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,120,0,.4);
  box-shadow:
    0 -10px 25px rgba(0,0,0,.8),
    0 0 35px rgba(255,80,0,.25);
  padding: 10px 0 8px;
}

/* fire running top bar */
.logo-marquee-fixed::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent, #ff0000, #ff7a00, #ffd000, transparent
  );
  background-size: 200% 100%;
  animation: fire-bar-run 2.5s linear infinite;
  opacity: .9;
  pointer-events: none;
}

@keyframes fire-bar-run {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  padding-left: 15px;
  animation: marquee-left 20s linear infinite;
}

.logo-item {
  flex: 0 0 auto;
  height: 52px;
  padding: 4px 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,120,0,.08);
  border: 1px solid rgba(255,120,0,.35);
  box-shadow:
    inset 0 0 10px rgba(255,120,0,.15),
    0 0 12px rgba(255,80,0,.35);
}

.logo-item img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  filter:
    brightness(1.15)
    contrast(1.05)
    drop-shadow(0 0 8px rgba(255,120,0,.7))
    drop-shadow(0 0 18px rgba(255,40,0,.45));
  transition: transform .2s ease;
}

.logo-item:active img {
  transform: scale(.9);
}

@keyframes marquee-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== MOBILE ===== */
@media (max-width: 480px) {
  #topRegBtn { right: 10px; height: 42px; min-width: 120px; }
  .btn-top-reg span { font-size: 13px; }
  .btn-register { height: 60px; }
  .btn-register span { font-size: 19px; }
  .jp-amount { font-size: 28px; }
  .jp-badge { font-size: 11px; padding: 4px 10px; }
  .logo-marquee-fixed { padding: 8px 0 6px; }
  .logo-track { gap: 15px; animation-duration: 16s; }
  .logo-item { height: 40px; padding: 3px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; overflow-x: auto; }
}
