/* ═══════════════════════════════════════════════════════════
   SHARED STYLES  –  All pages
   Font: Montserrat (loaded in each HTML via Google Fonts)
═══════════════════════════════════════════════════════════ */

/* ── Reset ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #f0f4ff;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 14px;
  color: #222;
}

/* ── Shell ──────────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: #fff;
  overflow: visible;
  box-shadow: 0 0 40px rgba(0, 0, 0, .14);
  position: relative;
}

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e6e7e8;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .07);
}

.back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f5f7fa;
  border: 1px solid #e6e7e8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.back-btn svg {
  width: 18px;
  height: 18px;
  stroke: #333;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-title {
  font-size: 16px;
  font-weight: 800;
  color: #0b1e45;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -.2px;
}

/* ── SEARCH BAR ─────────────────────────────────────────── */
.nav-search {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f5f7fa;
  border: 1.5px solid #e6e7e8;
  border-radius: 50px;
  overflow: hidden;
  height: 42px;
}

.nav-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #333;
  font-family: inherit;
  font-size: 14px;
  padding: 0 16px;
}

.nav-search input::placeholder {
  color: #aaa;
}

.nav-search button {
  background: #0b6dec;
  border: none;
  cursor: pointer;
  height: 42px;
  width: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-search button svg {
  width: 17px;
  height: 17px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* Search dropdown */
.search-dropdown {
  position: absolute;
  top: 65px;
  left: 14px;
  right: 14px;
  background: #fff;
  border: 1px solid #e6e7e8;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .14);
  z-index: 100;
  display: none;
  max-height: 320px;
  overflow-y: auto;
}

.search-dropdown.open {
  display: block;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: #f5f7fa;
}

.search-item img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.search-item .si-title {
  font-size: 13px;
  font-weight: 700;
  color: #0b1e45;
}

.search-item .si-cat {
  font-size: 11px;
  color: #888;
  text-transform: capitalize;
}

.search-item .si-coin {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #c77800;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

/* ── COIN NAV BADGE ─────────────────────────────────────── */
.coin-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fff8e1;
  border: 1.5px solid #f5c518;
  border-radius: 50px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  color: #b8860b;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
}

.coin-nav .coin-svg {
  flex-shrink: 0;
}

/* ── COIN SVG ICON (reusable) ───────────────────────────── */
.coin-svg {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ── HERO BANNER ────────────────────────────────────────── */
.hero {
  margin: 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, #e8f3ff 0%, #d6e9ff 55%, #c5dcff 100%);
  border: 1px solid #b8d4ff;
  padding: 14px 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero::before {
  content: '';
  position: absolute;
  width: 190px;
  height: 190px;
  background: rgba(11, 110, 236, .06);
  border-radius: 50%;
  top: -65px;
  right: -55px;
}

.hero::after {
  content: '';
  position: absolute;
  width: 130px;
  height: 130px;
  background: rgba(0, 174, 205, .07);
  border-radius: 50%;
  bottom: -50px;
  left: -28px;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: #0b6dec;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.hero-text h2 {
  font-size: 18px;
  font-weight: 800;
  color: #0b1e45;
  line-height: 1.2;
  letter-spacing: -.3px;
}

.hero-right {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.play-circle {
  width: 46px;
  height: 46px;
  background: #0b6dec;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(11, 110, 236, .4);
  cursor: pointer;
}

.play-circle svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  margin-left: 3px;
}

.hero-right span {
  font-size: 11px;
  color: #0b1e45;
  font-weight: 700;
}

/* ── STREAK BAR ─────────────────────────────────────────── */
.streak-bar {
  background: #fff8e1;
  border: 1.5px solid #f5c518;
  border-radius: 14px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.streak-bar .sb-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.streak-bar .sb-left .sb-emoji {
  font-size: 22px;
}

.streak-bar .sb-left p {
  font-size: 13px;
  font-weight: 700;
  color: #b8860b;
  line-height: 1.3;
}

.streak-bar .sb-left p small {
  font-weight: 500;
  color: #888;
  display: block;
  font-size: 11px;
}

.streak-bar .sb-btn {
  background: #b8860b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

/* ── STATS BAR ──────────────────────────────────────────── */
.stats-bar {
  display: flex;
  justify-content: space-around;
  background: #f4faff;
  border: 1px solid #d8eeff;
  border-radius: 16px;
  margin: 0 14px 14px;
  padding: 14px 0;
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #0b1e45;
}

.stat-item span {
  font-size: 11px;
  color: #888;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  background: #d0eaf5;
}

/* ── CATEGORY PILLS ─────────────────────────────────────── */
.cat-scroll {
  padding: 0 14px 12px;
}

.cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f0f4ff;
  border: 1.5px solid #d8e4ff;
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
}

.cat-pill.active {
  background: #0b6dec;
  border-color: #0b6dec;
  color: #fff;
  box-shadow: 0 3px 12px rgba(11, 110, 236, .28);
}

.cat-pill .em {
  font-size: 15px;
}

/* ── SECTION HEADING ────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 14px 12px;
}

.section-head h3 {
  font-size: 17px;
  font-weight: 800;
  color: #0b1e45;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -.2px;
}

.section-head h3 .dot {
  width: 9px;
  height: 9px;
  background: #0b6dec;
  border-radius: 50%;
  flex-shrink: 0;
}

.section-head a {
  font-size: 13px;
  color: #0b6dec;
  font-weight: 700;
}

/* ── AD PLACEHOLDER ─────────────────────────────────────── */
.ad-slot {
  background: #f8fafc;
  border: 1px dashed #d0d5dd;
  border-radius: 14px;
  min-height: 90px;
  margin: 0 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #bbb;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════
   GAME CARD  (same grid, updated card with Play Now button)
══════════════════════════════════════════════════════════ */
.gameWrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 14px 16px;
}

.gameCard {
  background: #fff;
  border: 1.5px solid #e6e7e8;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  display: flex;
  flex-direction: column;
  position: relative;
}

.gameCard:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

/* Badges */
.card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 2;
}

.badge {
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 50px;
  display: inline-block;
  letter-spacing: .3px;
}

.badge.trending {
  background: #ff4757;
  color: #fff;
}

.badge.new-b {
  background: #0b6dec;
  color: #fff;
}

/* Coin reward badge top-right */
.card-coin-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 248, 225, .92);
  border: 1px solid #f5c518;
  border-radius: 50px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 800;
  color: #b8860b;
}

.gameImage {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0;
  background: #f0f4ff;
  flex-shrink: 0;
}

.gameInner {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 8px 10px 10px;
  text-align: center;
}

.gameInner h2 {
  font-size: 14px;
  font-weight: 800;
  color: #0b1e45;
  margin-bottom: 4px;
  line-height: 1.3;
  letter-spacing: -.1px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.noOfUser {
  color: #008a2f;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.greenCir {
  width: 7px;
  height: 7px;
  background: #3cc300;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Entry cost row */
.entry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #b8860b;
  background: #fff8e1;
  border: 1px solid #f5c518;
  border-radius: 8px;
  padding: 4px 8px;
  margin-bottom: 7px;
}

/* ▶ Play Now button – bottom of card */
.card-play-btn {
  display: block;
  width: 100%;
  background: #0b6dec;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 0;
  margin-top: auto;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: .2px;
  transition: background .15s;
}

.card-play-btn:hover {
  background: #0a5fd4;
}

/* ── EARN PROMO CARD (home page) ────────────────────────── */
.earn-promo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 14px 16px;
  background: linear-gradient(135deg, #fff8e1 0%, #fffde8 100%);
  border: 1.5px solid #f5c518;
  border-radius: 20px;
  padding: 16px 18px;
  text-decoration: none;
  transition: box-shadow .18s, transform .18s;
}

.earn-promo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 197, 24, .25);
}

.epc-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.epc-coins {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}

.epc-title {
  font-size: 15px;
  font-weight: 800;
  color: #0b1e45;
  margin-bottom: 3px;
}

.epc-sub {
  font-size: 11px;
  color: #b8860b;
  font-weight: 600;
}

.epc-arrow {
  width: 32px;
  height: 32px;
  background: #fff;
  border: 1.5px solid #e6e7e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── HOW TO EARN SECTION (legacy, still used on earn.html via earn-list) ─ */
.earn-section {
  margin: 0 14px 16px;
  background: #f4faff;
  border: 1.5px solid #c0d9ff;
  border-radius: 20px;
  padding: 18px;
}

.earn-section h3 {
  font-size: 16px;
  font-weight: 800;
  color: #0b1e45;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.earn-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.earn-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.earn-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
}

.earn-text p {
  font-size: 13px;
  font-weight: 700;
  color: #0b1e45;
  line-height: 1.3;
}

.earn-text small {
  font-size: 11px;
  color: #888;
}

.earn-coins {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff8e1;
  border: 1.5px solid #f5c518;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  color: #b8860b;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  background: #f8fafc;
  border-top: 1px solid #e6e7e8;
  margin-top: 8px;
  padding: 22px 16px 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 13px;
  color: #555;
  font-weight: 600;
}

.footer-links a:hover {
  color: #0b6dec;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-btn.fb {
  background: #2d71ff;
}

.social-btn.yt {
  background: #fb0202;
}

.social-btn.ig {
  background: linear-gradient(135deg, #f09433, #dc2743, #bc1888);
}

.footer-copy {
  font-size: 12px;
  color: #aaa;
  padding-top: 14px;
}

.footer-copy a {
  color: #0b6dec;
  font-weight: 600;
}

/* ── COIN TOAST ─────────────────────────────────────────── */
#coinToast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  background: #0b1e45;
  color: #fff;
  border-radius: 50px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 999;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .32);
  transition: transform .38s cubic-bezier(.34, 1.56, .64, 1);
  pointer-events: none;
  white-space: nowrap;
}

#coinToast.show {
  transform: translateX(-50%) translateY(0);
}

