/* =====================================================
   UPXP.store — v4.0 Gaming Theme
   Colors: Deep Purple + Neon Orange + Electric Teal
   Fonts: Rajdhani (display) + Nunito (body)
===================================================== */

:root {
  /* Dark theme (default) */
  --bg:       #0e0b1e;
  --bg2:      #150f2a;
  --bg3:      #1d1535;
  --card:     #160e2c;
  --card2:    #1f1640;
  --surface:  rgba(255,255,255,0.06);
  --border:   rgba(255,255,255,0.08);
  --border2:  rgba(124,58,237,0.35);

  --text:     #f0ecff;
  --text2:    #8b7fb0;
  --text3:    #c4bde0;

  /* Brand colors - Gaming: Purple + Orange + Teal */
  --purple:   #7c3aed;
  --purple2:  #9f67ff;
  --orange:   #ff6b35;
  --orange2:  #ff8c5a;
  --teal:     #00d4b4;
  --teal2:    #00f5d4;
  --blue:     #2563eb;
  --blue2:    #3b82f6;
  --pink:     #f43f5e;
  --gold:     #fbbf24;

  /* Gradients */
  --grad-main:   linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  --grad-orange: linear-gradient(135deg, #ff6b35 0%, #f43f5e 100%);
  --grad-teal:   linear-gradient(135deg, #00d4b4 0%, #2563eb 100%);
  --grad-card:   linear-gradient(145deg, #1d1535 0%, #160e2c 100%);

  --now-bg: linear-gradient(135deg, #7c3aed, #2563eb);
  --mod-bg:  linear-gradient(135deg, #ff6b35, #f43f5e);

  --header-h:   62px;
  --nav-h:      72px;
  --radius:     16px;
  --radius-sm:  10px;
  --radius-lg:  22px;
  --radius-xl:  28px;

  --font-display: 'Rajdhani', sans-serif;
  --font-body:    'Nunito', sans-serif;

  --shadow:    0 8px 32px rgba(0,0,0,0.6);
  --shadow-sm: 0 4px 16px rgba(0,0,0,0.4);
  --glow:      0 0 28px rgba(124,58,237,0.4);
  --glow-o:    0 0 28px rgba(255,107,53,0.4);
  --glow-t:    0 0 28px rgba(0,212,180,0.3);
}

[data-theme="light"] {
  --bg:      #f0eeff;
  --bg2:     #ffffff;
  --bg3:     #e8e2ff;
  --card:    #ffffff;
  --card2:   #f8f5ff;
  --surface: rgba(124,58,237,0.05);
  --border:  rgba(124,58,237,0.12);
  --border2: rgba(124,58,237,0.25);
  --text:    #1a1035;
  --text2:   #6b5b9e;
  --text3:   #3d2e6b;
  --shadow:  0 4px 20px rgba(124,58,237,0.1);
  --shadow-sm: 0 2px 10px rgba(124,58,237,0.08);
  --glow:    0 0 20px rgba(124,58,237,0.15);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--header-h);
  padding-bottom: var(--nav-h);
}
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 4px; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); }
img { display: block; }

/* ======= HEADER ======= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--header-h);
  background: rgba(14,11,30,0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
[data-theme="light"] .site-header { background: rgba(255,255,255,0.92); }
.header-inner {
  max-width: 1280px; margin: 0 auto;
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; padding: 0 16px; gap: 16px;
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 9px;
  flex-shrink: 0;
}
.logo-icon { display: flex; align-items: center; }
.logo-text {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--text); letter-spacing: 1.5px;
  text-transform: lowercase;
}
.logo-store { color: var(--orange); }

/* Desktop nav */
.desktop-nav {
  display: none; align-items: center; gap: 4px; flex: 1; justify-content: center;
}
.dnav {
  padding: 7px 18px; border-radius: 20px;
  font-size: 14px; font-weight: 700;
  color: var(--text2); transition: all 0.2s;
}
.dnav:hover { color: var(--text); background: var(--surface); }
.dnav.active { color: var(--purple2); background: rgba(124,58,237,0.12); }

.header-right { display: flex; gap: 6px; }
.hbtn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.hbtn:hover { background: var(--purple); color: #fff; border-color: var(--purple); box-shadow: var(--glow); }

/* ======= BOTTOM NAV ======= */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(14,11,30,0.96);
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  backdrop-filter: blur(20px);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
[data-theme="light"] .bottom-nav { background: rgba(255,255,255,0.96); }
.bnav {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; padding: 10px 0;
  color: var(--text2); font-size: 10px; font-weight: 700;
  transition: color 0.2s; cursor: pointer;
}
.bnav.active {
  color: var(--text);
}
.bnav.active svg,
.bnav.active span {
  color: inherit;
}

/* Active pill indicator */
.bnav.active .bnav-inner {
  background: var(--grad-main);
  padding: 10px 20px;
  border-radius: var(--radius-xl);
  color: #fff;
}

/* Redesigned bottom nav - pill style like screenshots */
.bottom-nav {
  padding: 8px 12px;
}
.bnav {
  border-radius: var(--radius-xl);
  padding: 10px 14px;
  transition: all 0.2s;
  gap: 3px;
}
.bnav.active {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}

/* ======= MAIN ======= */
.main {
  max-width: 1280px; margin: 0 auto;
  padding: 20px 14px 28px;
  overflow-x: hidden;
}

/* ======= SECTIONS ======= */
.section { margin-bottom: 28px; }
.sec-head { margin-bottom: 16px; }
.sec-title {
  font-family: var(--font-body);
  font-size: 28px; font-weight: 900;
  color: var(--text); line-height: 1;
  margin-bottom: 4px;
}
.sec-sub { font-size: 14px; color: var(--text2); font-weight: 500; }
.sec-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.sec-row-l { display: flex; align-items: center; gap: 6px; }
.sec-row-r { display: flex; align-items: center; gap: 12px; }
.sec-title-sm { font-size: 20px; font-weight: 900; color: var(--text); }
.sec-sub-sm { font-size: 13px; color: var(--text2); font-weight: 500; }
.fire-icon { font-size: 20px; line-height: 1; }
.view-all { font-size: 14px; font-weight: 700; color: var(--blue2); white-space: nowrap; }
.view-all:hover { color: var(--purple2); }

/* ======= NOW BADGE ======= */
.now-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--now-bg);
  color: #fff; font-size: 11px; font-weight: 800;
  padding: 3px 9px; border-radius: 20px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(124,58,237,0.4);
}
.now-badge::before { content: '★'; font-size: 9px; }

/* MOD BADGE — CapCut style */
.mod-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--mod-bg);
  color: #fff; font-size: 9px; font-weight: 900;
  padding: 2px 7px; border-radius: 4px;
  letter-spacing: 0.8px; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(255,107,53,0.5);
  flex-shrink: 0;
}
.mod-badge::before { content: '⚡'; font-size: 8px; }

