/* ===== CATALOG v4: referens uslubi (kosmik fon, o'yin chiplari, balans kartasi, to'lov usullari) =====
   MUHIM: bu fayl index.html da ENG OXIRGI ulanadigan CSS bo'lishi kerak. */

/* ---------- palitra: ko'k-binafsha ---------- */
:root {
  --bg: #080822;
  --surface: rgba(24, 28, 84, .72);
  --surface-2: rgba(44, 50, 126, .55);
  --line: rgba(132, 142, 255, .28);
  --line-strong: rgba(120, 170, 255, .65);
}

/* ---------- kosmik fon: binafsha tuman + yulduzlar ---------- */
.bg {
  background:
    radial-gradient(90% 55% at 15% 0%, rgba(122, 70, 255, .55), transparent 62%),
    radial-gradient(80% 50% at 100% 28%, rgba(40, 110, 255, .45), transparent 62%),
    radial-gradient(90% 60% at 50% 112%, rgba(176, 64, 255, .4), transparent 62%),
    linear-gradient(180deg, #0b0b34, #070822 62%, #060720);
}
.bg-overlay { background: linear-gradient(180deg, rgba(6, 8, 34, .34), rgba(6, 8, 34, .62)); }
.bg-overlay::after {
  content: ""; position: absolute; inset: 0; opacity: .95;
  background-image:
    radial-gradient(1.3px 1.3px at 22px 34px, #fff, transparent 70%),
    radial-gradient(1px 1px at 96px 126px, rgba(190, 210, 255, .95), transparent 70%),
    radial-gradient(1.7px 1.7px at 168px 62px, #fff, transparent 70%),
    radial-gradient(1px 1px at 236px 188px, rgba(205, 185, 255, .95), transparent 70%),
    radial-gradient(1.3px 1.3px at 64px 214px, #fff, transparent 70%),
    radial-gradient(1px 1px at 196px 250px, rgba(190, 210, 255, .9), transparent 70%);
  background-size: 270px 270px;
  -webkit-mask-image: none; mask-image: none;
}

/* ---------- home: yuqori qator ---------- */
.home-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.user-chip {
  display: flex; align-items: center; gap: 10px; min-height: 48px; max-width: 70%;
  padding: 4px 16px 4px 4px; border-radius: var(--r-pill); text-align: left;
  background: var(--surface); border: 1px solid var(--line);
}
.avatar {
  width: 40px; height: 40px; flex: none; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--violet));
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-chip-text { display: grid; min-width: 0; }
.user-chip-text b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip-text small { color: var(--muted); font-size: 12px; }
.lang-chip {
  display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px;
  border-radius: 14px; font-weight: 700; font-size: 13px;
  background: var(--surface); border: 1px solid var(--line);
}
.lang-chip .ic { width: 16px; height: 16px; }

/* ---------- home: hero ---------- */
.hero {
  position: relative; isolation: isolate; min-height: 270px; padding: 14px 18px 18px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  border-radius: 24px; border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(8, 8, 40, .55) 0%, rgba(8, 8, 40, .8) 55%, rgba(8, 8, 40, .95) 100%),
    url("/images/banner-pubg.jpg") center / cover no-repeat,
    linear-gradient(135deg, #1a1f7a, #4a2399);
}
.hero-logo {
  position: relative; z-index: 1; height: 128px; width: auto; max-width: 72%; margin-bottom: auto;
  object-fit: contain; mix-blend-mode: screen; filter: drop-shadow(0 0 18px rgba(110, 120, 255, .7));
}
.hero-brand { position: absolute; top: 18px; left: 0; right: 0; text-align: center; font-weight: 800; letter-spacing: .18em; font-size: 20px; }
.hero h1 { position: relative; z-index: 1; font-size: 24px; line-height: 1.15; text-align: center; margin-top: 10px; }
.hero p { position: relative; z-index: 1; text-align: center; color: #c9d2ff; margin-top: 6px; font-size: 14px; }

/* ---------- balans kartasi (Home, Profil, Balansni to'ldirish): qalqon belgisi ---------- */
.balance-card {
  display: flex; align-items: center; gap: 14px; margin: 14px 0 0; padding: 14px; border-radius: 20px;
  background: linear-gradient(120deg, rgba(44, 70, 235, .5), rgba(120, 66, 255, .3));
  border: 1px solid rgba(140, 170, 255, .38);
}
.balance-card .balance-ic, .balance-card .ico, .balance-card .ico.has-img {
  position: relative; display: block; width: 56px; height: 56px; flex: none; padding: 0; overflow: hidden;
  border-radius: 16px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3a0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpolyline points='9 12 11 14 15 10'/%3E%3C/svg%3E") center / 56% no-repeat,
    linear-gradient(145deg, #0e2f3a, #0a1a2c);
  box-shadow: 0 0 0 1px rgba(34, 211, 160, .4), 0 8px 22px rgba(34, 211, 160, .22);
}
.balance-card .balance-ic > .ic, .balance-card .ico > .ic, .balance-card .ico.has-img > .ic, .balance-card .ico > img { display: none; }
.balance-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.balance-txt small { color: #b9c6f2; font-size: 13px; }
.balance-txt b { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: .01em; }
.plus-btn {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 15px;
  background: linear-gradient(135deg, #2f6bff, #4b8dff); box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.plus-btn .ic { width: 24px; height: 24px; stroke-width: 2.6; }

/* ---------- home: o'yin chiplari (2x2) ---------- */
.gchips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gchip {
  display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 9px 12px 9px 9px; text-align: left;
  border-radius: 18px; border: 1px solid rgba(140, 160, 255, .38);
  background: linear-gradient(135deg, rgba(70, 76, 200, .55), rgba(40, 36, 120, .5));
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: transform .15s, border-color .2s;
}
.gchip:active { transform: scale(.97); }
.gchip:hover { border-color: var(--neon); }
.gchip .img-wrap, .gchip-star { width: 46px; height: 46px; flex: none; border-radius: 13px; }
.gchip .img-fb b { font-size: 16px; letter-spacing: 0; }
.gchip .img-fb small { display: none; }
.gchip-star { display: grid; place-items: center; background: linear-gradient(135deg, #2f6bff, #8a5cff); box-shadow: var(--glow); }
.gchip-txt { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.gchip-txt b { font-size: 14px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.gchip-txt small { color: #b9c6f2; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- home: bannerlar ---------- */
.banner {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 92px; padding: 14px; margin-top: 12px; overflow: hidden; text-align: left;
  border-radius: 20px; border: 1px solid rgba(140, 160, 255, .32);
  background: linear-gradient(135deg, rgba(44, 70, 235, .5), rgba(120, 66, 255, .4));
}
.banner-promo {
  background:
    linear-gradient(90deg, rgba(10, 10, 56, .96) 32%, rgba(10, 10, 56, .3)),
    url("/images/banner-promotion.jpg") right center / cover no-repeat,
    linear-gradient(135deg, #1b3bd6, #6a3cff);
}
.banner-ic {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px;
  background: linear-gradient(135deg, #2f6bff, #7b5cff); box-shadow: 0 6px 16px rgba(47, 107, 255, .45);
}
.banner-ic .ic { width: 26px; height: 26px; }
.banner-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.banner-txt b { font-size: 16px; font-weight: 800; }
.banner-txt small { color: #c9d2ff; font-size: 13px; }
.banner > .ic:last-child { color: var(--muted); }
.banner-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.mini-banner {
  display: grid; align-content: start; gap: 4px; min-height: 108px; padding: 12px; text-align: left;
  border-radius: 18px; border: 1px solid rgba(140, 160, 255, .32);
  background: linear-gradient(145deg, rgba(50, 60, 210, .45), rgba(90, 50, 180, .38));
}
.mini-banner .banner-ic { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 4px; }
.mini-banner .banner-ic .ic { width: 20px; height: 20px; }
.mini-banner b { font-size: 13.5px; line-height: 1.2; }
.mini-banner small {
  color: #b9c6f2; font-size: 11.5px; line-height: 1.25; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
}

/* ---------- games: tojli brend sarlavha, 2 ustun, rasm tepada, ostida katta nom ---------- */
.brand-head { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-bottom: 12px; }
.brand-head .crown { font-size: 26px; line-height: 1; color: #ffcf5a; filter: drop-shadow(0 0 10px rgba(255, 190, 60, .85)); }
.brand-head b {
  font-size: 21px; font-weight: 900; letter-spacing: .16em;
  background: linear-gradient(180deg, #fff 20%, #9bb8ff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.search { position: relative; margin-bottom: 14px; }
.search .ic { position: absolute; left: 14px; top: 14px; color: var(--muted); pointer-events: none; }
.search .input { padding-left: 44px; }
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.game-grid > .empty { grid-column: 1 / -1; }
.gcard {
  position: relative; display: flex; flex-direction: column; width: 100%; text-align: left; overflow: hidden;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  transition: transform .15s, border-color .2s;
}
.gcard:active { transform: scale(.98); }
.gcard .img-wrap { aspect-ratio: 1 / .86; }
.gcard-body { display: grid; gap: 3px; padding: 12px 54px 14px 14px; }
.gcard-body b { font-size: 17px; font-weight: 800; line-height: 1.15; }
.gcard-body small { color: var(--muted); font-size: 12.5px; }
.gcard-go {
  position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: linear-gradient(135deg, #2f6bff, #4b8dff); box-shadow: var(--glow);
}
.gcard-go .ic { width: 17px; height: 17px; }

/* ---------- o'yin sahifasi ---------- */
.game-banner {
  position: relative; height: 168px; margin-bottom: 16px; overflow: hidden;
  border-radius: 22px; border: 1px solid var(--line);
}
.game-banner .img-wrap { position: absolute; inset: 0; }
.game-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 8, 34, .2), rgba(6, 8, 34, .9)); }
.game-banner .icon-btn { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(8, 10, 44, .7); }
.game-meta { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 2; }
.game-meta b { display: block; font-size: 24px; font-weight: 800; }
.game-meta small { color: #c9d2ff; font-size: 14px; }

.pkg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.pkg {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 68px; padding: 12px; text-align: left;
  border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(44, 54, 140, .6), rgba(18, 20, 70, .65));
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.pkg-gem {
  width: 26px; height: 26px; flex: none; clip-path: polygon(50% 0, 100% 36%, 50% 100%, 0 36%);
  background: linear-gradient(135deg, #bfe0ff, #4b8dff 55%, #7b5cff);
}
.pkg-txt { display: grid; gap: 1px; min-width: 0; }
.pkg-txt b { font-size: 15px; font-weight: 800; line-height: 1.15; }
.pkg-txt small { color: #a9c6ff; font-size: 12.5px; font-weight: 600; }
.pkg[aria-pressed="true"] {
  border-color: var(--neon); box-shadow: 0 0 0 1px var(--neon), var(--glow);
  background: linear-gradient(180deg, rgba(47, 107, 255, .42), rgba(47, 107, 255, .14));
}
.pkg-check { position: absolute; top: 7px; right: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--neon); display: none; place-items: center; }
.pkg[aria-pressed="true"] .pkg-check { display: grid; }
.pkg-check .ic { width: 11px; height: 11px; stroke-width: 3.2; }

.promo-row { display: flex; gap: 8px; }
.promo-row .input { text-transform: uppercase; }
.promo-row .btn { flex: none; }
.cta-bar {
  position: sticky; bottom: 0; z-index: 5; display: grid; gap: 10px;
  margin: 18px -16px 0; padding: 18px 16px calc(var(--safe-b) + 8px);
  background: linear-gradient(180deg, rgba(8, 8, 34, 0), rgba(8, 8, 34, .94) 38%);
}
.screen.has-cta { margin-bottom: calc(-1 * (var(--safe-b) + 28px)); }
.btn-wallet small { font-weight: 500; opacity: .8; margin-left: 4px; }

/* ---------- to'lov usullari: 2x2 plitkalar (To'ldirish va To'lov usuli sahifalari) ---------- */
.pm-list { grid-template-columns: 1fr 1fr; gap: 12px; }
.pm-list .pm-card {
  justify-items: center; align-content: center; gap: 8px; min-height: 138px; padding: 18px 10px 14px;
  text-align: center; border-radius: 20px;
}
.pm-list .pm-top { flex-direction: column; gap: 10px; width: 100%; }
.pm-list .pm-logo { width: 84px; height: 54px; padding: 6px; border-radius: 14px; }
.pm-list .pm-name { flex: none; text-align: center; }
.pm-list .pm-name b { font-size: 15px; }
.pm-list .pm-mark { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; }
.pm-list .pm-numrow, .pm-list .pm-owner { display: none; }

/* ---------- "Diamoza haqida" oynasi ---------- */
.about-sec h3 { font-size: 15px; margin: 14px 0 4px; }
.about-sec p { color: #c9d2ff; font-size: 14px; white-space: pre-line; }