/* ── GAME DETAIL – IMAGE BOX ────────────────────────────── */
.gameImageBox {
  background: #fff;
  border: 1.5px solid #e6e7e8;
  border-radius: 22px;
  margin: 14px;
  position: relative;
  overflow: hidden;
}

.gameImageLg {
  width: 100%;
  display: block;
  height: 220px;
  object-fit: cover;
}

.gamePlayWrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .52);
  gap: 10px;
  cursor: pointer;
}

.thumGameImg {
  width: 82px;
  height: 82px;
  border: 3px solid rgba(255, 255, 255, .85);
  border-radius: 18px;
  object-fit: cover;
}

.gameTitle {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  text-align: center;
}

.activeUsers {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, .88);
  font-weight: 600;
}

.activeDot {
  width: 8px;
  height: 8px;
  background: #3cc300;
  border-radius: 50%;
}

.playBtn {
  display: block;
  width: calc(100% - 24px);
  margin: 12px auto;
  background: #0b1e45;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  border-radius: 50px;
  text-align: center;
  padding: 14px 0;
  cursor: pointer;
  border: none;
  letter-spacing: .3px;
}

.playBtn:hover {
  background: #112769;
}

/* Coin reward card */
.coin-reward-card {
  margin: 0 14px 14px;
  background: #fff8e1;
  border: 1.5px solid #f5c518;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.crc-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crc-icon {
  font-size: 30px;
}