/* ======= HERO SLIDER ======= */
.hero-slider {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding-bottom: 6px;
  max-width: 100%;
}
.hero-slider::-webkit-scrollbar { display: none; }

/* Hero card — FIXED size, never stretches to fill screen */
.hero-card {
  flex-shrink: 0;
  width: 220px;
  max-width: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* Cover image — portrait, clipped to card */
.hero-cover-wrap {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: var(--card2);
}
.hero-cover-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(10,6,25,0.88) 100%);
}
.hero-cover-badge { position: absolute; bottom: 10px; left: 10px; }

/* Text area */
.hero-body { padding: 9px 11px 13px; }
.hero-name-row {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 4px; flex-wrap: wrap;
}
.hero-app-name {
  font-size: 14px; font-weight: 900; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 140px;
}
.hero-app-desc {
  font-size: 10px; color: var(--text2); line-height: 1.5; margin-bottom: 7px;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.hero-meta-row { display: flex; align-items: center; gap: 8px; }
.hero-star { color: var(--gold); font-size: 12px; font-weight: 700; }
.hero-cat-pill {
  background: var(--surface); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 600; color: var(--text2);
}

/* Skeleton */
.hero-skel {
  flex-shrink: 0; width: 220px; height: 250px;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--card2);
  position: relative;
}
.shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shim 1.6s infinite;
}
@keyframes shim { 0%{background-position:-200% 0} 100%{background-position:200% 0} }

