/* RESET */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: "Segoe UI", sans-serif;
}

body{
  background:#eee;
  color:#222;
  max-width:480px;
  margin:auto;
}

/* ================= HEADER ================= */
.header{
  background:#fff;
  padding:10px 14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid #e5e5e5;
  position:sticky;
  top:0;
  z-index:1000;
}

.logo{
  font-weight:800;
  font-size:18px;
  color:#14a44d;
}

.login-box{
  display:flex;
  align-items:center;
  gap:8px;
}

.login-btn,
.register-btn{
  padding:6px 12px;
  border-radius:20px;
  border:none;
  font-size:12px;
  cursor:pointer;
}

.login-btn{
  background:#f2f2f2;
  color:#14a44d;
}

.register-btn{
  background:#14a44d;
  color:#fff;
}

.balance{
  background:#f2f2f2;
  color:#14a44d;
  padding:6px 10px;
  border-radius:20px;
  font-size:13px;
  font-weight:600;
}

/* PROFILE */
.profile-wrapper{
  position:relative;
}

.profile-avatar{
  width:36px;
  height:36px;
  border-radius:50%;
  cursor:pointer;
}

.profile-dropdown{
  display:none;
  position:absolute;
  right:0;
  top:45px;
  width:180px;
  background:#fff;
  border-radius:10px;
  box-shadow:0 8px 20px rgba(0,0,0,.15);
  padding:10px;
}

.profile-dropdown p{
  font-size:12px;
  word-break:break-all;
}

.profile-dropdown button{
  width:100%;
  background:none;
  border:none;
  padding:8px;
  text-align:left;
  cursor:pointer;
  border-radius:6px;
}

.profile-dropdown button:hover{
  background:#f2f2f2;
}

/* ================= NAV ================= */
.nav{
  display:flex;
  overflow-x:auto;
  background:#fff;
  border-bottom:1px solid #eee;
  
}

.nav a{
  padding:12px 14px;
  white-space:nowrap;
  font-size:13px;
  color:#000;
  text-decoration:none;
  margin-left: 10px;
}

.nav a:hover{
  color:#14a44d;
}