.crc-left p {
  font-size: 14px;
  font-weight: 800;
  color: #b8860b;
}

.crc-left small {
  font-size: 11px;
  color: #888;
  display: block;
  margin-top: 2px;
}

.crc-big {
  font-size: 26px;
  font-weight: 800;
  color: #b8860b;
}

/* Game title + rating */
.gameTitleBlack {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  color: #0b1e45;
  margin: 0 14px 8px;
  text-transform: capitalize;
  letter-spacing: -.3px;
}

.gameRating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
  color: #888;
  margin-bottom: 14px;
  font-weight: 600;
}

.stars {
  color: #f5a623;
}

/* Action buttons row */
.action-row {
  display: flex;
  gap: 10px;
  margin: 0 14px 14px;
}

.action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #f5f7fa;
  border: 1.5px solid #e6e7e8;
  border-radius: 50px;
  padding: 11px 0;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  transition: all .15s;
}

.action-btn:hover {
  background: #eef2ff;
  border-color: #c0ceff;
}

.action-btn.fav-active {
  background: #fff0f3;
  border-color: #ffb3c1;
  color: #e63946;
}

.action-btn svg {
  width: 17px;
  height: 17px;
}

/* Add to homepage */
.addHomepage {
  background: #0b6dec;
  color: #fff;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 14px 14px;
  cursor: pointer;
  border: none;
  border-radius: 50px;
  font-weight: 800;
  font-size: 15px;
  width: calc(100% - 28px);
  position: relative;
  overflow: hidden;
}