/* ======= HORIZONTAL SCROLL CARDS ======= */
.hscroll {
  display: flex; gap: 10px; overflow-x: auto;
  -webkit-overflow-scrolling: touch; padding-bottom: 4px;
}
.hscroll::-webkit-scrollbar { display: none; }

.hcard {
  flex-shrink: 0; width: 145px; cursor: pointer;
  transition: transform 0.18s;
}
.hcard:hover { transform: scale(1.03); }
.hcard-thumb {
  width: 145px; height: 145px; border-radius: var(--radius);
  overflow: hidden; position: relative; margin-bottom: 9px;
  background: var(--card2);
  box-shadow: var(--shadow-sm);
}
.hcard-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hcard-badge { position: absolute; top: 7px; left: 7px; }
.hcard-name {
  font-size: 14px; font-weight: 800; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-bottom: 2px;
}
.hcard-sub {
  font-size: 11px; color: var(--text2); display: flex;
  align-items: center; justify-content: space-between;
}
.hcard-rating { color: var(--gold); font-weight: 700; }

/* ======= GRID 2-COL ======= */
.grid2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 11px;
}

/* Card matching screenshots exactly */
.gcard {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.gcard:hover {
  transform: translateY(-2px);
  border-color: var(--border2);
  box-shadow: var(--shadow);
}
[data-theme="light"] .gcard { background: #fff; box-shadow: 0 3px 12px rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.08); }

.gcard-img {
  width: 100%; aspect-ratio: 1/1;
  position: relative; overflow: hidden; background: var(--card2);
}
.gcard-img img { width: 100%; height: 100%; object-fit: cover; }
.gcard-img-badge { position: absolute; top: 7px; right: 7px; }
.gcard-body { padding: 10px 10px 12px; }
.gcard-name {
  font-size: 14px; font-weight: 800; color: var(--text);
  margin-bottom: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gcard-meta {
  font-size: 11px; color: var(--text2); font-weight: 600;
  display: flex; align-items: center; gap: 4px; margin-bottom: 6px;
}
.gcard-meta-dot { opacity: 0.4; }
.gcard-stars {
  display: flex; align-items: center; gap: 3px;
}
.star { color: var(--gold); font-size: 12px; }
.star.half { color: var(--gold); opacity: 0.5; }
.star.empty { color: var(--text2); opacity: 0.3; }
.gcard-rating-num { font-size: 12px; font-weight: 700; color: var(--text2); margin-left: 2px; }

/* ======= SEARCH ======= */
.search-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: var(--bg);
  display: none;
  flex-direction: column;
}
.search-overlay.active { display: flex; }
[data-theme="light"] .search-overlay { background: var(--bg2); }

.search-box {
  width: 100%; max-width: 600px; margin: 0 auto;
  padding: 0 16px;
  flex: 1; display: flex; flex-direction: column;
  overflow-y: auto;
}
.search-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0 16px;
}
.search-title { font-size: 22px; font-weight: 900; color: var(--text); }
.search-x {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.search-tabs {
  display: flex; gap: 8px; margin-bottom: 14px;
}
.stab {
  padding: 8px 18px; border-radius: 22px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text2); font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: var(--font-body); transition: all 0.2s;
}
.stab.active { background: var(--purple); color: #fff; border-color: var(--purple); box-shadow: var(--glow); }
.search-field {
  display: flex; align-items: center; gap: 10px;
  border: 2px solid var(--purple);
  border-radius: var(--radius); padding: 12px 16px;
  margin-bottom: 14px; background: var(--card);
}
.search-field svg { color: var(--text2); flex-shrink: 0; }
#searchInput {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 16px; font-family: var(--font-body);
  font-weight: 600;
}
#searchInput::placeholder { color: var(--text2); }

.sri {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 8px; border-radius: var(--radius-sm); cursor: pointer;
  transition: background 0.15s;
}
.sri:hover { background: var(--surface); }
.sri-img {
  width: 46px; height: 46px; border-radius: 12px;
  object-fit: cover; flex-shrink: 0; background: var(--card2);
}
.sri-info { flex: 1; min-width: 0; }
.sri-name { font-size: 14px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 6px; }
.sri-cat { font-size: 12px; color: var(--text2); font-weight: 600; margin-top: 2px; }
.sri-get {
  font-size: 13px; font-weight: 800; color: var(--blue2);
  background: rgba(59,130,246,0.1);
  padding: 6px 16px; border-radius: 20px; flex-shrink: 0;
}
.search-empty {
  text-align: center; padding: 60px 20px; color: var(--text2);
}
.search-empty-ico {
  width: 80px; height: 80px; border-radius: 24px;
  background: var(--card2); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-size: 32px;
}

.spinner {
  width: 28px; height: 28px; margin: 24px auto; display: block;
  border: 3px solid var(--border);
  border-top-color: var(--purple);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ======= DETAIL PAGE ======= */
.overlay {
  position: fixed; inset: 0; z-index: 250;
  background: var(--bg);
  overflow-y: auto;
  display: none;
  padding: var(--header-h) 0 var(--nav-h);
}
.overlay.active { display: block; }
.overlay-inner { max-width: 600px; margin: 0 auto; padding: 0 14px 24px; }

.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 17px; font-weight: 700; color: var(--text);
  padding: 16px 0; cursor: pointer;
}
.back-btn:hover { color: var(--purple2); }

/* Detail blurred header like App Store */
.detail-hero {
  border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: 16px; position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 20px;
}
.detail-hero-bg {
  position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius-lg);
}
.detail-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(24px) brightness(0.3) saturate(1.5);
  transform: scale(1.1);
}
.detail-hero-content { position: relative; z-index: 1; display: flex; gap: 14px; align-items: flex-start; }
.detail-icon {
  width: 88px; height: 88px; border-radius: 20px; overflow: hidden;
  flex-shrink: 0; border: 2px solid rgba(255,255,255,0.2);
  position: relative;
}
.detail-icon img { width: 100%; height: 100%; object-fit: cover; }
.detail-icon-badge { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); }
.detail-info { flex: 1; }
.detail-name { font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 3px; line-height: 1.2; }
.detail-cat { font-size: 13px; color: rgba(255,255,255,0.6); font-weight: 600; margin-bottom: 8px; }
.detail-stats { display: flex; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.7); flex-wrap: wrap; }
.detail-stats span { display: flex; align-items: center; gap: 4px; }

