/* Modern Mobile Casino Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {  touch-action: manipulation; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;  background: linear-gradient(135deg, #04070e 0%, #121924 50%, #232d3b 100%); color: white; overflow-x: hidden; min-height: 100vh; }
strong{ font-weight: bold;  color: #22c55e;}
hr {border: none; height: 1px; background-color:  rgba(74,222,128,0.1); opacity: 0.6; margin: 1em 0;}
.hidden{display: none;}

.primary { color: #4ade80 }
.secondary { color: #22c55e }
.warning{ color: #f1c40f }
.danger { color: #ef4444 }
.white { color: #ffffff }

.result-badge { padding: 6px 10px; border-radius: 8px; font-size: 0.85rem; text-transform: uppercase;  color: #ffffff;  font-weight: 700; }
.result-meron { background: #ff0040;}
.result-wala {background: #001eff;}
.result-draw {background: #0c7208;}
.result-cancelled {background: #5c2c09;}
 
.status-badge { padding: 6px 10px; border-radius: 8px; font-size: 0.95rem; text-transform: uppercase;  font-weight: 800; }
.status-success { background: #2ecc71; color: #064d23; }
.status-success::before { white-space: nowrap; content: "✔ ";  color: #064d23;  font-weight: 700;}
.status-warning  { background: #f1c40f; color: #3a341a; }
.status-danger { background: #e74c3c;  color: #fff; }
.status-danger::before { white-space: nowrap; content: "✖ ";  color: #fff;  font-weight: 700;}

.weight-500{font-size: clamp(15px, 4vw, 15px); font-weight: 500;}
.weight-600{font-size: clamp(16px, 4vw, 16px); font-weight: 600;}
.weight-700{font-size: clamp(17px, 4vw, 17px); font-weight: 700;}
.weight-800{font-size: clamp(18px, 4vw, 18px); font-weight: 800;}

img.shadowed {
  filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.5));
  /* Optional for smoother rendering */
  -webkit-filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.5));
}