.addHomepage::before {
  content: '';
  position: absolute;
  height: 70%;
  width: 22px;
  background: rgba(255, 255, 255, .22);
  transform: skew(-15deg);
  opacity: .6;
  filter: blur(5px);
  left: -10%;
  top: 10px;
  animation: shine 1.8s ease infinite;
}

@keyframes shine {
  0% {
    opacity: .6;
    left: 0%
  }

  66% {
    opacity: 1;
    left: 87%
  }

  100% {
    opacity: 1;
    left: 87%
  }
}

/* Info pills */
.info-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 14px 14px;
}

.infoPill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f0f6ff;
  border: 1.5px solid #c0d9ff;
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #0b6dec;
}

/* Game description */
.gameDetails {
  margin: 0 14px 16px;
}

.gameDetails h3 {
  font-size: 16px;
  font-weight: 800;
  color: #0b1e45;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.gameDetails h3 .dot {
  width: 8px;
  height: 8px;
  background: #0b6dec;
  border-radius: 50%;
  flex-shrink: 0;
}

.gameDetails p {
  font-size: 14px;
  line-height: 23px;
  color: #555;
}

/* Play modal */
#playModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
}

#playModal.open {
  display: flex;
}

.modal-sheet {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: 24px 20px;
  animation: slideUp .3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%)
  }

  to {
    transform: translateY(0)
  }
}

.modal-sheet h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0b1e45;
  margin-bottom: 6px;
}

.modal-sheet>p {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}

.modal-coin-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff8e1;
  border: 1.5px solid #f5c518;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.mcb-icon {
  font-size: 30px;
}

.mcb-text strong {
  font-size: 16px;
  font-weight: 800;
  color: #b8860b;
  display: block;
}

.mcb-text p {
  font-size: 12px;
  color: #888;
  margin: 2px 0 0;
}

.modal-play-btn {
  background: #0b1e45;
  color: #fff;
  border: none;
  border-radius: 50px;
  width: 100%;
  padding: 15px 0;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 10px;
}

.modal-cancel {
  background: none;
  border: none;
  width: 100%;
  padding: 10px 0;
  font-size: 14px;
  color: #999;
  cursor: pointer;
}

