/* ===== RESET ===== */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background: #0f172a;
  font-family: Arial, sans-serif;
  color: #fff;

}

/* ===== APP CENTER ===== */
body {
 background: #0f172a;
  font-family: Arial, sans-serif;

}

/* ===== APP WRAPPER ===== */
.app {
  max-width: 400px;
  margin: 0 auto;
  padding: 6px 14px 90px;   /* 👈 top padding 14px → 6px */
  box-sizing: border-box;
  border-left: 3px solid #00ff88;
  border-right: 3px solid #00ff88;
}
/* ===== MAIN CONTENT ===== */
.container {
  width: 100%;
  padding: 14px 14px 90px; /* bottom nav space */
}

/* ===== CARDS ===== */
.card {
  background: #111827;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 14px;
}

/* ===== WALLET ===== */

.wallet-card {
    background: #2f4b7c;
    padding: 6px 10px;
    border-radius: 10px;
    width: 260px;
    /*margin: 15px auto;*/
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.wallet-top {
    text-align: right;
    font-size: 12px;
    margin-bottom: 6px;
}

.user-id {
    background: rgba(255,255,255,0.15);
    padding: 3px 8px;
    border-radius: 15px;
}

.wallet-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wallet-icon {
    font-size: 22px;
    background: rgba(255,255,255,0.15);
    padding: 8px;
    border-radius: 50%;
}

.wallet-label {
    font-size: 12px;
    opacity: 0.8;
}

.wallet-amount {
    font-size: 18px;
    font-weight: bold;
}

/* ===== BUTTONS ===== */
.btn {
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  color: #fff;
}

.red { background:#ef4444; }
.green { background:#22c55e; }
.purple { background:#8b5cf6; }

/* ===== BET BUTTON ROW ===== */
.bet-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0;
}

.bet-buttons .btn {
  width: 48%;
  height: 48px;
}

.bet-buttons button:disabled {
  opacity: 0.5;
  background: #9ca3af !important;
}

/* ===== TABLE SAFE ===== */
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table {
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  padding: 8px;
  text-align: center;
  border-bottom: 1px solid #273043;
  word-break: break-word;
}

/* ===== TABS ===== */
.btn-wrapper {
  display: flex;
  gap: 10px;
  margin: 14px 0;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  background: #222;
  color: #fff;
  border: none;
  font-weight: 600;
}

.tab-btn.active {
  background: #ff5722;
}

/* ===== PAGINATION ===== */
.pagination {
  /*display: flex;*/
  /*justify-content: center;*/
  /*gap: 12px;*/
  margin: 10px;
 text-align:center;
}
/*.pagination button{
  background-color: #FFFF00;
}*/

/* ===== POPUP ===== */
#betPopup {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
}

#betPopup > div {
  width: 90%;
  max-width: 340px;
}
.game-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
     margin: 4px 0 6px 0;   /* 👈 upar ka gap kam */
    padding: 6px 0; 
    background: linear-gradient(90deg, #ef4444, #22c55e, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.game-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    margin: 8px auto 0;
    border-radius: 5px;
    background: linear-gradient(90deg, #ef4444, #22c55e);
}
    .quick-amounts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.quick-btn {
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: #334155;
    color: #fff;
    transition: all 0.2s ease;
}

.quick-btn:hover {
    background: #475569;
    transform: scale(1.05);
}

.quick-btn.active {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34,197,94,0.6);
}
@keyframes glowTimer {
    0% { box-shadow: 0 0 5px #ff0000; }
    50% { box-shadow: 0 0 20px #ff0000; }
    100% { box-shadow: 0 0 5px #ff0000; }
}
.timer-box {
    color:#fff;
    font-size:30px;
    font-weight:bold;
    padding:8px 18px;
    background:#2f4b7c;
    border-radius:10px;
    animation: glowTimer 1.2s infinite;
}
.info-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px auto;
    flex-wrap: wrap;
}

.info-item {
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
    transition: 0.3s ease;
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.info-label {
    font-size: 13px;
    color: #666;
}

.info-value {
    font-size: 18px;
    font-weight: bold;
    color: #1e3c72;
}