.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.version-pill {
  font-size: 12px; font-weight: 700; color: var(--text2);
  background: var(--surface); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 20px;
}
.online-pill { font-size: 12px; font-weight: 700; color: var(--teal); }

.start-btn {
  width: 100%; padding: 15px;
  background: var(--grad-main);
  color: #fff; border: none; border-radius: var(--radius);
  font-size: 16px; font-weight: 900; cursor: pointer;
  box-shadow: 0 4px 24px rgba(124,58,237,0.45);
  transition: all 0.2s; margin-bottom: 16px;
  font-family: var(--font-body);
  letter-spacing: 0.3px;
}
.start-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124,58,237,0.55); }

/* Info sections */
.info-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 10px;
}
[data-theme="light"] .info-card { background: #fff; border-color: rgba(124,58,237,0.1); box-shadow: 0 2px 8px rgba(124,58,237,0.06); }
.info-card-title { font-size: 16px; font-weight: 900; color: var(--text); margin-bottom: 10px; }
.info-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-key { color: var(--text2); font-weight: 600; }
.info-val { color: var(--text); font-weight: 700; }
.info-val.online { color: var(--teal); }
.info-val.mod-yes { color: var(--orange); }
.info-about { font-size: 13px; color: var(--text2); line-height: 1.7; font-weight: 500; }
.info-about-item { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 6px; font-size: 13px; color: var(--text2); font-weight: 500; }

/* Read more */
.read-more { color: var(--blue2); font-size: 13px; font-weight: 700; cursor: pointer; margin-top: 6px; display: inline-block; }

/* Screenshots */
.screenshots { display: flex; gap: 8px; overflow-x: auto; margin-top: 4px; }
.screenshots::-webkit-scrollbar { display: none; }
.screenshot { flex-shrink: 0; width: 160px; height: 96px; border-radius: var(--radius-sm); overflow: hidden; background: var(--card2); }
.screenshot img { width: 100%; height: 100%; object-fit: cover; }

/* You might also like */
.yml-list { display: flex; gap: 10px; overflow-x: auto; }
.yml-list::-webkit-scrollbar { display: none; }
.yml-card {
  flex-shrink: 0; width: 165px; cursor: pointer;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: all 0.2s;
}
[data-theme="light"] .yml-card { background: #fff; border-color: rgba(124,58,237,0.1); }
.yml-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.yml-thumb { height: 90px; overflow: hidden; background: var(--card2); position: relative; }
.yml-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yml-body { padding: 8px 10px; }
.yml-name { font-size: 12px; font-weight: 800; color: var(--text); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yml-foot { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text2); }
.yml-get {
  font-size: 11px; font-weight: 800; color: var(--blue2);
  background: rgba(59,130,246,0.1); padding: 3px 10px; border-radius: 20px;
}

/* ======= LOCKER ======= */
.proc-screen {
  position: fixed; inset: 0; z-index: 300;
  background: var(--bg);
  display: none; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 20px 16px;
}
.proc-screen.active { display: flex; }

.proc-box {
  width: 100%; max-width: 420px; text-align: center;
  padding-top: 20px;
}
.proc-game-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
  margin-bottom: 24px; text-align: left;
}
.proc-icon { width: 50px; height: 50px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.proc-icon img { width: 100%; height: 100%; object-fit: cover; }
.proc-game-name { font-size: 15px; font-weight: 800; color: var(--text); }
.proc-game-sub { font-size: 12px; color: var(--text2); font-weight: 500; }

.proc-pct-big {
  font-family: var(--font-display);
  font-size: 80px; font-weight: 700;
  color: rgba(124,58,237,0.12);
  line-height: 1; margin-bottom: -20px; position: relative; z-index: 0;
  letter-spacing: -2px;
}
.proc-icon-center {
  position: relative; z-index: 1;
  width: 90px; height: 90px; margin: 0 auto 20px;
  background: var(--card); border: 2px solid var(--border2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow);
}
.proc-title { font-size: 20px; font-weight: 900; color: var(--text); margin-bottom: 4px; }
.proc-sub { font-size: 13px; color: var(--text2); margin-bottom: 20px; font-weight: 500; }
.proc-bar-label {
  display: flex; justify-content: space-between; font-size: 11px; font-weight: 800;
  color: var(--text2); letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 7px;
}
.proc-bar-label span:last-child { color: var(--blue2); font-size: 13px; }
.proc-bar { height: 7px; background: var(--surface); border-radius: 10px; overflow: hidden; }
.proc-fill {
  height: 100%; width: 0; border-radius: 10px;
  background: linear-gradient(90deg, var(--purple), var(--blue2));
  box-shadow: 0 0 10px rgba(124,58,237,0.6);
  transition: width 0.3s ease;
}

/* Locker Main */
.locker-screen {
  position: fixed; inset: 0; z-index: 280;
  display: none; overflow-y: auto;
}
.locker-screen.active { display: block; }
.locker-bg-layer {
  position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 15% 25%, rgba(124,58,237,0.18) 0%, transparent 55%),
              radial-gradient(ellipse at 85% 75%, rgba(37,99,235,0.12) 0%, transparent 55%),
              var(--bg);
}
.locker-grid {
  position: fixed; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(124,58,237,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.locker-content {
  max-width: 480px; margin: 0 auto; text-align: center;
  padding: 60px 20px 40px;
}
.locker-icon {
  width: 90px; height: 90px; border-radius: 24px; overflow: hidden;
  margin: 0 auto 20px;
  border: 2px solid rgba(124,58,237,0.5);
  box-shadow: var(--glow);
}
.locker-icon img { width: 100%; height: 100%; object-fit: cover; }
.locker-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; color: var(--text);
  letter-spacing: 0.5px; margin-bottom: 8px;
}
.locker-sub {
  font-size: 15px; color: var(--text2); margin-bottom: 24px;
  line-height: 1.6; font-weight: 600;
}
.locker-sub strong { color: var(--teal); font-weight: 800; }

.status-cards {
  display: flex; justify-content: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 28px;
}
.status-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 16px; text-align: center;
  min-width: 110px;
}
.sc-label { font-size: 9px; font-weight: 800; color: var(--text2); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }
.sc-val { font-size: 14px; font-weight: 800; color: var(--text); }
.sc-val.online { color: var(--teal); }

.inject-btn {
  width: 100%; padding: 16px;
  background: var(--grad-main);
  color: #fff; border: none; border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  letter-spacing: 2px; cursor: pointer; text-transform: uppercase;
  box-shadow: 0 4px 28px rgba(124,58,237,0.5);
  transition: all 0.2s;
}
.inject-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(124,58,237,0.6); }