/* ── WALLET PAGE ────────────────────────────────────────── */
.balance-card {
  margin: 16px 14px 0;
  background: linear-gradient(145deg, #f5c518 0%, #e8a800 55%, #c98f00 100%);
  border: none;
  border-radius: 24px;
  padding: 28px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(200, 150, 0, .38);
}

.balance-card::before {
  content: '';
  position: absolute;
  width: 190px;
  height: 190px;
  background: rgba(255, 255, 255, .15);
  border-radius: 50%;
  right: -55px;
  top: -65px;
}

.balance-card::after {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  background: rgba(255, 255, 255, .1);
  border-radius: 50%;
  left: -25px;
  bottom: -35px;
}

.balance-card .bc-label {
  font-size: 11px;
  color: rgba(255,255,255,.85);
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.balance-card .bc-amount {
  font-size: 56px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.balance-card .bc-sub {
  font-size: 13px;
  color: rgba(255,255,255,.82);
  margin-top: 10px;
  font-weight: 500;
}

.streak-card {
  margin: 12px 14px;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border: 1.5px solid #ffb74d;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.sc-icon {
  font-size: 34px;
  flex-shrink: 0;
}

.sc-text {
  flex: 1;
}

.sc-text strong {
  font-size: 15px;
  font-weight: 800;
  color: #bf360c;
  display: block;
}

.sc-text span {
  font-size: 12px;
  color: #e65100;
}

.sc-milestone {
  text-align: right;
  font-size: 12px;
  color: #e65100;
  font-weight: 700;
  line-height: 1.4;
}

.milestones {
  margin: 0 14px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.milestones::-webkit-scrollbar {
  display: none;
}

.ms-item {
  flex-shrink: 0;
  text-align: center;
  background: #fff;
  border: 1.5px solid #e6e7e8;
  border-radius: 16px;
  padding: 14px 16px;
  min-width: 78px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.ms-item.reached {
  border-color: #f5c518;
  background: linear-gradient(145deg, #fff8e1, #fff3cd);
  box-shadow: 0 4px 14px rgba(245,197,24,.28);
}

.ms-item .ms-emoji {
  font-size: 22px;
  margin-bottom: 5px;
}

.ms-item .ms-days {
  font-size: 12px;
  font-weight: 800;
  color: #0b1e45;
}

.ms-item .ms-coins {
  font-size: 11px;
  color: #b8860b;
  font-weight: 700;
  margin-top: 2px;
}

.earn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 14px 16px;
}

.earn-item {
  background: #fff;
  border: 1.5px solid #eef0f2;
  border-radius: 18px;
  padding: 18px 12px;
  text-align: center;
  box-shadow: 0 3px 12px rgba(0,0,0,.06);
}

.earn-item .ei-icon {
  font-size: 24px;
  margin-bottom: 8px;
  width: 48px;
  height: 48px;
  background: #f0f6ff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 9px;
}

.earn-item .ei-label {
  font-size: 12px;
  font-weight: 700;
  color: #0b1e45;
  line-height: 1.4;
}

.earn-item .ei-coins {
  font-size: 14px;
  font-weight: 800;
  color: #b8860b;
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.hist-list {
  margin: 0 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid #eef0f2;
  border-left: 4px solid #3cc300;
  border-radius: 16px;
  padding: 13px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.hist-item.neg {
  border-left-color: #e63946;
}

.hist-amt.neg {
  color: #e63946;
}

.hist-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .08);
}

.hist-text {
  flex: 1;
}

.hist-text .ht-reason {
  font-size: 13px;
  font-weight: 700;
  color: #0b1e45;
  line-height: 1.3;
}

.hist-text .ht-date {
  font-size: 11px;
  color: #aaa;
  margin-top: 3px;
}

.hist-amt {
  font-size: 16px;
  font-weight: 800;
  color: #3cc300;
}

.hist-empty {
  text-align: center;
  padding: 36px 0;
  color: #bbb;
  font-size: 14px;
}

/* ── EARN PAGE STYLES ───────────────────────────────────── */
.earn-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 14px 20px;
  background: #f0f6ff;
  border: 1.5px solid #c0d9ff;
  border-radius: 18px;
  padding: 16px 12px;
}

.ei-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  text-align: center;
}

.ei-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0b6dec;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ei-step p {
  font-size: 11px;
  font-weight: 600;
  color: #0b1e45;
  line-height: 1.4;
}

.ei-step strong {
  font-weight: 800;
}

.ei-arrow {
  font-size: 16px;
  color: #0b6dec;
  font-weight: 800;
  flex-shrink: 0;
}

.earn-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 14px 16px;
}

.earn-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid #e6e7e8;
  border-radius: 18px;
  padding: 14px 16px;
}

.earn-card--welcome {
  border-color: #c4b5fd;
  background: #faf5ff;
}

.ec-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.ec-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.ec-text p {
  font-size: 13px;
  font-weight: 700;
  color: #0b1e45;
  line-height: 1.3;
  margin-bottom: 2px;
}

.ec-text small {
  font-size: 11px;
  color: #888;
}

.ec-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff8e1;
  border: 1.5px solid #f5c518;
  border-radius: 50px;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 800;
  color: #b8860b;
  flex-shrink: 0;
  white-space: nowrap;
}

