/* Frontend brand color overrides */
.main-header {
  background: #4292c6 !important;
}

.how-left h2,
.how-right h2,
.online-m-king h2,
.online-m-king h3 {
  color: #4292c6 !important;
}

.foot-area {
  background: #4292c6 !important;
}

.win-all,
.win-all-main {
  background: rgba(66, 146, 198, 0.9) !important;
}

/* Homepage game cards */
.game-cards-area { background: #0b1220; }
.game-cards { margin: 8px -8px 0; display:flex; flex-wrap:wrap; }
.game-card { display:block; color:#fff; text-decoration:none; border-radius:12px; padding:16px; margin:8px; box-shadow:0 6px 12px rgba(0,0,0,.2); transition:transform .15s ease, box-shadow .15s ease; }
.game-card .icon { font-size:28px; margin-bottom:8px; opacity:.95; }
.game-card .title { font-weight:600; letter-spacing:.3px; font-size:16px; }
.game-card:hover { transform:translateY(-2px); box-shadow:0 10px 18px rgba(0,0,0,.25); }

/* Mobile: two cards per row */
@media (max-width:768px){
  .game-card { padding:14px; }
  .game-cards .col-xs-6 { width:50%; padding:0 8px; }
}

/* Desktop: horizontal row with seven cards */
@media (min-width:992px){
  .game-cards { display:flex !important; flex-direction:row !important; flex-wrap:nowrap !important; justify-content:space-between; align-items:stretch; margin:8px -8px 0; max-width:100%; }
  .game-cards > div { flex:1 1 0 !important; max-width:none !important; padding:0 8px !important; float:none !important; }
  .game-cards > div[class*="col-"] { flex:1 1 0 !important; max-width:none !important; }
}

/* Tablet and up: horizontal single row as well */
@media (min-width:768px){
  .game-cards { display:flex !important; flex-direction:row !important; flex-wrap:nowrap !important; justify-content:space-between; align-items:stretch; margin:8px -8px 0; max-width:100%; padding:0; }
  .game-cards > div { flex:1 1 0 !important; max-width:none !important; padding:0 8px !important; float:none !important; }
  .game-cards > div[class*="col-"] { flex:1 1 0 !important; max-width:none !important; }
  /* Horizontal card content */
  .game-card, .game-card-row { display:flex !important; align-items:center !important; justify-content:flex-start !important; padding:16px 18px !important; }
  .game-card .icon, .game-card-row .icon { font-size:26px !important; margin:0 12px 0 6px !important; }
  .game-card .title, .game-card-row .title { font-size:16px !important; font-weight:600 !important; }
}

/* Desktop: reinforce horizontal row (ensure overrides beat Bootstrap) */
@media (min-width:992px){
  .game-cards { display:flex !important; flex-direction:row !important; flex-wrap:nowrap !important; justify-content:space-between; }
  .game-cards > div[class*="col-"] { flex:1 1 0 !important; max-width:none !important; }
}

/* Card gradients to mimic sample */
.game-card.gc-single { background:linear-gradient(135deg,#1d4ed8 0%,#60a5fa 100%); }
.game-card.gc-jodi { background:linear-gradient(135deg,#7c3aed 0%,#a78bfa 100%); }
.game-card.gc-sp { background:linear-gradient(135deg,#9333ea 0%,#3b82f6 100%); }
.game-card.gc-dp { background:linear-gradient(135deg,#0ea5e9 0%,#10b981 100%); }
.game-card.gc-tp { background:linear-gradient(135deg,#06b6d4 0%,#22d3ee 100%); }
.game-card.gc-half { background:linear-gradient(135deg,#ef4444 0%,#f43f5e 100%); }
.game-card.gc-full { background:linear-gradient(135deg,#f97316 0%,#ef4444 100%); }
/* Desktop: prevent Bootstrap from forcing fixed column widths */
@media (min-width:992px){
  .game-cards > div[class*="col-"] { flex:1 1 0 !important; max-width:none !important; }
}

/* Low Balance modal */
.low-balance-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,.45); z-index:3000; display:none; }
.low-balance-modal { position:fixed; top:50%; left:50%; transform:translate(-50%, -50%); width:90%; max-width:380px; background:#0f172a; color:#fff; border-radius:12px; box-shadow:0 12px 28px rgba(0,0,0,.35); padding:20px; z-index:3001; display:none; }
.low-balance-modal .lb-title { font-size:20px; font-weight:700; margin-bottom:12px; color:#ef4444; }
.low-balance-modal .lb-tip { font-size:13px; color:#cbd5e1; margin-top:8px; }
.low-balance-modal .lb-actions { display:flex; gap:10px; margin-top:6px; }
.low-balance-modal .lb-btn { display:inline-block; background:#4292c6; color:#fff; text-decoration:none; padding:10px 14px; border-radius:8px; font-weight:600; }
.low-balance-modal .lb-close { background:#334155; color:#fff; border:none; padding:10px 14px; border-radius:8px; cursor:pointer; }
.low-balance-modal .lb-close-x { position:absolute; top:8px; right:10px; background:transparent; border:none; color:#fff; font-size:22px; line-height:1; cursor:pointer; }
/* Make Jodi numbers clearly clickable */
.number-area .num { cursor: pointer; }

/* Success modal (Bet Accepted) */
.success-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,.45); z-index:3000; display:none; }
.success-modal { position:fixed; top:50%; left:50%; transform:translate(-50%, -50%); width:90%; max-width:360px; background:#ffffff; color:#0f172a; border-radius:12px; box-shadow:0 12px 28px rgba(0,0,0,.25); padding:22px; z-index:3001; text-align:center; display:none; }
.success-modal .sm-icon { width:64px; height:64px; margin:0 auto 10px; border-radius:50%; background:#dcfce7; color:#10b981; display:flex; align-items:center; justify-content:center; font-size:34px; font-weight:700; }
.success-modal .sm-title { font-size:20px; font-weight:700; color:#111827; margin-bottom:6px; }
.success-modal .sm-sub { font-size:13px; color:#6b7280; margin-bottom:14px; }
.success-modal .sm-actions { display:flex; justify-content:center; }
.success-modal .sm-btn { background:#10b981; color:#ffffff; border:none; padding:10px 16px; border-radius:8px; font-weight:600; cursor:pointer; }
.success-modal .sm-close-x { position:absolute; top:8px; right:10px; background:transparent; border:none; color:#6b7280; font-size:22px; line-height:1; cursor:pointer; }