/* Activation Popup */
.popup-screen {
  position: fixed; inset: 0; z-index: 350;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.popup-screen.active { display: flex; }
.popup-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
}
.popup-card {
  position: relative; z-index: 1; width: 100%; max-width: 360px;
  background: var(--card); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.8), var(--glow);
}
.popup-header {
  background: var(--purple); padding: 20px 20px 16px; text-align: center; position: relative;
}
.popup-close-x {
  position: absolute; top: 12px; left: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.2); border: none; color: #fff;
  font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.popup-phone {
  width: 200px; height: 130px; background: rgba(0,0,0,0.4);
  border-radius: 12px; margin: 0 auto;
  padding: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.phone-app {
  width: 38px; height: 38px; border-radius: 9px; background: rgba(255,255,255,0.1);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.phone-app.active { box-shadow: 0 0 0 2px rgba(255,255,255,0.6); }
.phone-app img { width: 100%; height: 100%; object-fit: cover; }
.popup-body { padding: 20px; text-align: center; }
.popup-title { font-size: 20px; font-weight: 900; color: var(--text); margin-bottom: 8px; }
.popup-desc { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 20px; font-weight: 500; }
.popup-btn {
  width: 100%; padding: 14px;
  background: var(--grad-main);
  color: #fff; border: none; border-radius: var(--radius);
  font-size: 16px; font-weight: 900; cursor: pointer;
  font-family: var(--font-body);
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}

/* Device selection */
.device-section {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-top: 14px;
}
.device-hint { font-size: 14px; color: var(--text2); text-align: center; margin-bottom: 12px; font-weight: 600; }
.dev-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px; margin-bottom: 10px;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 15px; font-weight: 800; cursor: pointer; letter-spacing: 1px;
  transition: all 0.2s; font-family: var(--font-body);
}
.dev-btn:hover { border-color: var(--purple); color: var(--purple2); }
.dev-btn.sel { border-color: var(--purple); background: rgba(124,58,237,0.12); color: var(--purple2); }
.cont-btn {
  width: 100%; padding: 14px;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius); color: var(--text2);
  font-size: 15px; font-weight: 900; cursor: pointer;
  font-family: var(--font-body); letter-spacing: 0.5px; transition: all 0.2s;
}
.cont-btn.ready {
  background: var(--grad-main); border-color: transparent; color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}

