/* KODA888 100% Clone */

/* ================= THEME PREMIUM RED ================= */
:root{
  --red-primary: #e74c3c;      /* แดงหลัก */
  --red-light: #ff7675;        /* แดงสว่าง */
  --red-glow: rgba(231, 76, 60, 0.5);
  --text-white: #ffffff;
  --bg-dark-red: #1a0000;      /* แดงเข้มเกือบดำ */
}

/* ===== REGISTER BAR ===== */
.register-bar{
  position: relative;
  z-index: 9999;
  padding: 12px 0;
  background: transparent;
  -webkit-backdrop-filter: blur(8px);
}

.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, #330a0a 0%, #000000 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.2s ease;
}

.btn-register .btn-icon{
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: 
    drop-shadow(0 0 10px var(--red-primary)) 
    brightness(1.2);
}

.btn-register span{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-white);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .8px;
  white-space: nowrap;
  text-shadow: 
    0 2px 5px rgba(0,0,0,1),
    0 0 10px rgba(255, 118, 117, 0.4);
}

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

/* ===== LED RED RUNNING BORDER ===== */
.led-red::before,
.led-red-top::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 3px; 
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--red-primary) 25%, 
    #ffffff 50%, 
    var(--red-light) 75%, 
    transparent 100%
  );
  background-size: 200% 100%;
  animation: led-run-red 1.5s 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(--red-primary));
  pointer-events: none;
}

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

/* ================= TOP FIXED REGISTER ================= */
.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(30, 0, 0, 0.92); 
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1.5px solid var(--red-primary);
  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, #660000 0%, #000000 100%);
  border-radius: 999px;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

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

.btn-top-reg span{
  color: var(--text-white);
  font-size: 15px;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* 📱 MOBILE RESPONSIVE */
@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; }
}


  :root{
    /* PREMIUM RED THEME COLORS */
    --bg1: #1a0000;           /* แดงเข้มเกือบดำ */
    --bg2: #330a0a;           /* แดงเข้ม */
    --neon-red: #e74c3c;      /* แดงหลัก */
    --neon-light: #ff7675;    /* แดงสว่าง */
    --text-white: #ffffff;    /* ขาวบริสุทธิ์ */
    --muted: rgba(184, 148, 148, 0.8);
    --glass: rgba(43, 0, 0, 0.6);
    --stroke: rgba(231, 76, 60, 0.3);
  }

  .jackpot-panel{
    width: 100%;
    max-width: 520px;
    margin: 10px auto; 
    padding: 14px;
    border-radius: 20px;
    background:
      radial-gradient(circle at 50% -20%, rgba(231, 76, 60, 0.2), transparent 70%),
      linear-gradient(180deg, var(--bg2), var(--bg1));
    border: 1px solid rgba(255, 118, 117, 0.2);
    box-shadow:
      0 20px 45px rgba(0,0,0,0.8),
      inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
  }

  /* เส้น 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: 20px 20px;
    opacity: 0.15;
    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: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .jp-title .dot{
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--neon-light);
    box-shadow: 0 0 12px var(--neon-light);
  }

  .jp-sub{
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.5px;
  }

  .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,0.5),
      inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    position: relative;
    z-index: 1;
  }

  .jp-amount{
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.5px;
    /* ไล่เฉดสีจาก ขาว ไป แดงสว่าง */
    background: linear-gradient(180deg, #ffffff 30%, var(--neon-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(231, 76, 60, 0.4));
    line-height: 1;
    font-family: 'Orbitron', sans-serif;
  }

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

  .delta-box {
    color: var(--neon-light); 
    font-weight: 700;
    background: rgba(255, 118, 117, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 118, 117, 0.2);
  }

  .jp-badge{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--neon-red);
    background: rgba(231, 76, 60, 0.15);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.2);
  }

  .live-dot{
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3b3b; /* แดงสว่างจ้าสำหรับจุด Live */
    box-shadow: 0 0 10px #ff3b3b;
    animation: livePulseRed 1.2s infinite;
  }

  @keyframes livePulseRed{
    0%   { opacity: 1; transform: scale(1); }
    50%  { opacity: 0.4; transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
  }

  @media (max-width:480px){
    .jp-amount{ font-size: 28px; }
    .jp-badge{ font-size: 11px; padding: 4px 10px; }
  }


:root{
  /* PREMIUM RED THEME (RED-BLACK) */
  --bg1:#000000;           /* ดำสนิท */
  --bg2:#330a0a;           /* แดงเข้มจัด */
  --neon-red:#ff3b3b;      /* แดงสว่างนีออน */
  --red-emerald:#e74c3c;   /* แดงอมส้ม */
  --text:#ffffff;          /* ขาวบริสุทธิ์ */
  --muted:rgba(255,255,255,.6);
  --glass:rgba(30, 0, 0, 0.5);
  --stroke:rgba(255, 59, 59, 0.2);
}

/* ===== PANEL ===== */
.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, 59, 59, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg1));
  border: 1px solid rgba(255, 59, 59, 0.25);
  box-shadow:
    0 18px 42px rgba(0,0,0,0.8),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

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

.kplus-title{
  font-size:16px;
  font-weight:700;
  letter-spacing:.2px;
  color:var(--text);
  display:flex;
  align-items:center;
  gap:8px;
}

.kplus-title .dot{
  width:10px; height:10px; border-radius:50%;
  background: var(--neon-red);
  box-shadow: 0 0 12px var(--neon-red);
  animation: pulseRed 1.5s infinite;
}

@keyframes pulseRed {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

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

/* ===== LIST ===== */
.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,0.5),
    inset 0 0 0 1px rgba(255,255,255,.02);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

.w-amt{
  font-weight:800;
  color:#ffffff;
  background: linear-gradient(to bottom, #ffffff, var(--neon-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: #ffffff;
  padding: 2px 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  font-size: 11px;
}

/* เมื่อถอนสำเร็จเปลี่ยนเป็นสีแดงนีออน */
.w-item[data-status="success"] .w-status{
  color: var(--neon-red);
  background: rgba(255, 59, 59, 0.15);
  text-shadow: 0 0 8px rgba(255, 59, 59, 0.5);
}

.w-item[data-status="success"]{
  border-color: rgba(255, 59, 59, 0.4);
}

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


/* Additional layout */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Inter',sans-serif; background:#000; color:#fff; min-height:100vh; }
.page { position:relative; max-width:600px; margin:0 auto; min-height:100vh; }
.bg-image { position:fixed; top:0; left:0; width:100%; height:100%; z-index:-2; }
.bg-image img { width:100%; height:100%; object-fit:cover; opacity:0.5; }
.page::after { content:""; position:fixed; top:0; left:0; width:100%; height:100%; z-index:-1; background:rgba(0,0,0,0.4); }
.logo-box { text-align:center; padding:30px 20px 10px; position:relative; z-index:1; }
.logo-box img { max-width:200px; width:80%; }
@media(max-width:480px){ .logo-box img { max-width:150px; } }
