/* ================= Game details modal ================= */
.game-card-modal {
  width: min(960px, 100%); padding: 0; overflow-x: hidden;
  background: #0a0b18;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 60px 140px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px color-mix(in srgb, var(--c1, #8b5cf6) 30%, transparent);
}
.game-card-modal .gm-art { position: absolute; inset: 0; height: auto; overflow: hidden; z-index: 0; }
.gm-bg { width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0.45; transform: scale(1.04); }
.gm-bg.soft { filter: blur(30px) saturate(1.4); opacity: 0.5; transform: scale(1.3); }
.game-card-modal .gm-art::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 11, 24, 0.55) 0%, rgba(10, 11, 24, 0.92) 42%, rgba(10, 11, 24, 0.97) 100%),
    radial-gradient(60% 70% at 12% 30%, color-mix(in srgb, var(--c1, #8b5cf6) 40%, transparent), transparent 70%);
}
.game-card-modal .gm-body { position: relative; z-index: 1; padding: 34px; }
.game-card-modal .modal-x { background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(8px); }

.gm-grid { display: grid; grid-template-columns: 280px 1fr; gap: 34px; align-items: start; }

.gm-poster { position: relative; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 60px -10px color-mix(in srgb, var(--c1, #8b5cf6) 55%, transparent); }
.gm-poster .game-art { position: absolute; inset: 0; }
.gm-poster .game-art .cover { transform: none !important; filter: none !important; }
.gm-flag { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 9px; font-size: 12px; font-weight: 800; background: #fff; color: #0b0d1a; }

.gm-info { min-width: 0; padding-top: 4px; }
.gm-kicker { color: var(--muted); font-weight: 700; font-size: 13px; letter-spacing: 0.02em; }
.game-card-modal .gm-info h3 { font-family: var(--font-d); font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin: 8px 0 12px; padding-right: 40px; }
.gm-enh { display: inline-block; padding: 6px 12px; border-radius: 10px; font-size: 12px; font-weight: 800; background: var(--grad-pro); color: #fff; }
.gm-info p.gm-desc { color: #c9cde6; font-size: 16px; margin: 14px 0 16px; }
.gm-feats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.gm-feats li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; color: #dfe3fa; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.gm-feats i { font-style: normal; }

.gm-label { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.gm-consoles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.gm-console {
  --acc: var(--grad);
  position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 8px; border-radius: 16px; text-align: left;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.gm-console.pro { --acc: var(--grad-pro); }
.gm-console:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }
.gm-console::before { content: ''; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; background: var(--acc); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.2s; }
.gm-console.on { background: rgba(255, 255, 255, 0.08); border-color: transparent; }
.gm-console.on::before { opacity: 1; }
.gm-console img { width: 44px; height: 62px; object-fit: contain; max-width: none; flex: none; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.6)); }
.gc-text { display: flex; flex-direction: column; min-width: 0; }
.gc-text b { font-family: var(--font-d); font-size: 16px; }
.gc-text small { color: var(--muted); font-size: 12px; font-weight: 600; }
.gc-price { margin-left: auto; font-family: var(--font-d); font-weight: 800; font-size: 22px; white-space: nowrap; }
.gc-price small { font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 2px; }

.gm-days { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.gm-days button { padding: 9px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--muted); border: 1px solid rgba(255, 255, 255, 0.14); transition: all 0.2s; }
.gm-days button:hover { color: var(--text); }
.gm-days button.on { background: #fff; color: #0b0d1a; border-color: transparent; }
.gm-cta { font-size: 17px; }

@media (max-width: 760px) {
  .game-card-modal .gm-body { padding: 22px 18px; }
  .gm-grid { grid-template-columns: 1fr; gap: 20px; }
  .gm-poster { width: 150px; }
  .game-card-modal .gm-art::after { background: linear-gradient(180deg, rgba(10, 11, 24, 0.5) 0%, rgba(10, 11, 24, 0.95) 35%, rgba(10, 11, 24, 0.98) 100%); }
  .gm-consoles { grid-template-columns: 1fr; }
}

/* ================= full library ================= */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--line-2); margin-right: 6px; }
.seg button { padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); transition: all 0.2s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: #fff; color: #0b0d1a; }
.tag.ps4 { background: rgba(46, 230, 255, 0.18); color: #bff6ff; }
.games-foot { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 30px; }
#gamesSentinel { height: 1px; width: 100%; }
.loader { display: flex; gap: 8px; padding: 10px; }
.loader i { width: 10px; height: 10px; border-radius: 50%; background: var(--violet); animation: load-dot 1s ease-in-out infinite; }
.loader i:nth-child(2) { animation-delay: 0.15s; background: var(--blue); }
.loader i:nth-child(3) { animation-delay: 0.3s; background: var(--cyan); }
@keyframes load-dot { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-8px); opacity: 1; } }
.gm-info p.gm-note { color: #9fe8f5; font-size: 13px; font-weight: 600; margin: -6px 0 16px; }
@media (max-width: 560px) { .seg { width: 100%; margin: 0 0 4px; } .seg button { flex: 1; padding: 7px 8px; font-size: 13px; } }

/* ================= checkout: console thumb + payment method tiles ================= */
.co-plan { gap: 14px; padding: 12px 16px 12px 12px; }
.co-thumb { position: relative; width: 64px; height: 76px; flex: none; border-radius: 16px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 70%, rgba(46, 230, 255, 0.35), transparent 70%), rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(46, 230, 255, 0.3); }
.co-plan.pro .co-thumb { background: radial-gradient(circle at 50% 70%, rgba(255, 79, 160, 0.4), transparent 70%), rgba(255, 255, 255, 0.04); border-color: rgba(255, 79, 160, 0.35); }
.co-thumb img { width: 46px; height: 66px; object-fit: contain; max-width: none; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.6)); }
.co-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.co-name b { font-family: var(--font-d); font-size: 18px; }
.co-name small { color: var(--muted); }
.co-game { margin-top: 4px; align-self: flex-start; padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, 0.08); color: #e7eaff; }

.pm-label { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.pm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pm { position: relative; cursor: pointer; }
.pm input { position: absolute; opacity: 0; pointer-events: none; }
.pay-methods .pm-box { height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 0 6px; border-radius: 16px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.pm-box svg { width: 28px; height: 28px; fill: none; stroke: #c9cff0; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s; }
.pm-box svg .fill { fill: #c9cff0; stroke: none; transition: fill 0.2s; }
.pm-box b { font-size: 14px; font-weight: 800; color: #dfe3fa; }
.pm:hover .pm-box { background: rgba(255, 255, 255, 0.06); transform: translateY(-1px); }
.pm input:checked + .pm-box { border-color: var(--violet); background: rgba(139, 92, 246, 0.16); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18); }
.pm input:checked + .pm-box svg { stroke: #fff; }
.pm input:checked + .pm-box svg .fill { fill: #fff; }
.pm input:focus-visible + .pm-box { box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.45); }

/* single payment method (crypto only): one wide tile instead of a 3-column grid */
.pm-grid.pm-single { grid-template-columns: 1fr; }
.pm-single .pm-box { height: 64px; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 18px; }
.pm-single .pm-box b { font-size: 16px; }
.pm-single .pm-box svg.pm-check { width: 22px; height: 22px; margin-left: auto; stroke: #fff; stroke-width: 2.6; }