.ec-badge--purple {
  background: #f3e8ff;
  border-color: #c4b5fd;
  color: #7c3aed;
}

.entry-explainer {
  margin: 0 14px 20px;
  background: #fff5f5;
  border: 1.5px solid #ffbfbf;
  border-radius: 18px;
  padding: 16px;
}

.ex-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ex-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .08);
}

.ex-text {
  flex: 1;
}

.ex-text p {
  font-size: 13px;
  font-weight: 700;
  color: #0b1e45;
  margin-bottom: 2px;
}

.ex-text small {
  font-size: 11px;
  color: #888;
}

.ex-amt {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.ex-amt--red {
  color: #e63946;
}

.ex-divider {
  height: 1px;
  background: #ffd0d0;
  margin: 14px 0;
}

.ex-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ex-tip span {
  font-size: 18px;
  flex-shrink: 0;
}

.ex-tip p {
  font-size: 12px;
  color: #555;
  font-weight: 600;
  line-height: 1.6;
}

.hist-empty span {
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
}

/* ── HOME PAGE CONTENT SECTIONS ─────────────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 14px 20px;
}

.feat-card {
  background: #fff;
  border: 1.5px solid #eef0f2;
  border-radius: 18px;
  padding: 18px 14px;
  box-shadow: 0 3px 12px rgba(0,0,0,.05);
}

.feat-icon {
  font-size: 26px;
  margin-bottom: 8px;
}

.feat-card strong {
  font-size: 13px;
  font-weight: 800;
  color: #0b1e45;
  display: block;
  margin-bottom: 5px;
}

.feat-card p {
  font-size: 12px;
  color: #777;
  font-weight: 500;
  line-height: 1.55;
  margin: 0;
}

.about-block {
  margin: 0 14px 20px;
  background: #f8fafc;
  border: 1.5px solid #eef0f2;
  border-radius: 18px;
  padding: 18px 16px;
}

.about-block p {
  font-size: 13px;
  color: #555;
  font-weight: 500;
  line-height: 1.7;
  margin: 0 0 10px;
}

.about-block p:last-child {
  margin-bottom: 0;
}

.faq-list {
  margin: 0 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #fff;
  border: 1.5px solid #eef0f2;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.faq-q {
  font-size: 13px;
  font-weight: 800;
  color: #0b1e45;
  margin-bottom: 7px;
}

.faq-q::before {
  content: 'Q  ';
  color: #0b6dec;
}

.faq-a {
  font-size: 12px;
  color: #666;
  font-weight: 500;
  line-height: 1.65;
}

/* ── EARN PROMPT ────────────────────────────────────────── */
#earnPrompt {
  margin: 0 14px 12px;
  background: linear-gradient(135deg, #fff8e1, #fff3cd);
  border: 1.5px solid #f5c518;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 3px 12px rgba(245,197,24,.2);
}

.ep-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.ep-left strong {
  font-size: 13px;
  font-weight: 800;
  color: #7a5c00;
  display: block;
}

.ep-left span {
  font-size: 11px;
  color: #b8860b;
  font-weight: 500;
}

#watchAdBtn {
  background: #f5c518;
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #7a5c00;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

#watchAdBtn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.cta-btn {
  display: block;
  margin: 0 14px 24px;
  background: #0b6dec;
  color: #fff;
  text-align: center;
  border-radius: 50px;
  padding: 15px 0;
  font-size: 15px;
  font-weight: 800;
}