/* Scrape progress */
.scrape-box {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; text-align: center; margin-top: 14px;
}
.scrape-title { font-size: 18px; font-weight: 900; color: var(--text); margin-bottom: 4px; }
.scrape-sub { font-size: 12px; color: var(--text2); margin-bottom: 14px; font-weight: 500; }
.scrape-bar { height: 6px; background: var(--surface); border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.scrape-fill { height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--teal), var(--blue2)); transition: width 0.3s; }
.scrape-pct { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--teal); }
.scrape-pct-label { font-size: 11px; color: var(--text2); }

/* Verify screen */
.verify-box { padding-top: 14px; }
.verify-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; color: var(--text);
  text-align: center; margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 2px;
}
.verify-sub {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; color: var(--text2); margin-bottom: 14px; font-weight: 600;
}
.verify-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 6px var(--teal); }

.verify-instructions {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 14px; text-align: left;
}
.vi-intro { font-size: 14px; color: var(--text2); line-height: 1.6; margin-bottom: 12px; font-weight: 500; }
.vi-intro strong { color: var(--text); }
.step {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px;
}
.step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--purple); color: #fff;
  font-size: 13px; font-weight: 800; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.step-text { font-size: 13px; color: var(--text2); line-height: 1.5; padding-top: 4px; font-weight: 500; }