/* Inputs */
input[type="date"] {
  font-size: 14px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

input:disabled{
  opacity: 0.4;
}
 
.break-text {overflow-wrap: anywhere; }

/* Chrome, Edge, Safari 
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

input[type="password"]::-webkit-textfield-decoration-container {
    display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
} */

input.error { border:2px solid #c52222ff; box-shadow:0 0 0 3px rgba(222,74,74,0.1); animation:shake 0.3s ease-in-out; background:rgba(255,125,125,0.1); }
input:focus { outline:none; background:rgba(0,0,0,0.1); border-color:#4ade80; box-shadow:0 0 0 3px rgba(74,222,128,0.1); }
.icon-40 { max-width: 40%;  height: auto;}

.custom-dropdown {
  position: relative;
  cursor: pointer;
  width: 100%; padding: 6px 5px 6px 15px; 
  background: rgba(255,255,255,0.05); 
  border: 1px solid rgba(255,255,255,0.1); 
  border-radius: 12px; 
  color: white; 
  font-size: 16px; 
  align-items: center;
  transition: all 0.3s ease; box-sizing: border-box; 
}
.custom-dropdown:focus {
  outline:none; background:rgba(0,0,0,0.1); border-color:#4ade80; box-shadow:0 0 0 3px rgba(74,222,128,0.1); 
}
.custom-dropdown:active {
  outline:none; background:rgba(0,0,0,0.1); border-color:#4ade80; box-shadow:0 0 0 3px rgba(74,222,128,0.1); 
}
.custom-dropdown.error {
  border:2px solid #c52222ff; box-shadow:0 0 0 3px rgba(222,74,74,0.1); animation:shake 0.3s ease-in-out; background:rgba(255,125,125,0.1); 
}

div.error{
  border:3px solid #c52222ff; box-shadow: 0 8px 25px rgba(222,74,74,1);animation:shake 0.3s ease-in-out; background:rgba(255,125,125,0.1); 
}

.custom-dropdown img {
  width: 20px;
  height: auto;
  margin-right: 8px;
}
 
.custom-dropdown .selected {
  padding: 8px;
  display: flex; 
  justify-content: space-between; /* text left, arrow right */ 
  align-items: center;
}

.custom-dropdown .selected::after { 
  content: "▼"; /* dropdown arrow */ 
  font-size: 12px; 
  margin-left: auto; 
  color: #22c55e; }

.custom-dropdown .options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  color: rgb(39, 39, 39);
  border: 2px solid rgba(74,222,128,0.3);
  background: #FFF; 
  /* background: linear-gradient(135deg, rgba(30,42,58,1) 0%, rgba(45,74,62,1) 100%);  */
  z-index: 10;
  border-radius: 12px; 
}

.custom-dropdown .options li {
  display: flex;
  align-items: center;
  padding: 10px;
}

.custom-dropdown .options li img {
  width: 20px;
  height: auto;
  margin-right: 8px;
}


/* Main App Page */
.app-container { max-width: 700px; margin: 0 auto; background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%); min-height: 100vh; color: white; }
.main-content {padding-bottom: 100px; transition: opacity 0.3s ease-in-out;}
.main-section {margin-bottom: 20px; animation: smoothFadeIn 0.5s ease-out both; }
.app-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: rgba(30,42,58,0.9); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.1); position: sticky; top: 0px; z-index: 99; }
.header-left { display: flex; align-items: center; gap: 15px; }
.menu-icon { font-size: 20px; cursor: pointer; color: #4ade80; transition: all 0.3s ease; padding: 8px; border-radius: 50%; }
.menu-icon:hover { color: #22c55e; transform: scale(1.1); background: rgba(74,222,128,0.1); }
.logo { font-size: clamp(18px, 4vw, 24px); font-weight: bold; }
.power { color: #4ade80; }
.bet { color: white; }
.center { text-align: center; justify-content: center; }
.header-right { display: flex; align-items: center; gap: 15px; }
.profile-btn { background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3); color: #4ade80; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; font-size: 16px; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.profile-btn:hover { background: rgba(74,222,128,0.2); transform: scale(1.1); box-shadow: 0 4px 15px rgba(74,222,128,0.3); }
.settings-icon { font-size: 18px; cursor: pointer; color: #94a3b8; transition: all 0.3s ease; padding: 8px; border-radius: 50%; position: relative; overflow: hidden; }
.settings-icon:hover { color: white; transform: rotate(90deg); background: rgba(255,255,255,0.1); }
.balance { display: flex; align-items: center; gap: 8px; background: rgba(74,222,128,0.1); padding: 8px 12px; border-radius: 20px; border: 1px solid rgba(74,222,128,0.3); font-weight: 600; color: #4ade80; font-size: clamp(12px, 3vw, 16px); cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; }
.balance:hover { background: rgba(74,222,128,0.2); transform: scale(1.05); }
.add-money-btn { background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%); border: none; width: 35px; height: 35px; border-radius: 50%; color: white; font-size: 16px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(74,222,128,0.4); position: relative; overflow: hidden; }
.add-money-btn:hover { transform: scale(1.1) rotate(90deg); box-shadow: 0 6px 20px rgba(74,222,128,0.6); }

.app-footer {text-align: center; justify-content: center; align-items: center; padding: 15px 20px; }

.text-bold-primary{ font-weight: bold; color: #4ade80;}
.blurred {  filter: blur(4px);  pointer-events: none;}

@keyframes smoothFadeIn { from { opacity: 0; transform: translateY(-20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Pages */
.page-header { display: flex; align-items: center; padding: 20px; background: rgba(30,42,58,0.9); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.1); }
.page-header-title { font-size: clamp(18px, 4vw, 22px); font-weight: bold; }
.page-back-btn { background: none; border: none; color: #4ade80; font-size: 20px; cursor: pointer; margin-right: 15px; transition: all 0.3s ease; }
.page-back-btn:hover { transform: scale(1.1); }
.page-content { padding: 20px; padding-bottom: 120px; }

/* Buttons */
.btn { min-width: 100px; border: none; padding: 10px 16px; border-radius: 12px; font-size: clamp(13px, 4vw, 15px); font-weight: 700; cursor: pointer; transition: all 0.3s ease; }
.btn.primary { background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%); color: white; box-shadow: 0 6px 18px rgba(74,222,128,0.3); }
.btn.primary:hover { transform: scale(1.05); box-shadow: 0 10px 24px rgba(74,222,128,0.4); }
.btn.warning { background: linear-gradient(135deg,#f1c40f 0%, #f59e0b 100%); color: white; box-shadow: 0 6px 18px rgba(222, 200, 74, 0.4); }
.btn.warning:hover { transform: scale(1.05); box-shadow: 0 10px 24px rgba(222, 200, 74, 0.4);  }
.btn.danger { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: white; box-shadow: 0 4px 12px rgba(239,68,68,0.4); }
.btn.danger:hover { transform: scale(1.05); box-shadow: 0 10px 24px rgba(222, 74, 74, 0.4); }

.btn.outline-primary { background:  rgba(0,0,0,0); border: 1px solid #4ade80; color: #4ade80; box-shadow: 0 6px 18px rgba(20, 49, 31, 0.3);}
.btn.outline-primary:hover { transform: scale(1.05); box-shadow: 0 10px 24px rgba(74,222,128,0.4);  }
.btn.outline-warning  { background:  rgba(0,0,0,0); border: 1px solid #f1c40f; color: #f1c40f; box-shadow: 0 6px 18px rgba(49, 47, 20, 0.3);  }
.btn.outline-warning:hover { transform: scale(1.05); box-shadow: 0 10px 24px rgba(222, 200, 74, 0.4);  }
.btn.outline-danger { background:  rgba(0,0,0,0); border: 1px solid #e74c3c; color: #e74c3c; box-shadow: 0 6px 18px rgba(49, 20, 20, 0.3);  }
.btn.outline-danger:hover { transform: scale(1.05); box-shadow: 0 10px 24px rgba(222, 74, 74, 0.4);  }

.btn-header-group {display: flex; gap: 10px;}

/* Category Menu */
.menu-wrapper{display: flex; justify-content: space-between; padding:15px;-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none;overflow:auto;white-space:nowrap;overflow-x:scroll}
.menu-wrapper::-webkit-scrollbar{display:none}
.menu-item{padding: 10px; gap: 10px; border-radius:6px; text-align: center;}
.menu-item img{width:40px; height:40px; border-radius:6px; margin-bottom:18px}
.menu-icon{text-align: center; align-items: center;}
.menu-text{font-size:13px;font-weight:600;color:#e0e0e0;}
.menu-item.active .menu-text{font-weight: 900; color:#4ade80;}
.menu-item.active{background:rgba(74,222,128,0.1); border:1px solid rgba(74,222,128,0.3); border-color:rgba(74,222,128,0.5); box-shadow:0 10px 30px rgba(0,0,0,0.3);transform:translateY(-5px)}

@media (max-width: 480px) { 
    .menu-wrapper{display: block; }
    .menu-item{ width: auto; gap:5px; }
    .menu-item img{width:30px;height:30px;}
}

/* Linear Hover Effect Base Styles*/
.linear-effect{ overflow: hidden; transition:all 0.3s ease, box-shadow 0.3s ease; cursor:pointer}
.linear-effect::after{content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(74,222,128,0.1),transparent);transition:left 0.5s ease}
.linear-effect:hover::after{left:100%}
.linear-effect:hover{ background:rgba(74,222,128,0.1); border:1px solid rgba(74,222,128,0.3); border-color:rgba(74,222,128,0.5); box-shadow:0 10px 30px rgba(0,0,0,0.3);transform:translateY(-5px)}

.linear-simple-primary{ overflow: hidden; transition:all 0.3s ease, box-shadow 0.3s ease; cursor:pointer}
.linear-simple-primary::after{content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(74,222,128,0.1),transparent);transition:left 0.5s ease}
.linear-simple-primary:hover::after{left:100%}
.linear-simple-primary:hover{ background:rgba(74,222,128,0.1); box-shadow:0 10px 30px rgba(0,0,0,0.3);transform:translateY(-2px)}
.linear-simple-primary:active{ background:rgba(74,222,128,0.1); box-shadow:0 10px 30px rgba(0,0,0,0.3);transform:translateY(-2px)}

.linear-simple-danger{ overflow: hidden; transition:all 0.3s ease, box-shadow 0.3s ease; cursor:pointer}
.linear-simple-danger::after{content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(239,68,68,0.1),transparent);transition:left 0.5s ease}
.linear-simple-danger:hover::after{left:100%}
.linear-simple-danger:hover{ background:rgba(239,68,68,0.1); box-shadow:0 10px 30px rgba(0,0,0,0.3);transform:translateY(-2px)}

/* Ripple Effect Base Styles / Custom ripple colors for different elements*/
.ripple { position: relative; overflow: hidden; }
.ripple::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-radius: 50%; background: rgba(255,255,255,0.3); transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s; pointer-events: none; z-index: 1; }

.ripple:active::before { width: 300px; height: 300px; }
.ripple-green::before { background: rgba(74,222,128,0.4); }
.ripple-orange::before { background: rgba(251, 206, 60, 0.4); }
.ripple-blue::before { background: rgba(59,130,246,0.4); }
.ripple-red::before { background: rgba(239,68,68,0.4); }

/* Login Banner Styles */
.login-banner { padding: 12px 20px; text-align: center; margin-top: 10px; margin-bottom: 10px; animation: slideDown 0.5s ease-out; border-radius: 15px; }
.login-banner-content { display: flex; align-items: center; justify-content: space-between; max-width: 400px; margin: 0 auto; }
.login-banner-text { font-size: 14px; font-weight: 600; color: white; }
.login-banner-btn { background: rgba(255,255,255,0.2); border: none; color: white; padding: 8px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; }
.login-banner-btn:hover { background: rgba(255,255,255,0.3); transform: translateY(-1px); }

/* Profile Page Styles */
.profile-header { padding: 20px; text-align: center; position: sticky; top: 0; }
 
.profile-avatar {
    width: 120px; 
    height: 120px;
    overflow: hidden; 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; 
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.4);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block; 
}
.profile-name { font-size: 24px; font-weight: bold; color: white; margin-bottom: 5px; }
.profile-level { color: #4ade80; font-size: 16px; font-weight: 600; }
.profile-content { padding: 20px; padding-bottom: 100px; }
.profile-section { background: linear-gradient(135deg, rgba(30, 42, 58, 0.8) 0%, rgba(45, 74, 62, 0.8) 100%); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 20px; margin-bottom: 20px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.info-full { margin-top: 15px; }
.info-item { background: rgba(255, 255, 255, 0.05); padding: 15px; border-radius: 12px; border: 1px solid rgba(74, 222, 128, 0.2); }
.info-label { color: #94a3b8; font-size: 14px; margin-bottom: 5px; }
.info-value { color: white; font-size: 16px; font-weight: 600; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
.stat-card { background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%); border: 1px solid rgba(74, 222, 128, 0.3); padding: 20px; border-radius: 15px; text-align: center; transition: all 0.3s ease; cursor: pointer; }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(74, 222, 128, 0.2); border-color: rgba(74, 222, 128, 0.5); }
.stat-number { font-size: 24px; font-weight: bold; color: #4ade80; margin-bottom: 5px; }
.stat-label { color: #94a3b8; font-size: 14px; }
.action-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 20px; }
.action-btn { background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%); border: none; padding: 15px 20px; border-radius: 15px; color: white; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 8px; }
.action-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(74, 222, 128, 0.4); }
.action-btn.secondary { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); }
.action-btn.secondary:hover { background: rgba(255, 255, 255, 0.15); box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1); }
.bank-account-section { margin-top: 20px; padding: 15px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; }
.profile-bank-card { display: flex; align-items: center; }
.profile-bank-logo { width: 60px; height: auto; margin-right: 15px; }
.profile-bank-details p { margin: 4px 0; }

#edit_avatar { cursor: pointer; border-radius: 50%;  transition: opacity 0.3s; }
#edit_avatar:hover { opacity: 0.7; }

@media (max-width: 600px) { .profile-header { padding: 15px; } .profile-content { padding: 15px; } .info-grid { grid-template-columns: 1fr; } .stats-grid { grid-template-columns: repeat(2, 1fr); } .profile-avatar { width: 80px; height: 80px; font-size: 32px; } .profile-name { font-size: 20px; } }
@media (max-width: 480px) { .action-buttons { grid-template-columns: 1fr; } .stats-grid { grid-template-columns: 1fr; } .back-btn { font-size: 12px; padding: 6px 10px; } }

/* Feature Cards */
.feature-section {margin-top: 25px; }
.feature-card { display: flex; align-items: center; gap: 15px; background: linear-gradient(135deg, rgba(30,42,58,0.8) 0%, rgba(45,74,62,0.8) 100%); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 20px; margin-bottom: 15px; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; }
.feature-card::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(74,222,128,0.1), transparent); transition: left 0.5s ease; }
.feature-card:hover::after { left: 100%; }
.feature-card:hover { transform: translateY(-5px); border-color: rgba(74,222,128,0.5); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.feature-icon { width: 50px; height: 50px; background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%); border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: white; box-shadow: 0 4px 15px rgba(74,222,128,0.3); flex-shrink: 0; position: relative; overflow: hidden; }
.feature-content h3 { font-size: clamp(16px, 4vw, 20px); font-weight: 700; margin-bottom: 5px; color: white; }
.feature-content p { font-size: clamp(12px, 3vw, 16px); color: #94a3b8; }

/* Admin Dashboard */
.dashboard { margin-top: 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; justify-items: center; }
.dashboard-header { background: linear-gradient(135deg, rgba(30,42,58,0.8) 0%, rgba(45,74,62,0.8) 100%); color: #fff; padding: 2rem 1.5rem; border-radius: 8px; text-align: center; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); margin-bottom: 10px;}
.dashboard-header h1 { font-size: 2.25rem; margin: 0 0 0.5rem; }
.dashboard-header p { font-size: 1.125rem; opacity: 0.85; margin: 0; }

.dashboard-card { position: relative;  display: inline-block; background: rgba(30,42,58,0.8); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 10px; width: 100%; text-align: center; cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: all 0.3s ease; }
.dashboard-card:hover { box-shadow: 0 12px 24px rgba(0,0,0,0.4); border-color: rgba(74,222,128,0.35); transform: translateY(-5px) scale(1.05); }
.dashboard-card .emoji { font-size: 2.75rem; margin-bottom: 0.5rem; }
.dashboard-card h3 { margin: 0.25rem 0; font-size: clamp(12px, 3vw, 16px); }
.dashboard-card .detail { color: #566377; font-size: clamp(10px, 3vw, 14px); }
.dashboard-card .amount { font-size: clamp(20px, 6vw, 20px); font-weight: bold; margin: 0.5rem 0; }
.dashboard-card .emoji-container {position: relative; display: inline-block; }
.notification-badge {  position: absolute;  top: 5px;  right: -5px;  background-color: red;  color: white;  font-size: 15px;  width: 25px; height: 25px; display: flex; justify-content: center; align-items: center; border-radius: 50%; font-weight: 700; z-index: 1;}

@media (max-width: 700px) { .dashboard { grid-template-columns: repeat(2, 1fr); } .dashboard-header h1 { font-size: 1.75rem; margin: 0 0 0.1rem; } .dashboard-header p { font-size: 1rem;  }}
@media (max-width: 340px) { .dashboard { grid-template-columns: 1fr; } .dashboard-header h1 { font-size: 1.25rem; margin: 0 0 0.1rem; } .dashboard-header p { font-size: 0.55rem;  }}

/* Arena Section */
.arena-section { display:flex; gap:1rem; justify-content:center; font-family:'Segoe UI',sans-serif; margin-bottom:20px; }
.arena-card { width:320px; border-radius:12px; overflow:hidden; box-shadow:0 5px 15px rgba(0,0,0,0.1); transition:all 0.3s ease; cursor:pointer; }
.arena-card:hover { transform:translateY(-2px); border-color:rgba(74,222,128,0.5); box-shadow:0 10px 30px rgba(0,0,0,0.3); }
.arena-image { position:relative; height:220px; background-size:cover; background-position:center; }
.arena-overlay { position:absolute; bottom:0; left:0; padding:1rem; background:linear-gradient(to top, rgba(0,0,0,0.7), transparent); width:100%; color:#fff; }
.arena-title { font-size:clamp(18px, 4vw, 18px); font-weight:700; white-space:nowrap; margin:0; color:#fff; }
.arena-sub { display:flex; align-items:center; gap:0.5rem; margin-top:0.3rem; }
.arena-description { font-size:0.85rem; margin:0; color:#ccc; }
.live-tag { background:red; color:white; font-size:0.7rem; font-weight:bold; padding:0.2rem 0.5rem; border-radius:4px; }
.live-tag.inactive { background:gray; }

/* Slots Section */
.slots-section { margin-top: 30px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: clamp(16px, 4vw, 20px); font-weight: 700; color: white; }
.section-title i { color: #4ade80; font-size: clamp(18px, 4vw, 22px); }
.view-all-btn { background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3); color: #4ade80; padding: 8px 16px; border-radius: 20px; font-size: clamp(10px, 2.5vw, 14px); font-weight: 600; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; position: relative; overflow: hidden; }
.view-all-btn:hover { background: rgba(74,222,128,0.2); transform: scale(1.05); }

/* Sabong Event Section */
iframe { position: absolute; top: 0; left: 0; bottom: 0; right: 0; width: 100%; height: 100%; border: none; }
iframe, video { position: absolute; top: 0; left: 0; bottom: 0; right: 0; width: 100%; height: 100%; border: none; }

.event-page {padding-bottom: 120px; }
.event-notice { font-size: 20px; background: #000; padding: 5px; font-weight: 700;  text-align: center;  overflow: hidden; white-space: nowrap; position: relative; }
.notice-warning { font-size: 20px; padding: 5px; display: inline-block; color: #ff8282;  padding-left: 100%; animation: scroll-left 12s linear infinite;}
.notice-message { font-size: 20px; padding: 5px 30px; background: #000; text-align: center; font-weight: 700; color: white; transform:scale(1);}

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

.iframe-container {   padding-top: 56.25%; }
.iframe-overlay-wrapper { position:fixed; top:0; left:0; width:100vw; height:100vh; overflow:hidden; z-index:-1; pointer-events:none; user-select:none; }
.iframe-overlay { width:100%; height:100%; transform:scale(1.2); transform-origin:center; filter:blur(2px) brightness(0.3); border:none; }
.media-container { position: relative; width: 100%; height: auto; overflow: hidden; background-color: #000;}
@media (max-width:699px) { .iframe-overlay { transform:scale(2); } }

.bet-section { position:relative; height:auto;  }
.bet-current { background: #f1c40f; padding: 8px; color: #222; font-weight: 500;  text-align: center; }
.bet-stats { position:relative; justify-content:space-between; align-items:center; overflow:hidden; }
.bet-overlay { position:absolute; background-image:url('../images/png/event_bg.png'); background-size:cover; background-position:center; background-repeat:no-repeat; backdrop-filter:blur(10px); width:100%; height: 230px; top:0; left:0; z-index:1; }
.bet-overlay::after { content:""; position:absolute; width:100%; height: 230px; background:linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,1) 100%); pointer-events:none; }
.bet-info { position: relative; z-index:2;  font-size: 22px; display: flex; width:100%; height:auto; margin: 10px 0px; justify-content: center; text-align: center; align-items: center; gap: 5px;   }
.bet-info .label { font-weight: bold; color: white; text-transform: uppercase; justify-content: center; text-align: center; align-items: center; text-shadow: 1px 1px 0 #000, 2px 2px 0 #444, 4px 4px 3px rgba(0,0,0,0.5); }
.bet-info .number { font-weight: bold;  display: flex; align-items: center; text-transform: uppercase;  font-size: 45px; text-shadow: 1px 1px 0 #000, 2px 2px 0 #444, 4px 4px 3px rgba(0,0,0,0.5); }
.bet-info .status  {padding: 5px 15px; border-radius: 20px; font-size: 20px; font-weight: 800; }
.bet-info .open { background: #53c74f; color: #c9ffc7; }
.bet-info .closed { background: #c82333; color: white; }
.bet-info .last_call { background: #d97706; color: white; animation: blinkWarning 0.5s infinite;}
.bet-info .standby { background: #3a3a3a; color: white; }
.bet-info .result { background: #c82333; color: white; }
.overlay-flipped {
  transform: scaleX(-1);
  transform-origin: center;
}

.bet-info .label,
.bet-info .status {
  display: flex;
  align-items: center;    
}

.bet-stats-text {
  top: 40%;
  position: absolute;
  width: 100%;
  text-align: center;
  font-size: 4rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  background-size: 200% auto;
  color: transparent;
  border-radius: 10px;
  padding: 10px;
  animation: none;
  opacity: 0;
}

.bet-stats-text.open{
  background: linear-gradient(90deg, #98FF98, #00C896, #98FF98);
  border: 4px solid #98FF98;
  box-shadow: 0 0 20px #00C896, 0 0 40px #98FF98;
   -webkit-background-clip: text;
  background-clip: text;
}

.bet-stats-text.last_call{
  background: linear-gradient(90deg, #FFD700, #FF4500, #FFD700);
  border: 4px solid #FFD700;
  box-shadow: 0 0 20px #FF4500, 0 0 40px #FFD700;
   -webkit-background-clip: text;
  background-clip: text;
}

.bet-stats-text.closed{
  background: linear-gradient(90deg, #FF4E50, #B22222, #FF4E50);
  border: 4px solid #FF4E50;
  box-shadow: 0 0 20px #B22222, 0 0 40px #FF4E50;
   -webkit-background-clip: text;
  background-clip: text;
}


@keyframes flashText {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  30% {
    opacity: 1;
    transform: scale(0.9);
  }
  60% {
    opacity: 1;
    transform: scale(0.7);
  }
  100% {
    opacity: 0;
    transform: scale(0.5);
  }
}

@keyframes shineText {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Blinking warning animation */
@keyframes blinkWarning {
 0%, 100% { background-color: rgba(0,0,0,0) }
  50% { background-color: #ff9900; }
}
 
.bet-summary { display:flex; position:relative; z-index:2; width:100%; height:250px; justify-content:space-between; }
.bet-draw { position: absolute; top: 150px; left:50%; transform:translateX(-50%); gap:1px; padding:10px; background:rgba(0,0,0,0.2); text-align:center; border-radius:20px; z-index:2; }
.bet-draw .amount { font-size:30px; font-weight:bold; color:white; text-transform:uppercase; text-shadow:1px 1px 0 #000, 2px 2px 0 #444, 4px 4px 3px rgba(0,0,0,0.5); }
.bet-draw .odds { font-size:13px; font-weight:bold; color:#98ebab; text-transform:uppercase; text-shadow:1px 1px 0 #000, 2px 2px 0 #444, 4px 4px 3px rgba(0,0,0,0.5); }

.bet-column { text-align: center;  flex: 1; /* Equal width */}
.bet-column .label { font-size: 28px; font-weight: bold; color: white; text-transform: uppercase;  text-shadow: 1px 1px 0 #000, 2px 2px 0 #444, 4px 4px 3px rgba(0,0,0,0.5);}
.bet-column .amount { font-size: 48px;  font-weight: bold; text-transform: uppercase; text-shadow: 1px 1px 0 #000, 2px 2px 0 #444, 4px 4px 3px rgba(0,0,0,0.5);}
.bet-column .odds { font-size: 20px;  font-weight: bold;  color: white; text-transform: uppercase; text-shadow: 1px 1px 0 #000, 2px 2px 0 #444, 4px 4px 3px rgba(0,0,0,0.5);}
.bet-column.meron .label { color: #ff8b8b}
.bet-column.wala .label { color: #69b1ff; }

.bet-column .amount.normal { color: white;}
.bet-column .amount.blink { color: #ff8800;}

@keyframes glitch {
  0% {
    color: #ff6a00;
    text-shadow: 0 0 2px #ff6a00, 0 0 4px #ff6a00;
  }
  25% {
    color: #ff3300;
    text-shadow: 0 0 4px #ff3300, 0 0 8px #ff3300;
  }
  50% {
    color: #ff0000;
    text-shadow: 0 0 6px #ff0000, 0 0 12px #ff0000;
  }
  75% {
    color: #ff3300;
    text-shadow: 0 0 4px #ff3300, 0 0 8px #ff3300;
  }
  100% {
    color: #ff6a00;
    text-shadow: 0 0 2px #ff6a00, 0 0 4px #ff6a00;
  }
}

.glitch-once {
  animation: glitch 0.3s ease-in-out;
}

.blur{
  filter: blur(5px);
}

.win-result {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 12px;
  width: auto;
  word-wrap: nowrap;
  white-space: nowrap;
}

.win-result.meron {
  opacity: 0;
  background: linear-gradient(135deg, #ff0040, #ff8000);
  box-shadow: 0 0 30px #ff0040;
  text-shadow: 0 0 10px #fff;
  animation: shimmer 3s ease-in-out forwards;
}

.win-result.wala {
  opacity: 0;
  background: linear-gradient(135deg, #0b22cf, #0db2db);
  box-shadow: 0 0 30px #0b22cf;
  text-shadow: 0 0 10px #fff;
  animation: shimmer 3s ease-in-out forwards;
}

.win-result.draw {
  opacity: 0;
  background: linear-gradient(135deg, #0c7208, #0ea809);
  box-shadow: 0 0 30px #0ab404;
  text-shadow: 0 0 10px #fff;
  animation: shimmer 3s ease-in-out forwards;
}

.win-result.cancelled {
  opacity: 0;
  background: linear-gradient(135deg, #5c2c09, #91450e);
  box-shadow: 0 0 30px #5c2c09;
  text-shadow: 0 0 10px #fff;
  animation: shimmer 3s ease-in-out forwards;
}

@keyframes shimmer {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}
 

.bet-buttons{ position: absolute; top: 230px; width: 100%; height: auto; justify-content:space-between; align-items:center; text-align: center; justify-content: center; padding-bottom: 20px;}
.bet-btn-overlay { position:absolute;  background-position:center; background-repeat:no-repeat; backdrop-filter:blur(10px); width:100%; height:100px; top:0; left:0; z-index:1; }
.bet-btn-overlay::after { content:""; position:absolute; width:100%; height:100px;  top:0; left:0;  background:linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 30%); pointer-events:none;}
.bet-btn-group { display: flex; position: relative; z-index: 2; padding-top: 5px; gap: 18px; margin: 0px 13px}
.bet-btn { flex: 1; padding: 15px 20px; border: none; border-radius: 10px; font-size: 18px; white-space: nowrap; font-weight: bolder; color: white; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; }
.bet-btn.meron { background: linear-gradient(135deg, #ed3535 0%, #b4201e 100%); color: white; box-shadow: 0 6px 18px rgba(222, 74, 74, 0.3); }
.bet-btn.meron:hover { transform: scale(1.05); box-shadow: 0 10px 24px rgba(222, 74, 74, 0.4); }
.bet-btn.draw { background: linear-gradient(135deg, #60f75c 0%, #3cc537 100%); color: white; box-shadow: 0 6px 18px rgba(128, 222, 74, 0.3); }
.bet-btn.draw:hover { transform: scale(1.05); box-shadow: 0 10px 24px rgba(128, 222, 74, 0.4); }
.bet-btn.wala { background: linear-gradient(135deg, #1d38fb 0%, #1c34dc 100%); color: white; box-shadow: 0 6px 18px rgba(74, 89, 222, 0.3); }
.bet-btn.wala:hover { transform: scale(1.05); box-shadow: 0 10px 24px rgba(74, 89, 222, 0.4); }

.bet-btn:disabled,
.bet-btn.disabled {
  background: linear-gradient(180deg, #383838 0%, #222222 100%) !important;   /* Force solid gray background */
  transform: scale(1.05); box-shadow: 0 10px 24px rgba(20, 20, 20, 0.4)  !important;
  color: #808080 !important;        /* Force gray text */
  opacity: 1 !important;         /* Ensure full visibility */
  cursor: not-allowed;
  pointer-events: none;
}

.trends-section {padding:5px;}
.trends-summary {display: flex; gap:10px; padding:5px; margin-bottom: 5px; text-align:center; align-items:center; justify-content:center; width: 100%;  }
.trends-title {text-align: center; margin-bottom: 10px; font-weight: 700; background: none;}
.trends-card {position: relative; display:flex;  align-items:center; padding:6px 40px 6px 10px;  width:fit-content; box-shadow:0 4px 10px rgba(0,0,0,0.3); }
.trends-card.meron { background:#be2422; }
.trends-card.wala { background:#1c35e7; }
.trends-card.draw { background:#034901; }
.trends-card.cancelled { background:#5c2c09; }
.trends-card .label { color:white; font-size:13px; font-weight:800; margin-right:20px; text-transform:uppercase; }
.trends-card .score-box { position:absolute; right:1px; top:50%; transform:translateY(-50%); background:#202e3b; color:#FFF; font-size:13px; font-weight:800; padding:5px 10px; }

.chips-overlay { position:fixed; top:0; left:0; width:100vw; height:100vh; backdrop-filter:blur(10px); background:rgba(0,0,0,0.6); z-index:999; display:flex; justify-content:center; align-items:center; touch-action:manipulation; }
.hidden { display:none; }
.exit { animation:floatDown 0.3s ease forwards; }
.chips-popup { border-radius:12px; padding:20px; width:600px; animation:floatUp 0.3s ease-out; text-align:center; touch-action:manipulation; }
.chips-popup .label { font-weight:600; margin:10px 0; }
.chips-group { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-bottom:10px; touch-action:manipulation; }
.chips { width:100px; appearance:none; color:#fff; border:none; cursor:pointer; position:relative; transition:all 0.3s ease, transform ease-in 0.1s; -webkit-user-drag:none; -moz-user-drag:none; -ms-user-drag:none; user-drag:none; }
.chips:hover { transform:translateY(-10px) scale(1.05); }
.chips:active, .chips.pressed { transform:scale(1.2); }
.chips-button { flex-wrap:wrap; justify-content:center; gap:10px; }
.chips-button button { width:130px; }
.chips-input { width:50%; padding:8px; border-radius:12px; border:1px solid rgba(255,255,255,0.1); font-size:50px; color:white; text-align:center; background:rgba(0,0,0,0.1); }
.chips-input.error { border:2px solid #c52222ff; box-shadow:0 0 0 3px rgba(222,74,74,0.1); animation:shake 0.3s ease-in-out; background:rgba(255,125,125,0.1); }
.chips-input:focus { outline:none; background:rgba(0,0,0,0.1); border-color:#4ade80; box-shadow:0 0 0 3px rgba(74,222,128,0.1); }
@keyframes shake { 0%{transform:translateX(0);} 25%{transform:translateX(-5px);} 50%{transform:translateX(5px);} 75%{transform:translateX(-5px);} 100%{transform:translateX(0);} }
@keyframes floatUp { from{transform:translateY(80px); opacity:0;} to{transform:translateY(0); opacity:1;} }
@keyframes floatDown { 0%{transform:translateY(0); opacity:1;} 100%{transform:translateY(30px); opacity:0;} }
@media (max-width:530px) {
  .chips { width:19vw; }
  .chips-input { width:80%; }
  .chips-popup { width:100%; padding:15px; }
  .chips-button { flex-direction:column; gap:0; }
  .chips-button > button { margin-bottom:5px; }
  .chips-button button { width:auto; flex:1; }
}

.trend-group {width: 100%; } 
.trend-table { background: rgba(255, 255, 255, .05); width: auto; border-collapse: collapse; table-layout: auto; display: block; overflow-x: auto; overflow-y: hidden; white-space: nowrap; }
.trend-table td { border: 1px solid #202e3b; background: #1d1d1d; padding: 5px; white-space: nowrap; }
.trend { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;  background: rgba(0, 0, 0, .65); background-blend-mode: darken; }
.trend.meron { background: linear-gradient(135deg, #ed3535 0%, #b4201e 100%); color: white; }
.trend.wala { background: linear-gradient(135deg, #1c37f8 0%, #1c34dc 100%); color: white; }
.trend.cancelled { background: linear-gradient(135deg, #69330d 0%, #5c2c09 100%); color: white; }
.trend.draw { background: linear-gradient(135deg, #055f01 0%, #034901 100%); color: white; }
.trend.none { width: 12px; height: 12px; border-radius: 5px; background-color: #151618; }
.trend_no_result { width: 100%; height: 100px; display: flex; align-items: center; text-align: center; justify-content: center; }
.trend img { width: 25px; height: 25px; }

.legal-footer { max-width:100%; margin:10px auto; padding:20px; border-radius:8px; }
.legal-footer .logo { display:block; margin:0 auto 10px; width:80%; }
.legal-footer h2 { text-align:center; margin-bottom:12px; }
.legal-footer p { font-size:0.95rem; line-height:1.6; margin-bottom:12px; }

@media (max-width:600px) {
  .legal-footer { padding:15px; }
  .legal-footer h2 { font-size:1.2rem; }
  .legal-footer p { font-size:0.9rem; }
}

/* @media (max-width: 388px) { .container { padding: 20px; margin: 10px; } .betting-stats { grid-template-columns: 1fr; gap: 15px; text-align: center; } .separator { order: -1; } .betting-buttons { grid-template-columns: 1fr; gap: 10px; } .balance-section { flex-direction: column; gap: 15px; } .results-summary { grid-template-columns: repeat(2, 1fr); } .result-number { width: 35px; height: 35px; font-size: 12px; } } */
@media (max-width: 700px) {  
  .bet-overlay { height: 39vw;  } 
  .bet-overlay::after {  height: 39vw; }
  .bet-current {padding: 5px; font-size: 13px; } 
  .bet-info { height: 7vw; font-size: 3.9vw;} 
  .total-bet {  font-size: 2.5vw;}
  .bet-summary { height: 42vw; }  
  .bet-info .status{ font-size: 3.9vw;} 
  .bet-info .number { font-size: 6.9vw; }
  .bet-column .label{ font-size: 4.9vw;} 
  .bet-column .amount {  font-size: 7.8vw; } 
  .bet-column .odds { font-size: 3.8vw; } 
  .bet-draw { top:  25vw;}
  .bet-draw .amount { font-size: 5.2vw; } 
  .bet-draw .odds { font-size: 2vw; } 
  .bet-buttons{  top: 39vw; }
  .bet-btn-group {gap: 15px; } 
  .bet-btn { font-size: 2.7vw; font-weight: 800; padding: 20px 10px;  } 
  .trends-title {font-size: 13px; }  
  .trends-card { padding:6px 25px 6px 10px; }  
  .trends-card .label {font-size: 2.2vw;} 
  .trends-card .score-box {font-size: 2.2vw;} 
  .event-notice { font-size: 3vw; }
  .notice-warning { font-size: 3vw; }
  .notice-message { font-size: 3vw; }
  .bet-stats-text { font-size: 7vw; }
  .win-result { font-size: 7vw; }
}

@media (max-width: 499px) {
  .trends-summary { width: 100%; gap: 6px;} 
  .trends-card { padding:6px 16px 6px 5px; } 
  .bet-btn-group {gap: 10px; } 
  .bet-btn { font-size: 3.7vw; padding: 15px 7px; } 
}


/* Overlay background */
.result-body {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeInUp 0.6s ease;
}

/* Popup content (floating, no box look) */
.result-content {
  position: relative;
  text-align: center;
  background: transparent; /* no box */
  font-family: 'Segoe UI', sans-serif;

}

/* Icon at top center */
.result-icon {
  animation: bounce 1.5s infinite;
}
 
/* Title */
.result-title {
  font-size: 32px;
  font-weight: bold;
  margin: 0;
  color: #fff;
}
.result-title.primary{text-shadow: 0 0 10px #22c55e;}
.result-title.danger{text-shadow: 0 0 10px #ef4444;}

/* Small description */
.result-description {
  font-size: 18px;
  margin: 6px 0;
  color: #ccc;
}

.result-amount {
  font-size: 70px;
  font-weight: bold;
  margin: 12px 0;
}

.result-amount.primary {
  color: #4ade80;
  text-shadow: 0 0 18px #22c55e, 0 0 28px rgba(74,222,128,0.4);
  animation: glowPrimary 1.5s infinite alternate;
}
.result-amount.danger {
  color: #ef4444;
  text-shadow: 0 0 18px #dc2626, 0 0 28px rgba(239,68,68,0.4);
  animation: glowDanger 1.5s infinite alternate;
}

@keyframes glowPrimary {
  from { text-shadow: 0 0 10px #4ade80; }
  to { text-shadow: 0 0 50px #22c55e; }
}

@keyframes glowDanger {
  from { text-shadow: 0 0 10px #ef4444; }
  to { text-shadow: 0 0 50px #dc2626; }
}

/* Canvas behind the amount */
#result-canvas {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(255,215,0,0.6));
}
 
 
/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

#jackpot-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: transparent;
  visibility: visible; /* never use display:none */
}

/* Games Grid */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; max-width: 100%; }
.game-card { background: linear-gradient(135deg, rgba(30,42,58,0.9) 0%, rgba(45,74,62,0.9) 100%); border-radius: 20px; padding: 20px; text-align: center; cursor: pointer; transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.1); position: relative; overflow: hidden; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.game-card::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(from 0deg, transparent, rgba(74,222,128,0.1), transparent); animation: rotate 4s linear infinite; opacity: 0; transition: opacity 0.3s ease; }
.game-card:hover::after { opacity: 1; }
.game-card:hover { transform: translateY(-10px) scale(1.05); box-shadow: 0 15px 40px rgba(0,0,0,0.4); border-color: rgba(74,222,128,0.5); }
.game-image { width: clamp(60px, 15vw, 80px); height: clamp(60px, 15vw, 80px); margin: 0 auto 15px; border-radius: 15px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.game-character { width: clamp(45px, 12vw, 60px); height: clamp(45px, 12vw, 60px); border-radius: 10px; position: relative; overflow: hidden; }
.viking { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.santa { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.pug { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.frog { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.game-character::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; background: rgba(255,255,255,0.3); border-radius: 50%; }
.game-title { display: flex; flex-direction: column; font-size: clamp(12px, 3vw, 16px); font-weight: 700; color: white; position: relative; z-index: 1; }
.game-title span:first-child { color: #4ade80; }
@keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Deposit and Withdrawal Styles */
.balance-card { background: linear-gradient(135deg, rgba(30, 42, 58, 0.8) 0%, rgba(45, 74, 62, 0.8) 100%); border-radius: 20px; padding: 20px; margin-bottom: 25px; border: 1px solid rgba(74, 222, 128, 0.3); }
.balance-label { font-size: 14px; color: #94a3b8; margin-bottom: 5px; }
.balance-amount { font-size: clamp(24px, 6vw, 32px); font-weight: bold; color: #4ade80; }
.section-title { font-size: clamp(16px, 4vw, 20px); font-weight: bold; margin-bottom: 15px; color: white; }
.amount-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 12px; margin-bottom: 25px; }
.amount-btn { background: rgba(30, 42, 58, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); color: white; padding: 15px; border-radius: 12px; font-size: clamp(14px, 3vw, 18px); font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.amount-btn.deposit:hover, .amount-btn.deposit.selected { background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%); border-color: #4ade80; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(74, 222, 128, 0.3); }
.amount-btn.withdraw:hover, .amount-btn.withdraw.selected { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); border-color: #ef4444; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(239,68,68,0.3); }
.custom-amount { margin-bottom: 25px; }
.amount-input { width: 100%; background: rgba(30, 42, 58, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); color: white; padding: 15px; border-radius: 12px; font-size: 16px; margin-top: 10px; }
.amount-input.deposit:focus { outline: none; border-color: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1); }
.amount-input.withdraw:focus { outline: none; border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: clamp(14px, 3vw, 16px); }
.summary-row.deposit:last-child { margin-bottom: 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-weight: bold; color: #4ade80; }

/* Deposit Styles */
.bank-options{display:flex;  flex-wrap:wrap;gap:10px;margin-bottom:15px}
.bank-card{width:90px;display:flex;flex-direction:column;align-items:center;gap:2px;cursor:pointer;transition:all 0.3s ease;color:#94a3b8;font-size:clamp(10px,2.5vw,14px);font-weight:600;position:relative;text-align:center;padding:8px;border-radius:12px;overflow:hidden}
.bank-card:hover{color:#4ade80;transform:translateY(-2px);background:rgba(74,222,128,0.1);box-shadow:0 6px 16px rgba(0,0,0,0.3)}
.bank-card.selected{color:#4ade80;background:rgba(74,222,128,0.1);box-shadow:0 0 0 1px rgba(74,222,128,0.4)}
.bank-card img{max-height:60px;margin-bottom:8px;border-radius:10px}
.bank-info-box{background:linear-gradient(135deg,rgba(30,42,58,0.8) 0%,rgba(45,74,62,0.8) 100%);border-radius:10px;border:1px solid rgba(74,222,128,0.3);padding:20px;width:100%;margin:30px auto;box-shadow:0 0 10px rgba(0,0,0,0.1);font-family:'Segoe UI',sans-serif;text-align:center;align-items:center;opacity:0;transform:translateY(20px);transition:opacity 0.4s ease,transform 0.4s ease;display:none}
.bank-info-box.show{display:block;opacity:1;transform:translateY(0)}
.bank-info-details{text-align:center;max-width:360px;margin-left:auto;margin-right:auto;align-items:center}
.bank-info-box h4{font-size:clamp(18px,4vw,28px);font-weight:bold;color:#4ade80;margin-bottom:10px}
.info-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px;padding:10px 15px;border:1px dashed rgba(74,222,128,0.3)}
.info-row-details{font-weight:900;color:#4ade80}
.info-row p{margin:0;font-size:15px}
.copy-btn{background-color:#4ade80;color:#0f172a;font-weight:700;border:none;padding:6px 12px;border-radius:6px;font-size:13px;cursor:pointer;transition:background-color 0.3s ease}
.copy-btn:hover{background-color:#22c55e}
.bank-image-qr{width:auto;margin-left:auto;margin-right:auto;text-align:center}
.bank-image-qr img{max-width:220px;border-radius:8px;box-shadow:0 0 10px rgba(0,0,0,0.3)}
.qr-image{max-width:100%;border-radius:6px;box-shadow:0 0 6px rgba(0,0,0,0.2)}

.payment-methods { margin-bottom: 25px; }
.payment-method { display: flex; align-items: center; background: rgba(30, 42, 58, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 15px; margin-bottom: 12px; cursor: pointer; transition: all 0.3s ease; }
.payment-method:hover, .payment-method.selected { border-color: #4ade80; background: rgba(74, 222, 128, 0.1); }
.payment-method.disabled { border-color: #252525; pointer-events: none; opacity: 0.2;  background-color: #5f5f5f; }
.payment-icon { width: 40px; height: 40px; background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-right: 15px; font-size: 18px; color: white; flex-shrink: 0; }
.payment-info h4 { font-size: clamp(14px, 3vw, 18px); font-weight: 600; margin-bottom: 3px; }
.payment-info p { font-size: clamp(11px, 2.5vw, 14px); color: #94a3b8; }
.deposit-summary { background: rgba(30, 42, 58, 0.8); border-radius: 15px; padding: 20px; margin-bottom: 25px; border: 1px solid rgba(255, 255, 255, 0.1); }
.deposit-btn { width: 100%; background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%); border: none; color: white; padding: 18px; border-radius: 15px; font-size: clamp(16px, 4vw, 20px); font-weight: bold; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 8px 25px rgba(74, 222, 128, 0.3); margin-bottom: 25px; }
.deposit-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(74, 222, 128, 0.4); }
.deposit-btn:disabled {  background: rgba(56, 255, 30, 0.2); opacity: 0.2; color: #818181; box-shadow:none; cursor: not-allowed; transform: none; }
.receipt-upload { margin-bottom: 25px; }
.upload-area { border: 2px dashed rgba(74, 222, 128, 0.3); border-radius: 15px; padding: 40px 20px; text-align: center; background: rgba(30, 42, 58, 0.6); transition: all 0.3s ease; cursor: pointer; position: relative; overflow: hidden; }
.upload-area:hover, .upload-area.drag-over { border-color: #4ade80; background: rgba(74, 222, 128, 0.1); transform: translateY(-2px); }
.upload-area.has-file { border-color: #4ade80; background: rgba(74, 222, 128, 0.1); }
.upload-icon { font-size: 48px; color: #4ade80; margin-bottom: 15px; transition: all 0.3s ease; }
.upload-area:hover .upload-icon { transform: scale(1.1); }
.upload-text { font-size: clamp(16px, 4vw, 18px); font-weight: 600; color: white; margin-bottom: 8px; }
.upload-subtext { font-size: clamp(12px, 3vw, 14px); color: #94a3b8; margin-bottom: 15px; }
.upload-formats { font-size: clamp(10px, 2.5vw, 12px); color: #6b7280; }
.file-input { display: none; }
.uploaded-file { display: none; align-items: center; gap: 15px; background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.3); border-radius: 12px; padding: 15px; margin-top: 15px; }
.uploaded-file.show { display: flex; }
.file-preview { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.file-info { flex: 1; }
.file-name { font-size: clamp(14px, 3vw, 16px); font-weight: 600; color: white; margin-bottom: 5px; word-break: break-all; }
.file-size { font-size: clamp(12px, 2.5vw, 14px); color: #94a3b8; }
.remove-file { background: rgba(255, 16, 16, 0.2); border: 1px solid rgba(255, 16, 16, 0.3); color: #ffa4a4; border-radius: 8px; padding: 8px 12px; cursor: pointer; transition: all 0.3s ease; font-size: 12px; }
.remove-file:hover { background: rgba(239, 68, 68, 0.3); }
.recent-deposits { margin-top: 30px;  }
.deposit-item { display: flex; justify-content: space-between; align-items: center; background: rgba(30, 42, 58, 0.6); border-radius: 12px; padding: 15px; margin-bottom: 10px; transition:all 0.25s ease; overflow: hidden;}
.deposit-date { font-size: clamp(11px, 2.5vw, 13px); color: #94a3b8; }
.deposit-amount-item { font-weight: 600; color: #4ade80; font-size: clamp(14px, 3vw, 16px); }

@media (max-width: 600px) {
    .amount-grid { grid-template-columns: repeat(3, 1fr); } .upload-area { padding: 30px 15px; } .upload-icon { font-size: 40px; } 
}
@media (max-width: 480px) { 
    .balance-card { padding: 12px;} .amount-grid { grid-template-columns: repeat(2, 1fr); } .payment-method { padding: 12px; } .payment-icon { width: 35px; height: 35px; font-size: 16px; } 
}

/* Withdrawal Styles */
.withdrawal-methods { margin-bottom: 25px; }
.withdrawal-method { display: flex; align-items: center; background: rgba(30,42,58,0.8); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 15px; margin-bottom: 12px; cursor: pointer; transition: all 0.3s ease; }
.withdrawal-method:hover, .withdrawal-method.selected { border-color: #ef4444; background: rgba(239,68,68,0.1); }
.method-icon { width: 40px; height: 40px; background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-right: 15px; font-size: 18px; color: white; flex-shrink: 0; }
.method-icon img{max-width:40px; height: auto;border-radius:10px}
.method-info { flex: 1; }
.method-info h4 { font-size: clamp(14px, 3vw, 16px); font-weight: 600; margin: 0 0 3px 0; }
.method-info p { font-size: clamp(11px, 2.5vw, 12px); color: #94a3b8; margin: 0; font-weight: 800; }
.withdrawal-summary { background: rgba(30,42,58,0.8); border-radius: 15px; padding: 20px; margin-bottom: 25px; border: 1px solid rgba(255,255,255,0.1); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: clamp(13px, 3vw, 14px); }
.summary-row.withdraw:last-child { margin-bottom: 0; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.1); font-weight: bold; color: #ef4444; }
.withdrawal-btn { width: 100%; background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); border: none; color: white; padding: 18px; border-radius: 15px; font-size: clamp(16px, 4vw, 18px); font-weight: bold; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 8px 25px rgba(239,68,68,0.3); }
.withdrawal-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(239,68,68,0.4); }
.withdrawal-btn:disabled { background: rgba(255, 30, 30, 0.2); opacity: 0.2; color: #818181; box-shadow:none; cursor: not-allowed; transform: none; }
.recent-withdrawals { margin-top: 30px; }
.withdrawal-item { display: flex; justify-content: space-between; align-items: center; background: rgba(30,42,58,0.6); border-radius: 12px; padding: 15px; margin-bottom: 10px; }
.withdrawal-date { font-size: clamp(11px, 2.5vw, 12px); color: #94a3b8; }
.withdrawal-amount-item { font-weight: 600; color: #ef4444; font-size: clamp(13px, 3vw, 14px); }
.warning-message { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); border-radius: 12px; padding: 15px; margin-bottom: 20px; color: #fca5a5; font-size: clamp(12px, 3vw, 14px); }

@media (max-width: 768px) {
    .withdrawal-summary { padding: 15px; margin-bottom: 20px; }
    .withdrawal-method { padding: 12px; }
    .method-icon { width: 35px; height: 35px; font-size: 16px; margin-right: 12px; }
}

@media (max-width: 480px) {
    .withdrawal-summary { padding: 12px; margin-bottom: 15px; }
    .withdrawal-method { padding: 10px; margin-bottom: 8px; }
    .method-icon { width: 30px; height: 30px; font-size: 14px; margin-right: 10px; }
    .withdrawal-btn { padding: 15px; }
}

/* Bottom Navigation */
.bottom-nav { position: fixed; bottom: 0; left: 50%; gap:5px; transform: translateX(-50%); width: 100%; max-width: 700px; background: rgba(30,42,58,0.95); backdrop-filter: blur(20px); border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-around; padding: 15px 20px; z-index: 100; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; transition: all 0.3s ease; color: #94a3b8; font-size: clamp(10px, 2.5vw, 14px); font-weight: 600; position: relative; flex: 1; text-align: center; padding: 8px; border-radius: 15px; overflow: hidden; }
.nav-item:hover { color: #4ade80; transform: translateY(-2px); background: rgba(74,222,128,0.1); }
.nav-item.active { color: #4ade80; background: rgba(74,222,128,0.1); }
.nav-item i { font-size: clamp(16px, 4vw, 22px); transition: all 0.3s ease; }
.nav-home-btn { width: 40px; height: 40px; background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; box-shadow: 0 4px 15px rgba(74,222,128,0.4); position: relative; overflow: hidden; }
.nav-item.active .nav-home-btn { transform: scale(1.1); }

/* Report Section */
.page-table { display: grid; gap: 10px; } 
.report-tabs { display: flex; gap: 10px; margin-bottom: 15px; }
.tab-btn { flex: 1; background: rgba(30,42,58,0.8); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 10px; border-radius: 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.tab-btn.active { background: rgba(74,222,128,0.1); border-color: rgba(74,222,128,0.4); color: #4ade80; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.status.approved { color: #4ade80; font-weight: 700; }
.status.rejected { color: #ef4444; font-weight: 700; }
.action-btns {  display: flex;   flex-direction: column; gap: 8px;}

/* Report tab row */
.request-info { display:flex; flex-direction:column; line-height:1.2; }
.request-info .account-id { font-size:1.1rem; }
.request-info .account-name { font-size:1.1rem; font-weight:700; }

.report-tab-row.compact { display:flex; align-items:center; padding:14px 16px; background:rgba(30,42,58,0.6); border:1px solid rgba(255,255,255,0.08); border-radius:12px; transition:all 0.25s ease; gap:1em; font-weight:500; }
.report-tab-row:hover { border-color:rgba(74,222,128,0.35); transform:translateY(-2px); box-shadow:0 8px 20px rgba(0,0,0,0.25); }
.report-tab-row.compact .profile-thumb { flex:none; width:3rem; height:3rem; margin-right:0.75rem; border-radius:50%; object-fit:cover; }
.report-tab-row.compact .ref-no { display:block; font-size:1rem; color:#777777; margin-top:0.2em; line-height:1.2; }
.report-tab-row.compact .amount { flex:1; font-size:1.4rem; font-weight:700; text-align:right; }
.report-tab-row.compact .date-time { display:flex; flex-direction:column; text-align:right; white-space:nowrap; }
.report-tab-row.compact .date-time .date { font-size:1rem; color:#aaa;}
.report-tab-row.compact .date-time .time { font-size:1rem; color:#777; margin-top:0.1em; }

@media (max-width: 600px) {
  .request-info{flex-direction:row;justify-content:space-between;text-align:center;align-items:center;}
  .request-info .ref-no{font-size:1rem;}
  .request-info .account-id{font-size:1.1rem;}
  .request-info .account-name{font-size:1.1rem; font-weight:700;text-align:center;align-items:center;}

  .report-tab-row.compact{flex-direction:column;align-items:stretch;padding:0.75em;gap:0.5em;}
  .report-tab-row.compact .profile-thumb{width:5rem;height:5rem;margin-bottom:0.5rem;align-self:center;}
  .report-tab-row.compact .amount{font-size:1.8rem;font-weight:700;text-align:left;}
  .report-tab-row.compact .date-time{flex-direction:row;gap:0.5em;text-align:left;}
  .action-btns  {  display: flex;  flex-direction:row;  justify-content: center; margin-top: 10px; gap: 10px; }
  .action-btns button { flex: 1; max-width: 140px; }
}

/* date reporting */
.date-query {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;   /* Vertically center items */
  gap: 10px;             /* Even spacing between elements */
  flex-wrap: wrap;       /* Allow wrapping on smaller screens */
  margin-bottom: 10px;
}

/* Form group to stack label above input */
.date-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.date-group label {
  font-size:15px;
  font-weight:700;
  color:#e0e0e0;
}

/* Inputs */
.date-query input[type="date"] {
  font-weight:600;
  color: #04070e;
  padding: 8px 10px;
  border-radius: 4px;
  background-color: white;
}

/* Button */
.date-filter-btn {
   font-size:15px;
  font-weight:700;
  margin-top: 7px;
  align-self:last baseline ;
}

/* Table wrapper for horizontal scroll on small screens */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Table */
.report-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  table-layout: auto;
}

.report-table th {
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  padding: 10px;
  text-align: center;
  white-space: nowrap;
  font-size:13px;
  font-weight:600;
  color: #04070e;
  
}

.report-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(74,222,128,0.1);
  white-space: nowrap;
  font-size:13px;
  font-weight:400;
  color:#e0e0e0;
  cursor: pointer;
}

.report-table td.amount {
  font-size:14px;
  font-weight:600;
  text-align: right;
}

.report-table td span { padding: 2px 10px; border-radius: 4px; }
.report-table td span.positive { background: #22c55e; color: #064d23;}
.report-table td span.negative { background: #ff8b8b; color: #360707;}
.report-table td span.draw { background: #f1c40f;  color: #3a341a;}
.report-table td span.cancelled { background: #5c2c09;}

.report-table td.positive {
  color:#22c55e;
}

.report-table td.negative {
  color:#ff5252;
}

.report-table td.draw {
  background: #0c7208;
}
 
.report-table td.cancelled {
  background: #5c2c09;
}

.report-table td.center {
  text-align: center;
}

.report-table td.right {
  text-align: right;
}
.report-table tr:hover {
   background-color: rgba(255,255,255,0.1);
}

.report-table tr.end {
   background-color: rgba(46, 255, 56,0.1);
}
@media (max-width: 450px) {
  .date-query {
    grid-template-columns: 1fr 1fr;  
  }
  .date-filter-btn {
    grid-column: 1 / -1; 
    width: 100%;
    margin-top: 0px;
  }
  
  .report-table th,
  .report-table td {
    font-size: 13px;
  }
  .report-table td.amount {
    font-size: 13px;
    font-weight:400;
  }

  .wrap-date td:nth-child(3),
  .wrap-date th:nth-child(3) {
    white-space: normal;     /* allow wrapping */ 
    width: 150px;        /* optional: control width */
  }
  
   /* Hide column 2 */
  .wrap-date td:nth-child(2),
  .wrap-date th:nth-child(2) {
    display: none;
  }

  /* Make column 1 show both date + time */
  .wrap-date td:nth-child(1) {
    display: flex;
    flex-direction: column;
  }

  /* Optional: style the time text */
  .wrap-date td:nth-child(1)::after {
    content: attr(data-time);
    font-size: 12px;
    opacity: 0.7;
    margin-top: 2px;
  }
}


/* Menu Item Ripple Effects */
.menu-item-ripple { position: relative; overflow: hidden; transition: all 0.3s ease; }
.menu-item-ripple:hover { background: rgba(74,222,128,0.1); transform: translateX(5px); }

/* Ripple Animation Keyframes */
.ripple-animation { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.3); animation: ripple-effect 0.6s linear; pointer-events: none; z-index: 10; }
@keyframes ripple-effect { 0% { transform: translate(-50%, -50%) scale(0); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(4); opacity: 0; } }

/* Home Slider  */
.slider-container { width: 100%; max-width: 100%; position: relative; overflow: hidden; margin-bottom: 20px; }
.slider-wrapper { position: relative; display: flex; align-items: center; }
.slider { display: flex; transition: transform 0.5s ease; cursor: grab; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.slide { min-width: 100%; box-sizing: border-box; }
.slide img { width: 100%; height: auto; display: block; -webkit-user-drag: none; -moz-user-drag: none; -ms-user-drag: none; user-drag: none; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0,0,0,0); color: #fff; border: none; font-size: 24px; padding: 10px; cursor: pointer; z-index: 10; border-radius: 50%; }
.slider-arrow.prev { left: 10px; }
.slider-arrow.next { right: 10px; }
.slider-nav { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.nav-dot { width: 12px; height: 12px; background-color: #ccc; border-radius: 50%; cursor: pointer; transition: background-color 0.3s ease; }
.nav-dot.active { background-color: #ffcc00; }

/* Promotion Section  */
.promotion-section { display: grid;  grid-template-columns: 1fr;  gap: 20px;  width: 100%;  max-width: 1200px;  margin: 0 auto;  margin-bottom: 10px; }
.promotion-card { display: flex; flex-direction: column; background: linear-gradient(135deg, rgba(30,42,58,0.8) 0%, rgba(45,74,62,0.8) 100%); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; cursor: pointer; transition: all 0.3s ease; overflow: hidden; }
.promotion-card::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(74,222,128,0.1), transparent); transition: left 0.5s ease; }
.promotion-card:hover::after { left: 100%; }
.promotion-card:hover { transform: translateY(-2px); border-color: rgba(74,222,128,0.5); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

.promo-image-wrapper { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.promo-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-details { padding: 20px; }
.promo-title { font-size: 24px; color: #ffcc00; margin-bottom: 10px; }
.promo-description { font-size: 16px; line-height: 1.5; margin-bottom: 20px; }
.promo-buttons { display: flex; gap: 10px; }

@media (min-width: 570px) and (max-width: 767px) {
  .promotion-section { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .promotion-section { display: flex; flex-direction: column;}
  .promotion-card { flex-direction: row; }
  .promo-image-wrapper { width: 50%; }
  .promo-details { width: 50%; }
}

/* Dialog Styles */
.dialog { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(15px); opacity: 0; visibility: hidden; transition: height 0.3s ease;}
.dialog.active { opacity: 1; visibility: visible; }
.dialog-body { background: linear-gradient(135deg, rgba(30,42,58,0.95) 0%, rgba(45,74,62,0.95) 100%); border: 2px solid rgba(74,222,128,0.3); backdrop-filter: blur(20px); border-radius: 25px; padding: 30px; max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 60px rgba(0,0,0,0.6); transform: scale(0.8) translateY(50px); transition: all 0.3s cubic-bezier(0.68,-0.55,0.265,1.55); position: relative; overflow-y: scroll; scrollbar-width: none; -ms-overflow-style: none; }
.dialog-trans { border: none; backdrop-filter: blur(10px);  border-radius: 25px; max-width:450px; width: 90%; max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 60px rgba(0,0,0,0.6); transform: scale(0.8) translateY(50px); transition: all 0.3s cubic-bezier(0.68,-0.55,0.265,1.55); position: relative; overflow-y: scroll; scrollbar-width: none; -ms-overflow-style: none; }
.dialog.active .dialog-body { transform: scale(1) translateY(0); }
.dialog.active .dialog-trans { transform: scale(1) translateY(0); }
.dialog-body::-webkit-scrollbar { display: none; }
.dialog-image{  width:100%; height:auto; }

.dialog-details {text-align: center; align-items: center; justify-content: center;}
.dialog-center {display: flex; padding: 10px; justify-content: center;  align-items: center; /* Optional: for vertical centering */}
.dialog-icon {  max-width: 30%;  height: auto;}
.dialog-amount { font-size: clamp(35px, 8vw, 35px); font-weight: bold;}
 
.dialog-close { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; transition: all 0.3s ease; z-index: 10; }
.dialog-close:hover { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.5); color: #ef4444; transform: scale(1.1); }
.dialog-header { text-align: center;}
.dialog-title { color: white; font-size: 18px; font-weight: 600; }
.dialog-logo { font-size: 28px; font-weight: bold; margin-bottom: 10px; }
.dialog-logo .power { color: #4ade80; }
.dialog-logo .bet { color: white; }
.dialog-subtitle { font-size: clamp(23px, 8vw, 26px); margin-bottom: 10px; font-weight: 700; }
.dialog-message { color: white;  font-size: clamp(16px, 4vw, 18px); font-weight: 600; }
.dialog-tabs { display: flex; white-space:nowrap; gap: 5px; background: rgba(255,255,255,0.05); border-radius: 15px; padding: 5px; margin-bottom: 15px; border: 1px solid rgba(255,255,255,0.1); }
.dialog-tab { flex: 1; padding: 10px 10px; text-align: center; border-radius: 12px; cursor: pointer; transition: all 0.3s ease; color: #94a3b8; font-size: clamp(15px, 4vw, 15px); font-weight: 700; position: relative; overflow: hidden; }
.dialog-tab.active { background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%); color: white; box-shadow: 0 4px 15px rgba(74,222,128,0.3); }
.dialog-tab:not(.active):hover { background: rgba(74,222,128,0.1); color: #4ade80; }
.dialog-form { display: none; opacity: 0; transition: opacity 0.3s ease }
.dialog-form.active { display: block; opacity: 1; }

/* Forms */
.form-group { margin-bottom: 20px; position: relative; }
.form-group .center { margin-bottom: 20px; text-align: center; justify-content: center; }
.form-label { display: block; color: white; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-input { width: 100%; padding: 15px 20px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; color: white; font-size: 16px; transition: all 0.3s ease; box-sizing: border-box; }
.form-input:focus { outline: none; border-color: #4ade80; background: rgba(74,222,128,0.05); box-shadow: 0 0 0 3px rgba(74,222,128,0.1); }
.form-input::placeholder { color: #94a3b8; }
.form-label-center { display: block; color: #94a3b8; font-size: 14px; font-weight: 600; margin-top: 8px; margin-bottom: 8px; }

.input-group { position: relative; }

/* Dialog Alert */
.dialog-alert { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 3000; backdrop-filter: blur(15px); opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.dialog-alert.active { opacity: 1; visibility: visible; }
.dialog-alert-body {  background: rgba(0,0,0,0.1);  backdrop-filter: blur(20px); border-radius: 25px; padding: 30px; max-width: 500px; width: 90%; max-height: 90vh; overflow: hidden; text-align: center; box-shadow: 0 25px 60px rgba(0,0,0,0.6); transform: scale(0.8) translateY(50px); transition: all 0.3s cubic-bezier(0.68,-0.55,0.265,1.55); position: relative; }
.dialog-alert-body h3{ margin-bottom: 10px; font-size: clamp(22px, 5vw, 26px);}
.dialog-alert-body p{ color: white; margin-bottom: 20px; font-size: clamp(16px, 4vw, 18px);}
.dialog-alert-body.success { background: linear-gradient(135deg, rgba(30,42,58,0.95) 0%, rgba(45,74,62,0.95) 100%); border: 2px solid rgba(74,222,128,0.3); }
.dialog-alert-body.error { background: linear-gradient(135deg, #1e2a3a 0%, #2d4a3e 100%); border: 2px solid #ef4444; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5)}
.dialog-alert-body.warning { background: linear-gradient(135deg, #1e2a3a 0%, #2d4a3e 100%); border: 2px solid #f19226; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5)}
.dialog-alert.active .dialog-alert-body { transform: scale(1) translateY(0); }
.dialog-alert-button { min-width: 150px; border: none; padding: 12px 24px; border-radius: 12px; color: white; cursor: pointer;  font-size: 16px; font-weight: 600; transition: all 0.3s ease; }

.dialog-alert-input { width: 100%; background: rgba(30, 42, 58, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); color: white; padding: 15px; border-radius: 12px; font-size: 16px; margin-top: 10px; }
.dialog-alert-input:focus { outline: none; border-color: #f19226; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1); }

/* .dialog-alert-button.success {background: #44ef77; color: #2d4a3e;}
.dialog-alert-button.error {background: #ef4444; color: white;}
.dialog-alert-button.warning {background: #f19226; color: white;} */

.dialog-alert-button.success { background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);  box-shadow: 0 4px 15px rgba(74,222,128,0.4); color: white;}
.dialog-alert-button.success:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74,222,128,0.6); }
.dialog-alert-button.error { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); box-shadow: 0 4px 12px rgba(239,68,68,0.4); color: white;}
.dialog-alert-button.error:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239,68,68,0.6); }
.dialog-alert-button.warning {background: linear-gradient(135deg, #f19226 0%, #dc7826 100%); box-shadow: 0 4px 12px rgba(239, 131, 68, 0.4); color: white;}
.dialog-alert-button.warning:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239, 131, 68,0.6); }

.dialog-button-group { display: flex;  justify-content: center;  gap: 20px;  flex-wrap: wrap;  max-width: 100%;  padding: 10px;}

@media (max-width: 450px) {
  .dialog-alert-button-group { flex-direction: column; align-items: stretch;  }
  .dialog-alert-button { width: 100%;}}

/* Dialog Buttons */
.dialog-default-button { width: 100%; padding: 15px; background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%); border: none; border-radius: 12px; color: white; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(74,222,128,0.4); position: relative; overflow: hidden;}
.dialog-default-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74,222,128,0.6); }
.dialog-default-button:active { transform: translateY(0); }
.dialog-default-button.loading { pointer-events: none; opacity: 0.8; }
.dialog-default-button .spinner { display: none; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top: 2px solid white; border-radius: 50%; animation: spin 1s linear infinite; margin-right: 10px; }
.dialog-default-button.loading .spinner { display: inline-block; }

.dialog-negative-button { width: 100%; padding: 15px; background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);  border: none; border-radius: 12px; color: white; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease;  box-shadow: 0 4px 12px rgba(239,68,68,0.4);  position: relative; overflow: hidden;}
.dialog-negative-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239,68,68,0.6); }
.dialog-negative-button:active { transform: translateY(0); }

.dialog-secondary-button { width: 100%; padding: 15px;  background:  rgba(0,0,0,0); border: 1px solid #4ade80; color: #4ade80; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(107,114,128,0.2); position: relative; overflow: hidden;}
.dialog-secondary-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74,222,128,0.6);  }
.dialog-secondary-button:active { transform: translateY(0); }
.dialog-secondary-button:disabled { background: #686868; box-shadow: none; transform: none; cursor: not-allowed;}
 
/* Login and Signup Styles */
.otp-digit { padding: 15px 10px; font-size: 20px; font-weight: 900; text-align: center; }
.password-toggle { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 16px; transition: all 0.3s ease; padding: 5px; }
.password-toggle:hover { color: #4ade80; }
.form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; flex-wrap: wrap; gap: 10px; }
.remember-me { display: flex; align-items: center; gap: 8px; color: #94a3b8; font-size: 14px; cursor: pointer; transition: all 0.3s ease; }
.remember-me:hover { color: white; }
.remember-checkbox { width: 18px; height: 18px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; cursor: pointer; }
.remember-checkbox.checked { background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%); border-color: #4ade80; }
.remember-checkbox i { font-size: 12px; color: white; opacity: 0; transition: all 0.3s ease; }
.remember-checkbox.checked i { opacity: 1; }
.forgot-password { color: #4ade80; text-decoration: none; font-size: 14px; font-weight: 600; transition: all 0.3s ease; }
.forgot-password:hover { color: #22c55e; text-decoration: underline; }

/* Dialog Receipt */
.receipt-meta{display:flex;justify-content:space-between;align-items:center;margin:15px 0}
.receipt-meta .label{color:#777777;font-size:0.9rem}
.receipt-logo{width:64px;height:64px;border-radius:50%;object-fit:cover; }
.receipt-grid{display:grid;grid-template-columns:1fr 1fr;row-gap:10px;column-gap:2px;margin-top:16px}
.receipt-grid .label{color:#777777;font-size:0.9rem}
.receipt-grid .value{font-weight:600;text-align:right;word-wrap: nowrap;  white-space: nowrap;word-break: keep-all;}
.receipt-grid .amount{font-size:1.4rem;font-weight:700}

.receipt-line{display:grid;grid-template-columns:1fr 1fr;row-gap:10px;column-gap:2px;}
.receipt-line .label{color:#777777;font-size:0.9rem}
.receipt-line .value{font-weight:600;text-align:right;word-wrap: nowrap;  white-space: nowrap;word-break: keep-all;}
.receipt-line .amount{font-size:1.4rem;font-weight:700}

.proof-section{text-align:center;align-items:center;align-content:center}
.proof-section img{width:200px;height:200px;object-fit:cover;border-radius:15px; cursor: pointer;}
.receipt-footer{padding:16px;display:flex;justify-content:center;gap:16px}

/* Profile and Menu Styles */
.profile-settings {display: flex; flex-direction: column; gap: 15px; text-align: left;}
.profile-settings-item {padding: 12px; background: rgba(255,255,255,0.1); border-radius: 8px; cursor: pointer; position: relative; overflow: hidden; transition: all 0.3s ease;}
.profile-settings-item i {margin-right: 10px;}


@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

.dialog-top-border { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.error-message { background: rgba(239,68,68,0.5); border: 1px solid rgba(250, 59, 59, 0.5); color: #ffffff; padding: 12px 15px; border-radius: 8px; font-size: 14px; margin-bottom: 15px; display: none; animation: shake 0.5s ease-in-out; }
.error-message.show { display: block; }
@keyframes shake { 
    0%,100% { transform: translateX(0); } 
    25% { transform: translateX(-5px); } 
    75% { transform: translateX(5px); } 
}

.success-message { background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3); color: #4ade80; padding: 12px 15px; border-radius: 8px; font-size: 14px; margin-bottom: 15px; display: none; animation: slideIn 0.3s ease-out; }
.success-message.show { display: block; }
@keyframes slideIn { 
    from { transform: translateY(-10px); opacity: 0; } 
    to { transform: translateY(0); opacity: 1; } 
}

@media (max-width: 480px) { 
    .dialog-body { padding: 20px; margin: 10px; border-radius: 20px; } 
    .dialog-logo { font-size: 24px; } 
    .dialog-title { font-size: 16px; } 
    .form-input { padding: 12px 15px; font-size: 14px; } 
    .dialog-default-button { padding: 12px; font-size: 14px; } 
    .social-buttons { flex-direction: column; } 
    .form-options { flex-direction: column; align-items: flex-start; gap: 15px; } 
}

@media (max-width: 375px) { 
    .dialog-body { padding: 15px; } 
    .dialog-tabs { margin-bottom: 20px; } 
    .dialog-tab { padding: 10px 15px; font-size: 13px; } 
}

@keyframes popupSlideIn { 
    from { transform: scale(0.5) translateY(50px); opacity: 0; } 
    to { transform: scale(1) translateY(0); opacity: 1; } }

@keyframes popupSlideOut { 
    from { transform: scale(1) translateY(0); opacity: 1; } 
    to { transform: scale(0.1) translateY(50px); opacity: 0; } }

.animate-in { animation: popupSlideIn 0.4s cubic-bezier(0.68,-0.55,0.265,1.55); }

/* Responsive Design */
@media (max-width: 600px) {
    .main-container { max-width: 100%; }
    .app-header { padding: 12px 15px; }
    .main-content { margin-bottom: 100px; }
    .page-content { padding: 5px; }
    .games-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
    .game-card { padding: 15px; }
    .feature-card { padding: 15px; gap: 12px; }
    .feature-icon { width: 45px; height: 45px; font-size: 20px; }
    .section-header {align-items: flex-start; gap: 15px; }
    .view-all-btn { align-self: flex-end; }
}

@media (max-width: 480px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    .app-header { padding: 8px 15px; }
    .btn-header-group {grid-template-columns: repeat(auto-fit, minmax(10px, 1fr)); }
    .balance { padding: 6px 10px; gap: 6px; }
    .add-money-btn, .profile-btn { width: 32px; height: 32px; font-size: 14px; }
    .bottom-nav { padding: 12px 15px; }
    .nav-item { gap: 3px; padding: 6px; }
    .nav-home-btn { width: 35px; height: 35px; }
}

@media (max-width: 375px) {
    .feature-card { padding: 12px; gap: 10px; }
    .feature-icon { width: 40px; height: 40px; font-size: 18px; }
    .btn-header-group {grid-template-columns: repeat(auto-fit, minmax(10px, 1fr));  flex-direction: column; align-self: flex-end; }
    .games-grid { gap: 10px; }
    .game-card { padding: 12px; }
}

/* Loading Animation */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.loading { animation: pulse 2s infinite; }
html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 4px; height: 2px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); }
::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .page-header { padding: 15px; }
    .feature-card { padding: 12px; margin-bottom: 10px; }
    .slots-section { margin-top: 15px; }
    .bottom-nav { padding: 8px 15px; }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .game-character::before {
        width: 25px;
        height: 25px;
    }
}