@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

 body{
  background: radial-gradient(circle at top, #000000, #9337e8);
  color:#fff;
  font-family: "Kanit", sans-serif;
  padding-bottom: 120px;
}

a:hover{
  text-decoration: none;
  color:#333;
}

    .top-bar{
      padding:10px 0;
      background:linear-gradient(90deg,#f3c56b,#f6e6b4);
      color:#000;
    }


/* MODAL */
.auth-modal {
  background: transparent;
  border: 0;
}

/* กล่องกลาง (ทั้ง modal และ mobile ใช้ร่วมกัน) */
.auth-box {
  background: rgba(0,0,0,.75);
  border-radius: 18px;
  padding: 40px 30px 30px 30px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 25px rgba(0,0,0,.75);
}

@media (max-width: 767px) {
  .auth-box {
    background: rgba(0, 0, 0, .75);
    background: none !important;
    border: 0 !important;
    padding: 20px 10px !important; /* ลด padding ให้สวย */
  }
}

/* เวอร์ชันมือถือให้โค้งน้อยลงหน่อย */
.auth-box-mobile {
  margin-top: 15px;
  margin-bottom: 15px;
}

/* โลโก้ */
.auth-logo img {
  max-width: 320px;
}

/* input group */
.auth-input .input-group-text {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 1);
    /* border-right: 1px; */
    color: #fff;
}

#register-form .input-group-text{
  background: transparent;
    border: 1px solid rgb(0, 0, 0);
    /*border-right: 1px;*/
    color: #000000;
}

.auth-input .form-control {
    CONTAIN-INTRINSIC-BLOCK-SIZE: AUTO 100PX;
    background: linear-gradient(135deg, #000000 0%, #120707 35%, #712727 100%);
    border-left: 0;
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 1);
    color: #f6f6f6;
}

.auth-input .form-control::placeholder {
  color: rgba(255,255,255,0.7);
}

.auth-input .input-group-append .input-group-text {
  border-left: 0;
}
.form-control {
  height: 38px;
}


/* ปุ่มเปิด/ปิดรหัสผ่าน */
.toggle-pass {
  cursor: pointer;
}

/* ปุ่มเข้าสู่ระบบ (สีทอง) */
.btn-login {
  background: linear-gradient(90deg,#fbd065,#f05b28);
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  color: #2b0b00;
  box-shadow: 0 0 15px rgba(255,190,90,.75);
}


.btn-login:hover {
  opacity: .9;
}

.btn-register {
  background: #b30024;
  border: 0;
  color: #fff;
  font-weight: 500;
}

.btn-register-line {
  background: #d6233b;
  border: 0;
  color: #fff;
  font-weight: 500;
}

/* panel มือถือ */
.auth-panel-mobile {
  
}

/* ให้ modal กว้างหน่อย */
@media (min-width: 768px) {
  #authModal .modal-dialog {
    max-width: 600px;
  }
}


    .logo{
      font-size:26px;
      font-weight:bold;
    }
    .hero-banner{
      background:#3b1265;
      border-radius:15px;
      margin-top:15px;
      padding:25px;
      min-height:220px;
    }
    .hero-title{
      font-size:32px;
      font-weight:700;
    }
    .hero-sub{
      font-size:14px;
      opacity:.8;
    }
    .provider-strip{
      margin-top:20px;
      padding:10px 15px;
      border-radius:10px;
      white-space:nowrap;
    }
    .provider-item{
      display:inline-block;
      padding:6px 15px;
      border-radius:8px;
      margin-right:8px;
      font-size:12px;
    }
    .section-box{
      margin-top:25px;
      padding:20px;
      border-radius:15px;
      background:rgba(0,0,0,.45);
    }
    .lotto-header,
    .game-header{
      font-weight:600;
      font-size:18px;
      margin-bottom:10px;
    }
    .lotto-subtab{
      display:flex;
      margin-bottom:10px;
    }
    .lotto-subtab button{
      flex:1;
    }
    .game-grid .card{
      background:#461010;
      border:0;
      margin-bottom:15px;
    }
    .game-grid .card img{
      border-radius:8px 8px 0 0;
    }
    .badge-new{
      position:absolute;
      top:8px;
      left:8px;
      background:#ff3366;
      padding:2px 8px;
      border-radius:4px;
      font-size:10px;
    }
    .banner-box{
  
  border-radius:15px;
  overflow:hidden;
}

.provider-strip{
  margin-top:20px;
  padding:10px 0;
}