/* ================= Slider ================*/
.slides
{
  background-color: #f2f2f2;
}
/* ================= BANNER ================= */
.banner{
  margin:12px;
  height:150px;
  border-radius:14px;
  background:linear-gradient(135deg,#14a44d,#0f8c3a);
  display:flex;
  align-items:center;
  padding:16px;
  color:#fff;
  font-weight:700;
}

/* ================= SECTION ================= */
.section{
  margin:14px 12px;
}

.section h3{
  font-size:15px;
  margin-bottom:10px;
}

/* LIVE CASINO */
.live-casino{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.live-card{
  background:#fff;
  border-radius:14px;
  padding:8px;
  text-align:center;
  cursor:pointer;
}

.live-card img{
  width:100%;
  height: 80%;
  border-radius:10px;
}

.live-card p{
  font-size:18px;
  margin-top:4px;
  color: #000000;
  font-weight: bold;
}
/* ================= GAMES ================= */
.games{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.game-card{
  background:#fff;
  border-radius:16px;
  padding:10px;
  text-align:center;
  cursor:pointer;
}

.game-card img{
  width:100%;
  border-radius:12px;
}

.game-card span{
  display:block;
  margin-top:6px;
  font-size:13px;
  font-weight:600;
  color: #000000;
}

/* ================= MOBILE BAR ================= */
.mobile-bar{
  position:fixed;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  width:100%;
  max-width:480px;
  background:#020617;
  display:flex;
  gap:10px;
  padding:10px;
  border-top:1px solid #ddd;
}

.mobile-bar button{
  flex:1;
  border:none;
  border-radius:25px;
  padding:10px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}

.mobile-bar button:first-child{
  background:#14a44d;
  color:#fff;
}

.mobile-bar button:last-child{
  background:#f1f1f1;
}

/* ================= FOOTER ================= */
.footer{
  text-align:center;
  font-size:12px;
  padding:60px 10px 80px;
  color:#777;
}

/* ================= MODAL INPUT ================= */
input{
  width:100%;
  padding:10px;
  margin:6px 0;
  border-radius:10px;
  border:1px solid #ccc;
}

#authModal button{
  width:100%;
  margin-top:8px;
  padding:10px;
  border-radius:10px;
  border:none;
  background:#14a44d;
  color:#fff;
  cursor:pointer;
}
/* ===== BOTTOM TAB BAR ===== */
.bottom-bar{
  position:fixed;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  width:100%;
  max-width:480px;
  background:#fff;
  display:flex;
  justify-content:space-around;
  padding:8px 0;
  border-top:1px solid #ddd;
  z-index:999;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.bottom-bar div{
  text-align:center;
  font-size:12px;
  color:#777;
  cursor:pointer;
}

.bottom-bar span{
  display:block;
  font-size:11px;
}

.bottom-bar .active{
  color:#16c172;
  font-weight:600;
}

/* CENTER GO BUTTON */
.center-btn{
  background:linear-gradient(360deg,#ff9800,#22ff59);
  color:#fff;
  width:46px;
  height:55px;
  border-radius:50%;
  line-height:50px;
  font-weight:700;
  margin-top:-18px;
  box-shadow:0 6px 16px rgba(0,0,0,.25);
}
/* ================= IMAGE SLIDER ================= */
.slider{
  width:95%;
  height:220px;
  overflow:hidden;
  border-radius:14px;
  margin:12px;
  position:relative;
  background:#000;
}

.slides{
  display:flex;
  width:100%;
  height:100%;
  transition:transform .5s ease;
}

.slides img{
  width:100%;
  height:100%;
  object-fit:cover;
  flex-shrink:0;
}

/* DOTS */
.dots{
  position:absolute;
  bottom:10px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:6px;
}

.dots span{
  width:8px;
  height:8px;
  border-radius:50%;
  background:rgba(255,255,255,.5);
}

.dots .active{
  background:#16b92c;
}
/* Full screen loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ================= MOBILE FIX PATCH ================= */

/* Prevent horizontal scroll on mobile */
html, body {
  width: 100%;
  overflow-x: hidden;
}

/* Slider full width on small devices */
@media (max-width: 480px) {
  .slider {
    width: calc(100% - 24px);
    margin: 12px;
    height: 200px;
  }
}

/* Live casino grid auto adjust */
@media (max-width: 420px) {
  .live-casino {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 360px) {
  .live-casino {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Game cards safe scaling */
@media (max-width: 360px) {
  .games {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .game-card span {
    font-size: 12px;
  }
}

/* Header safe spacing */
@media (max-width: 360px) {
  .logo {
    font-size: 16px;
  }

  .login-btn,
  .register-btn {
    padding: 5px 10px;
    font-size: 11px;
  }
}

/* Bottom bar tap-friendly */
.bottom-bar div {
  min-width: 56px;
}

/* Profile dropdown safe on small screens */
@media (max-width: 360px) {
  .profile-dropdown {
    width: 160px;
    right: -10px;
  }
}
/* ================= ABSOLUTE FULLSCREEN LOADER (FINAL FIX) ================= */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  width: 100vw;
  height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Poster-style image handling */
#loader img {
  height: 100vh;
  max-height: auto;

  width: auto;
  max-width: 100vw;

  object-fit: contain;
}

/* ================= NOTICE BAR ================= */
.notice-bar{
  width: calc(100% - 24px);
  margin: 8px 12px;
  background: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
  overflow: hidden;
}

.notice-icon{
  font-size: 18px;
  margin-right: 8px;
}

.notice-text{
  flex: 1;
  overflow: hidden;
  position: relative;
  color: #16b92c;
}

.notice-text div{
  white-space: nowrap;
  display: inline-block;
  animation: noticeScroll 12s linear infinite;
  font-size: 13px;
  color:#16b92c;
  font-weight: 500;
}

@keyframes noticeScroll{
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
/* ===== PROVIDER BOX ===== */
.provider-box {
  background: #fff;
  margin: 14px;
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.provider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.provider-logo {
  height: 28px;
}

.badge {
  border: 2px solid #ff3b30;
  color: #ff3b30;
  font-weight: bold;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.support-btn img {
  width: 40px;
  height: 40px;
}

/* PROVIDER GRID */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.provider-grid div {
  background: #f6f6f6;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.provider-grid img {
  max-height: 28px;
  max-width: 90%;
}

/* TEXT */
.provider-text {
  padding-left: 18px;
  font-size: 13px;
  color: #333;
}

.provider-text li {
  margin-bottom: 8px;
}