.offer-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.offer-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); padding: 13px 14px;
  cursor: pointer; text-decoration: none; color: var(--text);
  transition: all 0.2s;
}
.offer-item:hover { background: var(--card2); border-color: var(--purple); transform: translateX(3px); }
.offer-text { font-size: 13px; font-weight: 700; color: var(--text2); flex: 1; line-height: 1.4; }
.offer-ea {
  font-size: 11px; font-weight: 900; color: #fff;
  background: var(--mod-bg); padding: 3px 8px; border-radius: 4px; flex-shrink: 0;
  letter-spacing: 0.5px;
}

.waiting-block {
  background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 14px; font-weight: 700; color: var(--text); font-style: italic;
  margin-bottom: 8px;
}
.wait-spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(124,58,237,0.3); border-top-color: var(--purple);
  animation: spin 0.8s linear infinite; flex-shrink: 0;
}
.waiting-note { font-size: 11px; color: var(--text2); text-align: center; font-weight: 500; }

.verify-timer { font-size: 12px; color: var(--text2); text-align: center; margin: 10px 0; font-weight: 600; }
.final-btn {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, var(--teal), var(--blue2));
  color: #fff; border: none; border-radius: var(--radius);
  font-size: 16px; font-weight: 900; cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,212,180,0.35);
  font-family: var(--font-body); letter-spacing: 0.5px;
  transition: all 0.2s;
}
.final-btn:hover { transform: translateY(-2px); }

/* ======= TAB PAGE ======= */
.tab-page { padding-bottom: 16px; }
.tab-title { font-size: 26px; font-weight: 900; color: var(--text); margin-bottom: 18px; }
.full-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }

/* ======= DESKTOP ======= */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .desktop-nav { display: flex; }
  .main { padding: 28px 32px 40px; max-width: 1280px; }

  /* Hero cards — fixed size on desktop */
  .hero-card { width: 260px; max-width: 260px; }
  .hero-cover-wrap { height: 180px; }
  .hero-cover-img { height: 180px; }

  /* Horizontal scroll cards */
  .hcard { width: 155px; }
  .hcard-thumb { width: 155px; height: 155px; }

  /* Grid cards */
  .grid2 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .gcard { display: flex; flex-direction: column; }
  .gcard-img { aspect-ratio: 4/3; }

  /* Full grid */
  .full-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
}

@media (min-width: 1024px) {
  /* 2-column layout: main content + sidebar */
  .main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
  }
  #featuredSection  { grid-column: 1; grid-row: 1; }
  #trendingSection  { grid-column: 1; grid-row: 2; }
  #gamesSection     { grid-column: 1; grid-row: 3; }
  #appsSection      {
    grid-column: 2;
    grid-row: 1 / 4;
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }

  /* In the sidebar, use single column grid */
  #appsSection .grid2 { grid-template-columns: 1fr; }

  /* Sidebar app cards — horizontal layout */
  #appsSection .gcard {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px;
  }
  #appsSection .gcard-img {
    width: 56px; height: 56px; flex-shrink: 0;
    aspect-ratio: 1/1;
    border-radius: var(--radius-sm);
  }
  #appsSection .gcard-img-badge { top: 4px; right: 4px; }
  #appsSection .gcard-body { padding: 0; }

  /* Hero slider */
  .hero-card { width: 260px; max-width: 260px; }

  /* Games grid on main column */
  #gamesSection .grid2 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (max-width: 767px) {
  .desktop-nav { display: none; }
}