.provider-slider .provider-item{
  padding:5px 10px;
  cursor:pointer;
  opacity:1;
  transition:all .2s;
}

.provider-slider .provider-item img{
  max-height:120px;
  border-radius: 20px;
}

.provider-slider .provider-item.active{
  opacity:1;
  transform:scale(1.05);
}

.provider-slider .slick-prev:before,
.provider-slider .slick-next:before{
  color:#fff;
}
.section-box.lotto-scroll {
  /*max-height: 500px;*/
  overflow-y: auto;
 /* padding-right: 10px;  กัน scrollbar บังเนื้อหา */
  overflow-x: hidden;
}

/* ทำ scrollbar ให้สวย */
.section-box.lotto-scroll::-webkit-scrollbar {
  width: 6px;
}
.section-box.lotto-scroll::-webkit-scrollbar-thumb {
  background: #ff7474;
  border-radius: 4px;
}
.section-box.lotto-scroll::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
}

.footer-cyber {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  height: 80px;
  background: rgba(25, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
}

.footer-cyber .item {
  color: #fff;
  font-size: 12px;
  text-align: center;
  text-decoration: none;
  opacity: .8;
  transition: .25s;
}

.footer-cyber .item:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.footer-cyber .icon {
  font-size: 22px;
  margin-bottom: 5px;
  display: block;
  color: #9b6dff;
  text-shadow: 0 0 8px #9b6dff;
}

/* ปุ่มกลาง */
.footer-cyber .center-btn {
  margin-top: -30px;
}

.footer-cyber .center-btn .circle {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg,#c86bfa,#8754ff);
  border-radius: 50%;
  box-shadow: 0 0 20px #8c57ff, 0 0 40px #5d2fff inset;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(1);
  transition: .25s;
}

.footer-cyber .center-btn .circle:hover {
  transform: scale(1.1);
}

.footer-cyber .center-btn i {
  font-size: 24px;
  color: #fff;
}


/* ---------- REGISTER CARD ---------- */
    .register-wrapper{
      margin-top:40px;
      margin-bottom:40px;
    }

    .register-card{
      background:#ffffff;
      color:#000;
      border-radius:12px;
      overflow:hidden;
      box-shadow:0 0 25px rgba(0,0,0,.7);
    }

    .register-header{
      background:#d8ad24;
      padding:12px 18px;
      font-weight:600;
      font-size:18px;
    }

    .register-body{
      padding:18px;
    }

    .input-label-small{
      font-size:12px;
      color:#333;
      margin-bottom:3px;
    }

    .reg-input-group .input-group-text{
      background:#000;
      color:#fff;
      border-radius:4px 0 0 4px;
      border:0;
      width:44px;
      justify-content:center;
    }

    .reg-input-group .clear-btn{
      background:#000;
      color:#fff;
      border-radius:0 4px 4px 0;
      border:0;
      cursor:pointer;
    }

    .reg-input-group .form-control{
      border-radius:0;
      border:1px solid #000;
      border-left:0;
      border-right:0;
      font-size:14px;
    }

    .reg-input-group .form-control:focus{
      box-shadow:none;
      border-color:#f2b705;
    }

    .reg-select{
      border-radius:4px;
      font-size:14px;
    }

    /* ---------- BANK ICON GRID ---------- */
    .bank-select-grid{
      display:grid;
      grid-template-columns: repeat(5,1fr);
      gap:12px;
      margin-top:10px;
    }

    .bank-item{
      width:60px;
      height:60px;
      border-radius:50%;
      background:#f4f4f4;
      display:flex;
      justify-content:center;
      align-items:center;
      cursor:pointer;
      transition:0.2s;
      border:3px solid transparent;
    }

    .bank-item img{
    width: 54px;
    border-radius: 50%;
    }

    .bank-item.active{
      border-color:#f4c542;
      box-shadow:0 0 8px #f4c542;
      transform:scale(1.07);
    }

    @media(max-width:576px){
      .bank-select-grid{
        grid-template-columns: repeat(4,1fr);
      }
      .bank-item{
        width:55px;
        height:55px;
      }
      .bank-item img{
        width:36px;
      }
      .register-wrapper{
        margin-top:25px;
      }
    }

    /* ---------- NOTE ---------- */
    .note-box{
      background:#fffbe6;
      border-radius:6px;
      padding:10px 12px;
      font-size:12px;
      margin-top:10px;
      color:#333;
    }

    .note-box i{
      color:#f2b705;
      margin-right:6px;
    }

    /* ---------- REGISTER BUTTON ---------- */
    .btn-register-submit{
      background:#18b442;
      color:#fff;
      font-weight:600;
      border-radius:999px;
      border:0;
      padding:10px;
      font-size:15px;
      margin-top:15px;
      width:100%;
    }

    .btn-register-submit i{
      margin-right:6px;
    }


    /* TOP NAV BAR */
    .dash-topbar{
      background: #6202b7;
      padding:8px 15px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      color:#fff;
    }
    
    .dash-topbar-left,
    .dash-topbar-right{
      display:flex;
      align-items:center;
    }

    @media (max-width: 767px) {
  .dash-topbar-left {
    display: none !important;
  }
}

    .dash-nav-icon{
      width:45px;
      height:45px;
      border-radius:50%;
      background:rgba(0,0,0,.15);
      display:flex;
      justify-content:center;
      align-items:center;
      margin-right:8px;
      cursor:pointer;
    }
    .dash-nav-icon i{
      font-size:18px;
    }
    .dash-topbar-right .balance-chip{
      background:#000;
      padding:6px 14px;
      border-radius:999px;
      margin-right:10px;
      font-size:13px;
    }
    .dash-topbar-right .menu-btn{
      width:45px;
      height:45px;
      border-radius:999px;
      background:#000;
      display:flex;
      justify-content:center;
      align-items:center;
      cursor:pointer;
    }

    /* WRAPPER */
    .dashboard-wrapper{
      margin-top:20px;
      margin-bottom:30px;
    }

    /* LEFT PANEL */
    .panel-left-card{
      background: rgb(1 0 33 / 80%);
      border-radius:20px;
      padding:18px;
      margin-bottom:15px;
      position:relative;
      overflow:hidden;
    }
    .panel-left-card .welcome-bar{
      background:#f0f0f0;
      color:#333;
      border-radius:30px;
      padding:4px 15px;
      font-size:13px;
      margin-bottom:10px;
    }
    .panel-left-card .balance-label{
      font-size:13px;
      opacity:.8;
    }
    .panel-left-card .balance-value{
      font-size:36px;
      font-weight:700;
      line-height:1.1;
    }
    .panel-left-card .user-id{
      font-size:12px;
      margin-top:4px;
      opacity:.8;
    }
    .panel-left-card .float-logo{
      position:absolute;
      right:-20px;
      bottom:-10px;
      opacity:.18;
      width:58%;
    }
    .panel-left-card .tab-switch{
      position:absolute;
      left:90%;
      top:75%;
      transform:translate(-50%,-50%);
      width:52px;
      height:52px;
      border-radius:50%;
      background:#fff;
      display:flex;
      justify-content:center;
      align-items:center;
      box-shadow:0 0 10px rgba(0,0,0,.6);
      cursor:pointer;
    }
    .panel-left-card .tab-text{
      position:absolute;
      left:80%;
      top:45%;
      transform:translate(-50%,-50%);
      width:122px;
      height:52px;
      
     
      display:flex;
      justify-content:center;
      align-items:center;
      
      cursor:pointer;
    }
    .panel-left-card .tab-switch i{
      color:#6b168e;
      font-size:22px;
    }
    .panel-left-buttons .btn{
      height:60px;
      font-weight:600;
      font-size:18px;
    }
    .btn-deposit{
      background:#00b33c;
      border:0;
    }
    .btn-withdraw{
      background:#f22929;
      border:0;
    }

    /* MAIN MENU BUTTONS */
    .main-menu-grid .btn-menu{
      width:100%;
      height:80px;
      border-radius:15px;
      border:0;
      color:#fff;
      font-size:20px;
      font-weight:600;
      display:flex;
      align-items:center;
      justify-content:center;
      margin-bottom:12px;
      position:relative;
    }
    .btn-menu i{
      font-size:24px;
      margin-right:12px;
    }
    .btn-menu-lotto{
      background:linear-gradient(90deg,#6d1db4,#b332d2);
    }
    .btn-menu-slot{
      background:linear-gradient(90deg,#ff5c9c,#ff7b3b);
    }
    .btn-menu-casino{
      background:linear-gradient(90deg,#ffbd3c,#ff8e34);
    }
    .btn-menu-sport{
      background:linear-gradient(90deg,#28c76f,#1e9b5a);
    }
    .btn-menu-minigame{
      background:linear-gradient(90deg,#6d63ff,#a964ff);
    }

    /* RIGHT PANEL - LAST LOTTO */
    .panel-lotto{
      background:rgba(0,0,0,.7);
      border-radius:18px;
      padding:15px;
      margin-bottom:15px;
    }
    .panel-lotto-header{
      font-weight:600;
      margin-bottom:10px;
      font-size:18px;
    }
    .lotto-item{
      display:flex;
      align-items:center;
      background:#2a103f;
      border-radius:12px;
      padding:6px 10px;
      margin-bottom:8px;
    }
    .lotto-flag{
      width:36px;
      height:36px;
      border-radius:8px;
      overflow:hidden;
      margin-right:10px;
      flex-shrink:0;
    }
    .lotto-flag img{
      width:100%;
      height:100%;
      object-fit:cover;
    }
    .lotto-info{
      flex:1;
    }
    .lotto-info .name{
      font-size:14px;
      font-weight:600;
    }
    .lotto-info .time{
      font-size:11px;
      opacity:.8;
    }
    .lotto-action{
      text-align:right;
    }
    .lotto-action .btn-play{
      background:#19b73b;
      border-radius:999px;
      border:0;
      padding:4px 12px;
      font-size:12px;
      margin-bottom:2px;
    }
    .lotto-action .countdown{
      display:inline-block;
      background:#444;
      border-radius:999px;
      padding:2px 8px;
      font-size:11px;
    }

    /* QUICK ACTIONS BAR */
    .quick-panel{
      background: rgb(1 0 33 / 80%);
      border-radius:18px;
      padding:15px;
      margin-top:10px;
    }
    .quick-item{
      text-align:center;
      font-size:11px;
      color:#fff;
      margin-bottom:10px;
    }
    .quick-icon-wrap{
      max-width:58px;
      width: 100%;
      border-radius:18px;
      background:#fff;
      margin:0 auto 4px auto;
      display:flex;
      justify-content:center;
      align-items:center;
      color:#f27b1a;
      font-size:22px;
      padding: 7px;
    }

    .problem-bar{
      margin-top:10px;
      background:#ff3b3b;
      text-align:center;
      padding:8px;
      border-radius:999px;
      font-size:13px;
      font-weight:500;
    }

    @media(max-width:767px){
      .panel-left-card{
        margin-bottom:15px;
      }
    }

    /* ========== SIDE MENU OFFCANVAS ========== */
.side-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  opacity: 0;
  visibility: hidden;
  transition: .25s;
  z-index: 9980;
}

.side-menu-panel {
  position: fixed;
  top: 0;
  right: -360px;       /* ซ่อนอยู่ด้านขวา */
  width: 340px;
  max-width: 100%;
  height: 100%;
  background: linear-gradient(180deg,#3b1259,#0f031a);
  color: #fff;
  z-index: 9990;
  box-shadow: -4px 0 16px rgba(0,0,0,.7);
  transition: right .3s ease;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
}

/* เปิดเมนู */
body.side-menu-open .side-menu-overlay {
  opacity: 1;
  visibility: visible;
}
body.side-menu-open .side-menu-panel {
  right: 0;
}

/* หัวข้อด้านบนเมนู */
.side-menu-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}
.side-menu-top .close-btn {
  background:transparent;
  border:0;
  color:#fff;
  font-size:20px;
}

/* โลโก้ในเมนู */
.side-menu-logo {
  text-align:center;
  margin-bottom:12px;
}
.side-menu-logo img {
  max-width:180px;
}
.side-menu-user {
  text-align:center;
  font-size:13px;
  margin-bottom:15px;
}

/* ปุ่มในเมนู */
.side-menu-btn {
  width:100%;
  text-align:left;
  background:#ffffff;
  border-radius:8px;
  border:0;
  padding:8px 10px;
  color:#222;
  font-size:14px;
  margin-bottom:8px;
  display:flex;
  align-items:center;
}
.side-menu-btn i {
  margin-right:8px;
}
.side-menu-btn.gray {
  background:#d9dde3;
}
.side-menu-btn.dark {
  background:#353956;
  color:#fff;
}
.side-menu-btn.logout {
  background:#ff2e2e;
  color:#fff;
  margin-top:auto; /* ดันไปอยู่ล่างสุด */
}

/* เส้นคั่น */
.side-menu-divider {
  border-top:1px solid rgba(255,255,255,.15);
  margin:10px 0;
}

/* มือถือให้เต็มหน้าจอ */
@media (max-width: 767px) {
  .side-menu-panel {
    
  }
}



  /* มือถือ: สลับตำแหน่ง balance-chip กับ menu-btn */
@media (max-width: 767px) {
  .dash-topbar-right {
    display: flex;
    flex-direction: row-reverse; /* สลับตำแหน่งลูก */
    width: 100%;
    justify-content: space-between;
    padding: 0 5px;
  }

  .dash-topbar-right .balance-chip {
    order: 2;          /* ส่งไปขวา */
    margin-right: 0;
  }

  .dash-topbar-right .menu-btn {
    order: 1;          /* มาอยู่ซ้าย */
    margin-left: 0;
  }
}

.neon-marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  background: linear-gradient(90deg,#6d1db4,#b332d2);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255,0,255,0.5);
}

.neon-text {
  display: inline-block;
  padding-left: 100%;
  animation: neonScroll 15s linear infinite;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 0 8px #ff63db, 0 0 15px #9d4bff;
}

@keyframes neonScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}


.top-bar-neo {
  padding: 10px 0;
  background: rgba(120,0,20,0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,215,160,0.35);
  box-shadow: 0 4px 20px rgba(0,0,0,.6);
  position: sticky;
  top: 0;
  z-index: 2000;
}

.topbar-logo img {
  max-height: 58px;
  filter: drop-shadow(0 0 6px rgba(255,220,150,0.65));
}


/* DESKTOP BUTTONS */
.neo-btn,
.neo-btn-outline {
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: .25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neo-btn i,
.neo-btn-outline i {
  margin-right: 6px;
}

/* ปุ่มทอง–แดง */
.neo-btn {
  background: linear-gradient(135deg,#fbd065,#f05b28);
  color: #2b0b00;
  border: 0;
  box-shadow: 0 0 12px rgba(255,180,80,.75);
}

.neo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(255,200,120,.95);
}

/* ปุ่มขอบทอง */
.neo-btn-outline {
  background: transparent;
  border: 1px solid rgba(255,215,160,.9);
  color: #ffe5bf;
  box-shadow: 0 0 8px rgba(255,200,120,.45);
}

.neo-btn-outline:hover {
  background: rgba(120,0,20,.5);
  transform: translateY(-2px);
}

/* ปุ่มมือถือ */
.neo-btn-mobile {
  background: linear-gradient(135deg,#ffb930,#ff3c2f);
  border-radius: 999px;
  padding: 8px 16px;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff7e6;
  box-shadow: 0 0 16px rgba(255,120,90,.9);
  display: flex;
  align-items: center;
}

.neo-btn-mobile i {
  margin-right: 5px;
}


/* Mobile Logo Resize */
@media (max-width:767px){
  .topbar-logo img {
    max-height: 46px;
  }
}


.footer-cyber .icon {
  font-size: 22px;
  margin-bottom: 5px;
  display: block;
  color: #9337e8;
  text-shadow: 0 0 8px rgba(12, 0, 39, 0.9);
}

/* ปุ่มกลาง */
.footer-cyber .center-btn .circle {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg,#9337e8,#111);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(172, 70, 255, 0.95), 0 0 40px rgba(0, 0, 0, 0.95) inset;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(1);
  transition: .25s;
}

.neon-marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  background: linear-gradient(90deg,#000000,#9337e8);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(150, 70, 255, 0.7);
}

.neon-text {
  display: inline-block;
  padding-left: 100%;
  animation: neonScroll 15s linear infinite;
  font-size: 16px;
  font-weight: 600;
  color: #fff7e6;
  text-shadow: 0 0 8px #9337e8, 0 0 15px #000000;
}

.panel-left-card{
  background:rgba(36, 0, 60, 0.8);
  border-radius:20px;
  padding:18px;
  margin-bottom:15px;
  position:relative;
  overflow:hidden;
}

.panel-lotto{
  background:rgba(15, 0, 40, 0.85);
  border-radius:18px;
  padding:15px;
  margin-bottom:15px;
}

.quick-panel{
  background:rgba(15, 0, 40, 0.9);
  border-radius:18px;
  padding:15px;
  margin-top:10px;
}

/* side menu */
.side-menu-panel {
  background: linear-gradient(180deg,#9337e8,#0b0019);
}
.side-menu-btn.dark {
  background:#35074b;
}
.side-menu-btn.logout {
  background:#9023d9;
}

/* POPUP OVERLAY */
.rt-popup-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 12000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

/* แสดง popup */
.rt-popup-overlay.active{
  opacity: 1;
  visibility: visible;
}

/* กล่อง POPUP */
.rt-popup-box{
  width: 90%;
  max-width: 600px;
  border-radius: 18px;
  border: 1px solid rgba(245, 140, 255, 0.7);
  box-shadow:
    0 0 25px rgba(0,0,0,.85),
    0 0 18px rgba(214, 80, 255, 0.7);
  padding: 18px 18px 16px 18px;
  color: #fff7e8;
  backdrop-filter: blur(16px);
  transform: translateY(20px) scale(.9);
  opacity: 0;
  transition: all .28s ease-out;
  position: relative;
  overflow: hidden;
}

/* แถบไฮไลต์ด้านหลัง */
.rt-popup-box::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(circle at top left,rgba(22, 16, 0, 0.35),transparent 55%),
    radial-gradient(circle at bottom right,rgba(191, 80, 255, 0.35),transparent 55%);
  opacity:.7;
  z-index:-1;
}

/* ตอน active ให้เด้งขึ้นมา */
.rt-popup-overlay.active .rt-popup-box{
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* HEADER */
.rt-popup-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:8px;
}

.rt-popup-title{
  font-size:18px;
  font-weight:700;
  letter-spacing:.5px;
}

.rt-popup-close-icon{
  background:transparent;
  border:0;
  color:#ffe6c0;
  font-size:18px;
  cursor:pointer;
  padding:4px 6px;
  border-radius:999px;
  transition:.2s;
}
.rt-popup-close-icon:hover{
  background:rgba(255,255,255,.12);
}

/* BODY */
.rt-popup-body{
  font-size:14px;
  line-height:1.6;
  margin-top:6px;
}

/* FOOTER */
.rt-popup-footer{
  margin-top:14px;
  text-align:right;
}

/* ปุ่ม ปิดหน้าต่างนี้ */
.rt-popup-btn-close{
  background: linear-gradient(135deg,#fbd065,#f05b28);
  border-radius:999px;
  border:0;
  padding:8px 18px;
  font-size:14px;
  font-weight:600;
  color:#2b0b00;
  box-shadow:0 0 12px rgba(255,190,90,.8);
  cursor:pointer;
  transition:.2s;
}
.rt-popup-btn-close:hover{
  transform:translateY(-1px);
  box-shadow:0 0 16px rgba(255,210,120,1);
}

/* มือถือเล็ก */
@media (max-width: 480px){
  .rt-popup-box{
    padding:16px 14px 14px 14px;
    border-radius:16px;
  }
  .rt-popup-title{
    font-size:16px;
  }
}

.rt-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9990;
}

.rt-popup-box {
  position: relative;        /* สำคัญ เพื่อให้ปุ่มอิงกล่องนี้ */
  background: #18092c;
  border-radius: 18px;
  padding: 16px 16px 24px;
}

/* ปุ่มกากบาท */
.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    color: #fac05d;
    font-size: 28px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* box-shadow: 0 0 10px rgba(255, 0, 0, 0.7); */
    z-index: 9991;
    transition: 0.2s 
ease;
}

.popup-close-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.95);
}


.dash-topbar-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 10px;
}

/* กล่องโลโก้ให้อยู่กลาง */
.menu-logo {
  
}

.menu-logo img {
  height: 40px;
}

/* balance-chip */
.dash-topbar-right .balance-chip {
  background: #000;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: #fff;
}

/* menu-btn */
.dash-topbar-right .menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: #fff;
}

/* มือถือ */
@media (max-width: 767px) {
  .dash-topbar-right {
    padding: 0 5px;
  }

  .balance-chip {
    order: 1;
  }

  .menu-btn {
    order: 3;
  }

  /* โลโก้ยังอยู่กลางเหมือนเดิม */
  .menu-logo {
    position: absolute;
  left: 50%;
  transform: translateX(-50%);
  
  }
}


.game-card {
  cursor: pointer;
  transition: 0.25s ease;
  border-radius: 10px;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.35);
}

.game-card img {
  transition: 0.3s ease;
}

.game-card:hover img {
  transform: scale(1.06);
}

.card-dark {
  background: #0f0f0f;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.25s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}

/* ขอบแบบไล่สีทอง */
.card-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #ffeb99 0%, #f1c15c 40%, #c68e2e 100%);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* ข้อความด้านใน */
.card-dark small,
.card-dark .card-body,
.card-dark p {
  color: #f0f0f0;
}

/* เอฟเฟค Hover */
.card-dark:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.55);
}

.card-dark:hover img {
  transform: scale(1.05);
}

/* รูปภาพใน card */
.card-dark img {
  border-radius: 10px;
  transition: 0.3s ease;
  width: 100%;
}
