/* ===== RESET & BASE ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  background:#0e0f18;
  color:#fff;
  min-width:320px;
  min-height:100vh;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
button{cursor:pointer;border:none;background:none;font:inherit;color:inherit}
input,select{font:inherit;color:inherit}
img{max-width:100%;display:block}
ul{list-style:none;margin:0;padding:0}

/* ===== UTILITY ===== */
.desktop-only{display:flex}
.mobile-only{display:none}
@media(max-width:865px){
  .desktop-only{display:none!important}
  .mobile-only{display:flex!important}
  .mobile-header.mobile-only{display:block!important}
}

/* ===== BACKGROUND GRADIENT ===== */
body::before{
  content:'';
  position:fixed;
  top:0;left:0;right:0;
  height:600px;
  background:radial-gradient(ellipse at 50% 0%,rgba(124,92,252,.15) 0%,rgba(14,15,24,0) 70%);
  pointer-events:none;
  z-index:0;
}

/* ===== HERO BANNER ===== */
.hero{
  position:relative;
  padding:80px 24px 72px;
  overflow:hidden;
  background-size:cover;
  background-position:center right;
  background-repeat:no-repeat;
}
.hero::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(14,15,24,.92) 0%,rgba(14,15,24,.7) 50%,rgba(14,15,24,.3) 100%);
  z-index:1;
}
.hero-inner{
  max-width:1380px;margin:0 auto;
  position:relative;z-index:2;
  padding-left:24px;
}
.hero-text{max-width:520px;position:relative;z-index:2}
.hero-eyebrow{
  font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1.5px;
  color:#7c5cfc;display:block;margin-bottom:14px;
}
.hero-heading{
  font-size:clamp(32px,5vw,48px);font-weight:900;line-height:1.15;
  margin-bottom:18px;letter-spacing:-.5px;
}
.hero-desc{
  font-size:15px;color:rgba(255,255,255,.6);line-height:1.7;
  max-width:440px;margin-bottom:28px;
}
.hero-cta{
  display:inline-flex;align-items:center;gap:8px;
  padding:14px 28px;border-radius:12px;
  background:linear-gradient(135deg,#7c5cfc,#6d4de8);
  color:#fff;font-size:14px;font-weight:700;
  transition:all .25s;
}
.hero-cta:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(124,92,252,.35)}
@media(max-width:865px){
  .hero{padding:48px 16px 40px;background-position:center}
  .hero::after{background:linear-gradient(180deg,rgba(14,15,24,.85) 0%,rgba(14,15,24,.7) 100%)}
  .hero-text{max-width:100%;text-align:center}
  .hero-desc{margin-left:auto;margin-right:auto}
  .hero-cta{margin:0 auto}
}

/* ===== DESKTOP HEADER ===== */
.header{
  position:sticky;top:0;z-index:100;
  background:rgba(14,15,24,.45);
  backdrop-filter:blur(24px) saturate(1.4);
  -webkit-backdrop-filter:blur(24px) saturate(1.4);
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 4px 30px rgba(0,0,0,.25);
  overflow:visible;
}
.header-inner{
  max-width:1380px;
  margin:0 auto;
  padding:0 24px 0 6px;
  height:64px;
  display:flex;
  align-items:center;
  gap:12px;
  overflow:visible;
}
.brand{
  display:flex;align-items:center;flex-shrink:0;
  overflow:visible;
}
.brand-icon{
  display:flex;align-items:center;
  overflow:visible;
}
.brand-icon img{
  width:56px;height:56px;
  object-fit:contain;
  flex-shrink:0;
}
.brand-text{
  font-weight:800;
  font-size:16px;
  letter-spacing:1.5px;
  background:linear-gradient(135deg,#7c5cfc,#a78bfa);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.header-main{
  flex:1;display:flex;align-items:center;justify-content:space-between;gap:16px;
}
.header-nav{display:flex;align-items:center;gap:8px}
.nav-chip{
  display:flex;align-items:center;gap:6px;
  padding:8px 14px;
  border-radius:10px;
  font-size:13px;font-weight:600;
  color:rgba(255,255,255,.65);
  transition:all .2s;
}
.nav-chip:hover{color:#fff;background:rgba(255,255,255,.06)}
.nav-chip--active{
  background:rgba(124,92,252,.15);
  color:#a78bfa;
}
.nav-chip--active:hover{background:rgba(124,92,252,.25)}
.search-btn{
  display:flex;align-items:center;gap:8px;
  padding:8px 16px;
  border-radius:10px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  font-size:13px;font-weight:500;
  color:rgba(255,255,255,.5);
  transition:all .2s;
  min-width:180px;
}
.search-btn:hover{border-color:rgba(124,92,252,.4);color:rgba(255,255,255,.7)}
.header-tools{display:flex;align-items:center;gap:6px}
.hdr-balance-chip{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 14px;border-radius:12px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
  color:#fff;font-size:14px;font-weight:600;
  cursor:pointer;transition:all .2s;
}
.hdr-balance-chip:hover{background:rgba(255,255,255,.1)}
.hdr-balance-icon{display:flex;align-items:center;color:rgba(255,255,255,.5)}
.hdr-topup-btn{
  padding:8px 18px;border-radius:10px;
  background:linear-gradient(135deg,#7c5cfc,#6d4de8);
  color:#fff;font-size:13px;font-weight:600;
  border:none;cursor:pointer;transition:all .2s;
}
.hdr-topup-btn:hover{background:linear-gradient(135deg,#8b6dff,#7c5cfc);transform:translateY(-1px)}
.tool-btn--login{
  padding:8px 20px;
  border-radius:10px;
  background:linear-gradient(135deg,#7c5cfc,#6d4de8);
  font-size:13px;font-weight:600;
  transition:all .2s;
}
.tool-btn--login:hover{background:linear-gradient(135deg,#8b6dff,#7c5cfc);transform:translateY(-1px)}
.tool-btn--icon{
  width:36px;height:36px;
  display:flex;align-items:center;justify-content:center;
  border-radius:10px;
  color:rgba(255,255,255,.5);
  transition:all .2s;
  position:relative;
}
.tool-btn--icon:hover{color:#fff;background:rgba(255,255,255,.06)}
.notification-dot{
  position:absolute;top:6px;right:6px;
  width:7px;height:7px;
  background:#ef4444;
  border-radius:50%;
  border:2px solid #0e0f18;
}
.tool-btn--flag{
  width:36px;height:36px;
  display:flex;align-items:center;justify-content:center;
  border-radius:10px;
  font-size:11px;font-weight:700;
  color:rgba(255,255,255,.6);
  border:1px solid rgba(255,255,255,.1);
  transition:all .2s;
}
.tool-btn--flag:hover{border-color:rgba(124,92,252,.4);color:#fff}

/* ===== MOBILE HEADER ===== */
.mobile-header{
  position:sticky;top:0;z-index:100;
  background:rgba(14,15,24,.45);
  backdrop-filter:blur(24px) saturate(1.4);
  -webkit-backdrop-filter:blur(24px) saturate(1.4);
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 4px 30px rgba(0,0,0,.25);
}
.mobile-header-bar{
  padding:0 16px;
  display:flex;align-items:center;justify-content:space-between;
  width:100%;
  height:56px;
}
#balanceChipMobile{margin-left:auto}
#balanceChipMobilePf{margin-left:auto}
.mobile-header-right{
  flex:1;display:flex;align-items:center;gap:8px;
}
.mobile-search-bar{
  flex:1;display:flex;align-items:center;gap:8px;
  padding:8px 12px;
  border-radius:10px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  font-size:13px;
  color:rgba(255,255,255,.45);
}
.mobile-login-btn{
  padding:8px 16px;
  border-radius:10px;
  background:linear-gradient(135deg,#7c5cfc,#6d4de8);
  font-size:13px;font-weight:600;
  white-space:nowrap;
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay{
  position:fixed;inset:0;z-index:200;
  background:rgba(0,0,0,.7);
  backdrop-filter:blur(8px);
  display:none;
  align-items:flex-start;
  justify-content:center;
  padding:80px 20px 20px;
}
.search-overlay.open{display:flex}
.search-overlay-inner{
  width:100%;max-width:600px;
  background:#1a1b2e;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  overflow:hidden;
  animation:slideDown .2s ease;
}
@keyframes slideDown{from{opacity:0;transform:translateY(-16px)}to{opacity:1;transform:translateY(0)}}
.search-overlay-header{
  display:flex;align-items:center;gap:12px;
  padding:16px 20px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.search-input-wrap{
  flex:1;display:flex;align-items:center;gap:10px;
  color:rgba(255,255,255,.4);
}
.search-input-wrap input{
  flex:1;
  background:none;border:none;outline:none;
  font-size:15px;color:#fff;
}
.search-input-wrap input::placeholder{color:rgba(255,255,255,.35)}
.search-close{
  font-size:24px;
  color:rgba(255,255,255,.4);
  transition:color .2s;
}
.search-close:hover{color:#fff}
.search-results{
  padding:20px;
  min-height:120px;
  max-height:400px;
  overflow-y:auto;
}
.search-idle{color:rgba(255,255,255,.35);font-size:14px;text-align:center;padding:20px 0}
.search-result-item{
  display:flex;align-items:center;gap:12px;
  padding:10px 12px;
  border-radius:10px;
  transition:background .15s;
  cursor:pointer;
}
.search-result-item:hover{background:rgba(255,255,255,.05)}
.search-result-icon{
  width:36px;height:36px;
  border-radius:8px;
  background:rgba(124,92,252,.15);
  display:flex;align-items:center;justify-content:center;
  font-size:14px;font-weight:700;
  color:#a78bfa;
  flex-shrink:0;
}
.search-result-text{
  font-size:14px;font-weight:500;
}
.search-result-badge{
  margin-left:auto;
  font-size:11px;
  color:rgba(255,255,255,.35);
  background:rgba(255,255,255,.05);
  padding:2px 8px;border-radius:6px;
}

/* ===== TOP ROW GAME TABS ===== */
.top-row{
  position:relative;z-index:1;
  max-width:1380px;
  margin:0 auto;
  padding:16px 24px 0;
}
.top-row-scroller{
  display:flex;gap:6px;
  overflow-x:auto;
  scrollbar-width:none;
  -ms-overflow-style:none;
  padding-bottom:4px;
  cursor:grab;
  user-select:none;
  -webkit-user-select:none;
}
.top-row-scroller::-webkit-scrollbar{display:none}
.top-tab{
  display:flex;align-items:center;gap:8px;
  padding:7px 14px;
  border-radius:10px;
  flex-shrink:0;
  white-space:nowrap;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
  font-size:13px;font-weight:500;
  color:rgba(255,255,255,.6);
  transition:all .2s;
  cursor:pointer;
  text-decoration:none;
}
.top-tab:hover{
  background:rgba(124,92,252,.1);
  border-color:rgba(124,92,252,.25);
  color:#fff;
}
.top-tab-icon{
  width:20px;height:20px;
  border-radius:4px;
  display:flex;align-items:center;justify-content:center;
  font-size:10px;font-weight:800;
  flex-shrink:0;
  overflow:hidden;
}
.top-tab-icon img{
  width:100%;height:100%;
  object-fit:cover;
  border-radius:4px;
}
.top-tab-icon-placeholder{
  width:20px;height:20px;
  border-radius:4px;
  display:flex;align-items:center;justify-content:center;
  font-size:9px;font-weight:800;
  color:#fff;
}

/* ===== CATALOG HEADER ===== */
.catalog-header{
  position:relative;z-index:1;
  max-width:1380px;
  margin:0 auto;
  padding:28px 24px 0;
}
.breadcrumbs{
  display:flex;align-items:center;gap:8px;
  font-size:12px;
  color:rgba(255,255,255,.35);
  margin-bottom:16px;
}
.breadcrumbs a{color:rgba(255,255,255,.5);transition:color .2s}
.breadcrumbs a:hover{color:#a78bfa}
.breadcrumb-sep{color:rgba(255,255,255,.2)}
.catalog-title{
  font-size:clamp(24px,4vw,36px);
  font-weight:900;
  letter-spacing:1px;
  line-height:1.1;
  margin-bottom:8px;
}
.catalog-subtitle{
  font-size:clamp(12px,2vw,14px);
  color:rgba(255,255,255,.4);
  font-weight:500;
  letter-spacing:2px;
  margin-bottom:24px;
}
.catalog-toolbar{
  display:flex;align-items:center;gap:12px;
  flex-wrap:wrap;
}
.catalog-search-wrap{
  display:flex;align-items:center;gap:8px;
  padding:9px 14px;
  border-radius:10px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  color:rgba(255,255,255,.4);
  flex:1;
  max-width:320px;
  min-width:180px;
  transition:border-color .2s;
}
.catalog-search-wrap:focus-within{border-color:rgba(124,92,252,.5)}
.catalog-search-wrap input{
  flex:1;background:none;border:none;outline:none;
  font-size:13px;color:#fff;
}
.catalog-search-wrap input::placeholder{color:rgba(255,255,255,.3)}
.catalog-sort{
  display:flex;align-items:center;gap:8px;
}
.catalog-sort label{
  font-size:13px;color:rgba(255,255,255,.4);white-space:nowrap;
}
.catalog-sort select{
  padding:9px 12px;
  border-radius:10px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  font-size:13px;
  color:rgba(255,255,255,.7);
  outline:none;
  cursor:pointer;
  appearance:auto;
}
.catalog-sort select option{background:#1a1b2e;color:#fff}

/* ===== GAME CARDS GRID ===== */
.catalog-grid-wrap{
  position:relative;z-index:1;
  max-width:1380px;
  margin:0 auto;
  padding:24px 24px 60px;
}
.catalog-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:16px;
}

/* Single game card */
.game-card{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  background:#15162a;
  border:1px solid rgba(255,255,255,.06);
  transition:all .3s ease;
  cursor:pointer;
  text-decoration:none;
  display:flex;
  flex-direction:column;
}
.game-card:hover{
  transform:translateY(-4px);
  border-color:rgba(124,92,252,.3);
  box-shadow:0 12px 40px rgba(124,92,252,.12);
}
.game-card-image{
  position:relative;
  width:100%;
  aspect-ratio:16/10;
  overflow:hidden;
}
.game-card-image img{
  width:100%;height:100%;
  object-fit:cover;
  transition:transform .4s ease;
}
.game-card:hover .game-card-image img{
  transform:scale(1.05);
}
.game-card-gradient{
  position:absolute;
  bottom:0;left:0;right:0;
  height:60%;
  background:linear-gradient(to top,#15162a 0%,transparent 100%);
  pointer-events:none;
}
.game-card-badge{
  position:absolute;
  top:10px;right:10px;
  padding:3px 8px;
  border-radius:6px;
  font-size:10px;font-weight:700;
  text-transform:uppercase;
  letter-spacing:.5px;
}
.badge-new{background:rgba(34,197,94,.2);color:#4ade80;border:1px solid rgba(34,197,94,.3)}
.badge-hot{background:rgba(239,68,68,.2);color:#f87171;border:1px solid rgba(239,68,68,.3)}
.badge-update{background:rgba(234,179,8,.2);color:#fbbf24;border:1px solid rgba(234,179,8,.3)}
.game-card-body{
  padding:14px 16px 16px;
  flex:1;
  display:flex;
  flex-direction:column;
}
.game-card-name{
  font-size:15px;
  font-weight:700;
  margin-bottom:6px;
  line-height:1.3;
}
.game-card-meta{
  display:flex;align-items:center;gap:8px;
  margin-top:auto;
}
.game-card-count{
  font-size:12px;
  color:rgba(255,255,255,.4);
}
.game-card-count strong{
  color:#a78bfa;
  font-weight:600;
}
.game-card-price{
  margin-left:auto;
  font-size:12px;
  color:rgba(255,255,255,.35);
}
.game-card-price strong{
  color:#4ade80;
  font-weight:600;
}
.game-card-action{
  display:flex;align-items:center;gap:4px;
  margin-top:12px;
  padding:8px 0;
  border-top:1px solid rgba(255,255,255,.06);
  font-size:12px;
  font-weight:600;
  color:#7c5cfc;
  letter-spacing:.5px;
  text-transform:uppercase;
  transition:color .2s;
}
.game-card:hover .game-card-action{color:#a78bfa}
.game-card-action svg{transition:transform .2s}
.game-card:hover .game-card-action svg{transform:translateX(3px)}

/* ===== FOOTER ===== */
.footer{
  position:relative;z-index:1;
  background:#0a0b14;
  border-top:1px solid rgba(255,255,255,.05);
}
.footer-inner{
  max-width:1380px;
  margin:0 auto;
  padding:48px 24px 32px;
}
.footer-top{
  display:flex;gap:48px;
  margin-bottom:40px;
}
.footer-brand{flex:1;max-width:340px}
.footer-brand .brand{margin-bottom:16px}
.footer-desc{
  font-size:13px;
  color:rgba(255,255,255,.35);
  line-height:1.6;
}
.footer-links{
  flex:1;
  display:flex;
  gap:48px;
  justify-content:flex-end;
}
.footer-col{display:flex;flex-direction:column;gap:10px}
.footer-col h4{
  font-size:13px;
  font-weight:700;
  color:rgba(255,255,255,.6);
  text-transform:uppercase;
  letter-spacing:1px;
  margin-bottom:4px;
}
.footer-col a{
  font-size:13px;
  color:rgba(255,255,255,.35);
  transition:color .2s;
}
.footer-col a:hover{color:#a78bfa}
.footer-bottom{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  padding-top:24px;
  border-top:1px solid rgba(255,255,255,.05);
}
.footer-bottom p{font-size:12px;color:rgba(255,255,255,.25)}
.footer-socials{display:flex;gap:12px}
.footer-socials a{
  width:36px;height:36px;
  display:flex;align-items:center;justify-content:center;
  border-radius:10px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
  color:rgba(255,255,255,.4);
  transition:all .2s;
}
.footer-socials a:hover{
  color:#a78bfa;
  border-color:rgba(124,92,252,.3);
  background:rgba(124,92,252,.1);
}

/* ===== MOBILE BOTTOM TAB BAR ===== */
.bottom-tapbar{
  position:fixed;bottom:0;left:0;right:0;z-index:100;
  background:#0e0f18;
  border-top:1px solid rgba(255,255,255,.08);
  padding-bottom:env(safe-area-inset-bottom,0);
}
.bottom-tapbar ul{
  display:flex;
  list-style:none;
  margin:0;padding:0;
  width:100%;
}
.bottom-tapbar li{flex:1;text-align:center}
.bottom-tapbar a{
  display:flex;flex-direction:column;align-items:center;gap:4px;
  padding:10px 4px 8px;
  font-size:10px;font-weight:500;
  color:rgba(255,255,255,.4);
  transition:color .2s;
}
.bottom-tapbar a:hover{color:rgba(255,255,255,.6)}
.bottom-tapbar a.tab-active{color:#7c5cfc}

/* ===== NO RESULTS ===== */
.catalog-empty{
  text-align:center;
  padding:60px 20px;
  color:rgba(255,255,255,.3);
  font-size:15px;
}

/* ===== GAME DETAIL OVERLAY ===== */
.game-detail-overlay{
  position:fixed;inset:0;z-index:210;
  background:rgba(0,0,0,.75);
  backdrop-filter:blur(10px);
  display:none;
  align-items:flex-start;
  justify-content:center;
  padding:40px 20px 20px;
  overflow-y:auto;
}
.game-detail-overlay.open{display:flex}
.game-detail-inner{
  width:100%;max-width:900px;
  background:#12131f;
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  overflow:hidden;
  animation:slideDown .25s ease;
}
.game-detail-header{
  padding:24px 28px;
  border-bottom:1px solid rgba(255,255,255,.06);
  display:flex;align-items:center;gap:16px;
  background:rgba(255,255,255,.02);
}
.game-detail-back{
  display:flex;align-items:center;gap:6px;
  padding:8px 14px;
  border-radius:10px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  font-size:13px;font-weight:600;
  color:rgba(255,255,255,.7);
  transition:all .2s;
  flex-shrink:0;
}
.game-detail-back:hover{background:rgba(255,255,255,.1);color:#fff}
.game-detail-title-wrap{
  display:flex;align-items:center;gap:14px;
  min-width:0;
}
.game-detail-icon-wrap{
  width:48px;height:48px;
  border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  font-size:18px;font-weight:800;
  color:rgba(255,255,255,.85);
  flex-shrink:0;
}
.game-detail-title{
  font-size:22px;font-weight:800;
  line-height:1.2;
  margin:0;
}
.game-detail-subtitle{
  font-size:13px;
  color:rgba(255,255,255,.4);
  font-weight:500;
  margin:2px 0 0;
}
.game-detail-desc{
  font-size:13px;color:rgba(255,255,255,.45);line-height:1.6;
  padding:12px 28px 4px;margin:0;max-width:640px;
}
.game-detail-mods{
  padding:24px 28px 32px;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:14px;
}

/* ===== MODIFICATION CARD ===== */
.mod-card{
  background:#1a1b2e;
  border:1px solid rgba(255,255,255,.06);
  border-radius:14px;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:12px;
  transition:all .25s ease;
}
.mod-card:hover{
  border-color:rgba(124,92,252,.3);
  box-shadow:0 8px 30px rgba(124,92,252,.1);
  transform:translateY(-2px);
}
.mod-card-head{
  display:flex;align-items:center;gap:12px;
}
.mod-card-icon{
  width:40px;height:40px;
  border-radius:10px;
  background:rgba(124,92,252,.15);
  display:flex;align-items:center;justify-content:center;
  font-size:16px;font-weight:800;
  color:#a78bfa;
  flex-shrink:0;
}
.mod-card-info{
  min-width:0;flex:1;
}
.mod-card-name{
  font-size:14px;font-weight:700;
  line-height:1.3;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mod-card-desc{
  font-size:12px;
  color:rgba(255,255,255,.35);
  margin-top:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mod-card-footer{
  display:flex;align-items:center;gap:10px;
  flex-wrap:wrap;
}
.mod-status{
  display:flex;align-items:center;gap:5px;
  font-size:11px;font-weight:600;
  padding:3px 8px;
  border-radius:6px;
}
.mod-status-dot{
  width:6px;height:6px;
  border-radius:50%;
  display:inline-block;
}
.mod-status--ok{
  background:rgba(34,197,94,.12);
  color:#4ade80;
}
.mod-status--ok .mod-status-dot{background:#4ade80}
.mod-status--warn{
  background:rgba(234,179,8,.12);
  color:#fbbf24;
}
.mod-status--warn .mod-status-dot{background:#fbbf24}
.mod-status--bad{
  background:rgba(239,68,68,.12);
  color:#f87171;
}
.mod-status--bad .mod-status-dot{background:#f87171}
.mod-card-price{
  font-size:14px;font-weight:700;
  color:#4ade80;
  margin-left:auto;
}
.mod-card-sales{
  font-size:11px;
  color:rgba(255,255,255,.3);
}
.mod-card-buy{
  width:100%;
  padding:10px;
  border-radius:10px;
  background:linear-gradient(135deg,#7c5cfc,#6d4de8);
  font-size:13px;font-weight:600;
  color:#fff;
  transition:all .2s;
  text-align:center;
}
.mod-card-buy:hover{
  background:linear-gradient(135deg,#8b6dff,#7c5cfc);
  transform:translateY(-1px);
  box-shadow:0 4px 16px rgba(124,92,252,.3);
}

/* ===== RESPONSIVE ===== */
@media(max-width:1100px){
  .catalog-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
}
@media(max-width:865px){
  .top-row{padding:12px 16px 0}
  .catalog-header{padding:20px 16px 0}
  .catalog-grid-wrap{padding:16px 16px 100px}
  .catalog-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
  .game-card-body{padding:10px 12px 12px}
  .game-card-name{font-size:13px}
  .footer-top{flex-direction:column;gap:32px}
  .footer-links{justify-content:flex-start;flex-wrap:wrap;gap:32px}
  .footer-bottom{flex-direction:column;gap:16px;text-align:center}
  .footer-inner{padding-bottom:80px}
  .catalog-toolbar{flex-direction:column;align-items:stretch}
  .catalog-search-wrap{max-width:none}
  .game-detail-overlay{padding:0}
  .game-detail-inner{border-radius:0;min-height:100vh}
  .game-detail-header{padding:16px;flex-wrap:wrap;gap:12px}
  .game-detail-mods{padding:16px;grid-template-columns:1fr}
  .game-detail-title{font-size:18px}
}
@media(max-width:480px){
  .catalog-grid{grid-template-columns:repeat(2,1fr);gap:10px}
}

/* ===== MOD DETAIL OVERLAY ===== */
.mod-detail-overlay{
  position:fixed;inset:0;z-index:220;
  background:rgba(0,0,0,.82);backdrop-filter:blur(14px);
  display:none;align-items:flex-start;justify-content:center;
  padding:24px;overflow-y:auto;
}
.mod-detail-overlay.open{display:flex}

.cd-inner{
  width:100%;max-width:860px;
  background:#12131f;border:1px solid rgba(255,255,255,.08);
  border-radius:20px;overflow:hidden;
  animation:slideDown .25s ease;
}
.cd-header{
  padding:24px 28px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.02);
}
.cd-back{
  display:inline-flex;align-items:center;gap:6px;
  padding:8px 14px;border-radius:10px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);
  font-size:13px;font-weight:600;color:rgba(255,255,255,.7);
  cursor:pointer;transition:all .2s;margin-bottom:16px;
}
.cd-back:hover{background:rgba(255,255,255,.1);color:#fff}
.cd-title-row{display:flex;align-items:center;gap:14px}
.cd-icon{
  width:56px;height:56px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  font-size:22px;font-weight:800;color:rgba(255,255,255,.85);flex-shrink:0;
}
img.cd-icon{object-fit:cover;border:1px solid rgba(255,255,255,.1)}
.cd-title-info{min-width:0;flex:1}
.cd-title{font-size:24px;font-weight:800;line-height:1.2;margin:0 0 6px}
.cd-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cd-game-tag{
  font-size:12px;padding:3px 10px;border-radius:6px;
  background:rgba(124,92,252,.15);color:#a78bfa;font-weight:600;
}
.cd-sales{font-size:12px;color:rgba(255,255,255,.35)}

.cd-status{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;padding:3px 8px;border-radius:6px}
.cd-status-dot{width:6px;height:6px;border-radius:50%;display:inline-block}
.cd-status--ok{background:rgba(34,197,94,.12);color:#4ade80}
.cd-status--ok .cd-status-dot{background:#4ade80}
.cd-status--warn{background:rgba(234,179,8,.12);color:#fbbf24}
.cd-status--warn .cd-status-dot{background:#fbbf24}
.cd-status--bad{background:rgba(239,68,68,.12);color:#f87171}
.cd-status--bad .cd-status-dot{background:#f87171}

/* Gallery */
.cd-gallery{
  padding:20px 28px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.01);
}
.cd-gallery-stage{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  border-radius:16px;
  overflow:hidden;
  background:#0e0f18;
  border:1px solid rgba(255,255,255,.08);
}
.cd-gallery-img{
  width:100%;height:100%;
  object-fit:cover;
  transition:opacity .25s ease;
}
.cd-gallery-arr{
  position:absolute;top:50%;transform:translateY(-50%);
  width:36px;height:36px;border-radius:50%;
  background:rgba(0,0,0,.55);backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.8);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:all .2s;z-index:2;
}
.cd-gallery-arr:hover{background:rgba(0,0,0,.75);color:#fff}
.cd-gallery-prev{left:10px}
.cd-gallery-next{right:10px}
.cd-gallery-dots{
  display:flex;align-items:center;justify-content:center;
  gap:6px;margin-top:12px;
}
.cd-gallery-dot{
  width:8px;height:8px;border-radius:50%;
  background:rgba(255,255,255,.2);border:none;
  cursor:pointer;transition:all .2s;padding:0;
}
.cd-gallery-dot--active{background:#7c5cfc;transform:scale(1.3)}
.cd-gallery-dot:hover{background:rgba(255,255,255,.4)}

/* Full description */
.cd-video{
  padding:0 28px 8px;
}
.cd-video iframe,.cd-video video{
  width:100%;aspect-ratio:16/9;border-radius:14px;
  background:#000;border:1px solid rgba(255,255,255,.06);
}
.cd-full-desc{
  padding:16px 28px;
  font-size:14px;line-height:1.7;
  color:rgba(255,255,255,.55);
  border-bottom:1px solid rgba(255,255,255,.06);
}

/* Plans */
.cd-plans-wrap{padding:24px 28px;border-bottom:1px solid rgba(255,255,255,.06)}
.cd-section-label{font-size:15px;font-weight:700;margin-bottom:14px}
.cd-plans{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.cd-plan{
  position:relative;padding:20px 16px;border-radius:14px;
  background:#1a1b2e;border:1px solid rgba(255,255,255,.06);
  text-align:center;transition:all .2s;
}
.cd-plan:hover{border-color:rgba(124,92,252,.3)}
.cd-plan--pop{border-color:rgba(124,92,252,.4);background:rgba(124,92,252,.08)}
.cd-plan-badge{
  position:absolute;top:-8px;left:50%;transform:translateX(-50%);
  padding:2px 10px;border-radius:6px;background:#7c5cfc;
  font-size:10px;font-weight:700;white-space:nowrap;
}
.cd-plan-dur{font-size:14px;font-weight:600;color:rgba(255,255,255,.6);margin-bottom:8px}
.cd-plan-price{font-size:22px;font-weight:800;color:#4ade80;margin-bottom:12px}
.cd-plan-buy{
  width:100%;padding:10px;border-radius:10px;border:none;
  background:linear-gradient(135deg,#7c5cfc,#6d4de8);
  font-size:13px;font-weight:600;color:#fff;cursor:pointer;transition:all .2s;
}
.cd-plan-buy:hover{background:linear-gradient(135deg,#8b6dff,#7c5cfc);transform:translateY(-1px)}

/* Tabs */
.cd-tabs{
  display:flex;gap:4px;padding:0 28px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.02);
}
.cd-tab{
  padding:14px 20px;font-size:13px;font-weight:600;
  color:rgba(255,255,255,.45);border:none;background:none;
  border-bottom:2px solid transparent;cursor:pointer;transition:all .2s;
}
.cd-tab:hover{color:rgba(255,255,255,.7)}
.cd-tab--active{color:#a78bfa;border-bottom-color:#7c5cfc}
.cd-panel{padding:24px 28px}
.cd-panel--hide{display:none}

/* Feature sections */
.cd-feat-sec{
  border:1px solid rgba(255,255,255,.06);border-radius:12px;
  margin-bottom:10px;overflow:hidden;
}
.cd-feat-hd{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 16px;cursor:pointer;transition:background .2s;
}
.cd-feat-hd:hover{background:rgba(255,255,255,.03)}
.cd-feat-title{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:700;letter-spacing:.5px}
.cd-feat-ico{
  width:28px;height:28px;border-radius:8px;
  background:rgba(124,92,252,.15);
  display:inline-flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:800;color:#a78bfa;
}
.cd-feat-arr{transition:transform .2s;color:rgba(255,255,255,.4)}
.cd-feat-sec.open .cd-feat-arr{transform:rotate(180deg)}
.cd-feat-list{max-height:0;overflow:hidden;transition:max-height .3s ease}
.cd-feat-sec.open .cd-feat-list{max-height:600px}
.cd-feat-item{
  padding:10px 16px;font-size:13px;color:rgba(255,255,255,.55);
  border-top:1px solid rgba(255,255,255,.04);
}

/* Systems */
.cd-sys p{padding:10px 0;font-size:14px;color:rgba(255,255,255,.7)}
.cd-sys-l{color:rgba(255,255,255,.4);margin-right:6px}

/* Support cards */
.cd-support-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.cd-support-card{
  display:flex;align-items:center;gap:12px;padding:16px;
  border-radius:12px;background:#1a1b2e;
  border:1px solid rgba(255,255,255,.06);
  text-decoration:none;color:inherit;transition:all .2s;
}
.cd-support-card:hover{border-color:rgba(124,92,252,.3)}
.cd-support-ico{color:#a78bfa;flex-shrink:0}
.cd-support-t{font-size:14px;font-weight:600}
.cd-support-d{font-size:12px;color:rgba(255,255,255,.35);margin-top:2px}

/* Recommended */
.cd-recs{padding:24px 28px 32px;border-top:1px solid rgba(255,255,255,.06)}
.cd-recs-title{font-size:16px;font-weight:700;margin-bottom:14px}
.cd-recs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}
.cd-rec-card{
  display:flex;align-items:center;gap:12px;padding:14px;
  border-radius:12px;background:#1a1b2e;
  border:1px solid rgba(255,255,255,.06);
  cursor:pointer;transition:all .2s;
}
.cd-rec-card:hover{border-color:rgba(124,92,252,.3);transform:translateY(-2px)}
.cd-rec-ico{
  width:40px;height:40px;border-radius:10px;
  background:rgba(124,92,252,.15);
  display:flex;align-items:center;justify-content:center;
  font-size:16px;font-weight:800;color:#a78bfa;flex-shrink:0;
}
.cd-rec-info{min-width:0;flex:1}
.cd-rec-name{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cd-rec-game{font-size:11px;color:rgba(255,255,255,.35);margin-top:2px}
.cd-rec-price{font-size:14px;font-weight:700;color:#4ade80;flex-shrink:0}

/* Mod detail responsive */
@media(max-width:865px){
  .mod-detail-overlay{padding:0}
  .cd-inner{border-radius:0;min-height:100vh}
  .cd-header{padding:16px}
  .cd-plans-wrap{padding:16px}
  .cd-plans{grid-template-columns:1fr}
  .cd-tabs{padding:0 16px;overflow-x:auto}
  .cd-tab{white-space:nowrap;padding:12px 14px}
  .cd-panel{padding:16px}
  .cd-recs{padding:16px}
  .cd-recs-grid{grid-template-columns:1fr}
  .cd-title{font-size:18px}
  .cd-icon{width:44px;height:44px;font-size:18px;border-radius:10px}
  .cd-gallery{padding:16px}
  .cd-gallery-stage{border-radius:12px}
  .cd-gallery-arr{width:30px;height:30px}
  .cd-gallery-prev{left:6px}
  .cd-gallery-next{right:6px}
  .cd-full-desc{padding:12px 16px;font-size:13px}
}

/* ===== MODAL ANIMATION ===== */
@keyframes modalIn{from{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}

/* ===== SUPPORT POPUP ===== */
.support-overlay{
  position:fixed;inset:0;z-index:200;
  background:rgba(0,0,0,.6);backdrop-filter:blur(10px);
  display:none;align-items:center;justify-content:center;padding:20px;
}
.support-overlay.open{display:flex}
.support-popup{
  width:100%;max-width:560px;max-height:90vh;
  border-radius:24px;overflow:hidden;overflow-x:hidden;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg,rgba(30,30,38,.97),rgba(22,22,30,.99));
  box-shadow:0 24px 60px rgba(0,0,0,.5);
  display:flex;flex-direction:column;
  animation:modalIn .25s ease;
}
.support-top{
  display:flex;align-items:flex-start;justify-content:space-between;
  gap:24px;padding:24px 24px 0;flex-shrink:0;
}
.support-eyebrow{
  font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px;
  color:#7c5cfc;
}
.support-title{font-size:22px;font-weight:800;margin:6px 0 8px}
.support-desc{font-size:13px;color:rgba(255,255,255,.5);line-height:1.5}
.support-close{
  width:36px;height:36px;border-radius:10px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);
  font-size:20px;color:rgba(255,255,255,.4);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;transition:all .2s;cursor:pointer;
}
.support-close:hover{background:rgba(255,255,255,.12);color:#fff}
.support-body{
  flex:1;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
  padding:22px 24px 24px;display:flex;flex-direction:column;gap:14px;
  scrollbar-width:none;
}
.support-body::-webkit-scrollbar{display:none}
.support-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.support-card{
  padding:18px;border-radius:16px;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);
  display:flex;flex-direction:column;gap:10px;
  text-decoration:none;color:#fff;transition:all .2s;
}
.support-card:hover{border-color:rgba(124,92,252,.3);background:rgba(124,92,252,.06)}
.support-card-top{display:flex;align-items:center;justify-content:space-between}
.support-card-badge{font-size:11px;font-weight:700;color:rgba(255,255,255,.4)}
.support-card-ico{
  width:36px;height:36px;border-radius:10px;
  background:rgba(124,92,252,.12);
  display:flex;align-items:center;justify-content:center;
}
.support-card-text{font-size:12px;color:rgba(255,255,255,.45);line-height:1.5}
.support-card-footer{
  display:flex;flex-direction:column;align-items:flex-start;gap:8px;
  margin-top:auto;
}
.support-card-handle{font-size:12px;font-weight:600;color:rgba(255,255,255,.6)}
.support-card-action{
  font-size:11px;font-weight:700;color:#fff;
  background:linear-gradient(135deg,#7c5cfc,#6d4de8);
  padding:6px 14px;border-radius:8px;
  transition:all .2s;white-space:nowrap;
}
.support-card:hover .support-card-action{background:linear-gradient(135deg,#8b6dff,#7c5cfc);box-shadow:0 4px 12px rgba(124,92,252,.3)}
.support-surface{
  padding:16px;border-radius:14px;
  background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.05);
}
.support-chip{
  display:inline-block;font-size:11px;font-weight:700;
  color:#a78bfa;text-transform:uppercase;letter-spacing:.5px;
}
.support-lead{font-size:13px;color:rgba(255,255,255,.45);margin-top:6px;line-height:1.5}
.support-request-list{
  margin-top:12px;padding-left:20px;
  display:flex;flex-direction:column;gap:6px;
}
.support-request-list li{font-size:13px;color:rgba(255,255,255,.6);line-height:1.4}
.support-request-list li::marker{color:#7c5cfc;font-weight:700}
.support-admin-link{
  display:flex;align-items:center;gap:12px;
  padding:12px 16px;border-radius:12px;
  background:rgba(124,92,252,.08);border:1px solid rgba(124,92,252,.15);
  text-decoration:none;color:#fff;transition:all .2s;
}
.support-admin-link:hover{background:rgba(124,92,252,.15)}
.support-admin-link-text strong{display:block;font-size:14px}
.support-admin-link-text span{font-size:12px;color:rgba(255,255,255,.45)}
@media(max-width:560px){
  .support-cards{grid-template-columns:1fr}
  .support-popup{border-radius:18px;max-height:95vh}
  .support-top{padding:18px 18px 0}
  .support-body{padding:16px 18px 20px}
}

/* ===== TOP-UP MODAL ===== */
.topup-overlay{
  position:fixed;inset:0;z-index:220;
  background:rgba(0,0,0,.65);backdrop-filter:blur(12px);
  display:none;align-items:center;justify-content:center;padding:20px;
}
.topup-overlay.open{display:flex}
.topup-modal{
  position:relative;width:100%;max-width:440px;
  max-height:90vh;overflow-y:auto;scrollbar-width:none;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.1);
  background:linear-gradient(180deg,rgba(28,30,44,.98),rgba(18,20,32,.99));
  box-shadow:0 24px 60px rgba(0,0,0,.5);
  padding:32px;
  animation:modalIn .25s ease;
}
.topup-close{
  position:absolute;top:16px;right:16px;
  width:32px;height:32px;border-radius:8px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);
  font-size:18px;color:rgba(255,255,255,.4);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:all .2s;
}
.topup-close:hover{background:rgba(255,255,255,.12);color:#fff}
.topup-title{font-size:22px;font-weight:800;margin-bottom:24px;color:#fff}
.topup-methods{display:flex;flex-direction:column;gap:16px}
.topup-group{display:flex;flex-direction:column;gap:8px}
.topup-group-title{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:rgba(255,255,255,.4);margin-bottom:4px}
.topup-method{
  display:flex;align-items:center;gap:14px;
  padding:14px 16px;border-radius:14px;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);
  cursor:pointer;transition:all .2s;color:#fff;text-align:left;width:100%;
}
.topup-method:hover{background:rgba(124,92,252,.12);border-color:rgba(124,92,252,.4)}
.topup-method-icon{
  width:42px;height:42px;border-radius:12px;
  background:rgba(124,92,252,.15);
  display:flex;align-items:center;justify-content:center;
  color:#7c5cfc;flex-shrink:0;
}
.topup-method-info{display:flex;flex-direction:column;gap:2px}
.topup-method-name{font-size:14px;font-weight:600}
.topup-method-fee{font-size:12px;color:rgba(255,255,255,.4)}
.topup-step{display:none}
.topup-step.active{display:block}
.topup-back{
  display:inline-flex;align-items:center;gap:6px;
  font-size:13px;color:rgba(255,255,255,.45);background:none;border:none;
  cursor:pointer;margin-bottom:16px;padding:0;transition:color .15s;
}
.topup-back:hover{color:#fff}
.topup-amount-input{
  width:100%;padding:14px 16px;border-radius:12px;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);
  font-size:18px;font-weight:700;color:#fff;outline:none;
  transition:border-color .2s;
}
.topup-amount-input:focus{border-color:rgba(124,92,252,.5)}
.topup-amount-input::placeholder{color:rgba(255,255,255,.2);font-weight:400}
.topup-summary{
  display:flex;flex-direction:column;gap:8px;
  margin:12px 0 16px;font-size:13px;color:rgba(255,255,255,.6);
}
.topup-summary-row{display:flex;justify-content:space-between}
.topup-summary-row b{color:#fff}
.topup-submit{
  width:100%;padding:14px;border-radius:12px;margin-top:16px;
  background:linear-gradient(135deg,#7c5cfc,#6d4aed);
  border:none;color:#fff;font-size:14px;font-weight:700;
  cursor:pointer;transition:opacity .2s;
}
.topup-submit:hover{opacity:.9}
.topup-submit:disabled{opacity:.5;cursor:not-allowed}
.topup-req-box{
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);
  border-radius:12px;padding:16px;margin-bottom:12px;
  font-size:13px;color:rgba(255,255,255,.7);line-height:1.6;white-space:pre-wrap;
}
/* ===== TOPUP HISTORY ===== */
.hist-row{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 16px;border-radius:12px;
  background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);
  margin-bottom:8px;transition:border-color .2s;
}
.hist-row:hover{border-color:rgba(124,92,252,.2)}
.hist-left{display:flex;flex-direction:column;gap:4px}
.hist-method{font-size:14px;font-weight:600;color:#fff}
.hist-date{font-size:11px;color:rgba(255,255,255,.3)}
.hist-right{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.hist-amount{font-size:14px;font-weight:700;color:#fff}
.hist-status{font-size:11px;font-weight:600}
.hist-ok{color:#22c55e}
.hist-fail{color:#ef4444}
.hist-wait{color:#f59e0b}

/* ===== PURCHASE MODAL ===== */
.purchase-info{margin:16px 0}
.purchase-detail-row{
  display:flex;justify-content:space-between;align-items:center;
  padding:10px 0;border-bottom:1px solid rgba(255,255,255,.06);
  font-size:14px;color:rgba(255,255,255,.6);
}
.purchase-detail-row b{color:#fff;font-weight:700}
.purchase-detail-row:last-child{border-bottom:none}
.purchase-key{
  color:#7c5cfc;font-family:monospace;font-size:15px;letter-spacing:1px;
  word-break:break-all;
}
.purchase-result-box{
  background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);
  border-radius:14px;padding:18px;margin-top:16px;
}

.topup-qr-instruction{
  font-size:13px;color:rgba(255,255,255,.5);line-height:1.5;
  margin:-8px 0 16px;padding:0 4px;
}
.topup-field-label{
  font-size:12px;font-weight:600;color:rgba(255,255,255,.45);
  margin-bottom:6px;margin-top:14px;text-transform:uppercase;letter-spacing:.5px;
}
.topup-field-label:first-of-type{margin-top:0}
.topup-comment-box{
  display:flex;align-items:center;gap:10px;
  background:rgba(124,92,252,.1);border:1px solid rgba(124,92,252,.25);
  border-radius:12px;padding:14px 16px;margin-bottom:16px;
}
.topup-comment-val{
  font-size:18px;font-weight:800;letter-spacing:2px;color:#7c5cfc;flex:1;
}
.topup-copy{
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);
  border-radius:8px;padding:6px 12px;font-size:12px;font-weight:600;
  color:#fff;cursor:pointer;transition:all .15s;
}
.topup-copy:hover{background:rgba(255,255,255,.15)}
.topup-status-box{
  text-align:center;padding:24px 0;
}
.topup-status-box .spinner{
  width:32px;height:32px;border:3px solid rgba(124,92,252,.2);
  border-top-color:#7c5cfc;border-radius:50%;
  animation:spin .8s linear infinite;margin:0 auto 16px;
}
@keyframes spin{to{transform:rotate(360deg)}}
.topup-status-text{font-size:14px;color:rgba(255,255,255,.5)}
.topup-status-ok{color:#4ade80;font-size:16px;font-weight:700}
.topup-status-fail{color:#f87171;font-size:16px;font-weight:700}

/* ===== AUTH MODAL ===== */
.auth-overlay{
  position:fixed;inset:0;z-index:210;
  background:rgba(0,0,0,.65);backdrop-filter:blur(12px);
  display:none;align-items:center;justify-content:center;padding:20px;
}
.auth-overlay.open{display:flex}
.auth-modal{
  position:relative;width:100%;max-width:420px;
  border-radius:24px;overflow:hidden;
  border:1px solid rgba(255,255,255,.1);
  background:linear-gradient(180deg,rgba(28,30,44,.98),rgba(18,20,32,.99));
  box-shadow:0 24px 60px rgba(0,0,0,.5);
  padding:40px;
  animation:modalIn .25s ease;
}
.auth-close{
  position:absolute;top:16px;right:16px;
  width:32px;height:32px;border-radius:8px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);
  font-size:18px;color:rgba(255,255,255,.4);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:all .2s;
}
.auth-close:hover{background:rgba(255,255,255,.12);color:#fff}
.auth-content h1{font-size:24px;font-weight:800;margin-bottom:24px}
.auth-fields{display:flex;flex-direction:column;gap:12px;margin-bottom:20px}
.auth-field{
  position:relative;
}
.auth-field input{
  width:100%;padding:14px 16px;
  border-radius:12px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  font-size:14px;color:#fff;outline:none;
  transition:border-color .2s;
}
.auth-field input::placeholder{color:rgba(255,255,255,.3)}
.auth-field input:focus{border-color:rgba(124,92,252,.5)}
.auth-submit{
  width:100%;padding:14px;border-radius:12px;
  background:linear-gradient(135deg,#7c5cfc,#6d4de8);
  color:#fff;font-size:15px;font-weight:700;
  border:none;cursor:pointer;transition:all .2s;
}
.auth-submit:hover{background:linear-gradient(135deg,#8b6dff,#7c5cfc);transform:translateY(-1px)}
.auth-divider{
  display:flex;align-items:center;gap:12px;
  margin:20px 0;color:rgba(255,255,255,.25);font-size:13px;
}
.auth-divider span{flex:1;height:1px;background:rgba(255,255,255,.08)}
.auth-social-buttons{display:flex;gap:10px;margin-bottom:20px}
.auth-social-btn{
  flex:1;display:flex;align-items:center;justify-content:center;gap:8px;
  padding:12px;border-radius:12px;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);
  font-size:13px;font-weight:600;color:rgba(255,255,255,.7);
  cursor:pointer;transition:all .2s;
}
.auth-social-btn:hover{background:rgba(255,255,255,.1);color:#fff}
.auth-social-btn.disabled{opacity:.4;cursor:not-allowed}
.auth-switch{
  text-align:center;font-size:13px;color:rgba(255,255,255,.45);
  margin-top:16px;
}
.auth-switch button{
  color:#7c5cfc;font-weight:600;background:none;border:none;
  cursor:pointer;font-size:13px;
}
.auth-switch button:hover{text-decoration:underline}
.auth-error{
  color:#ef4444;font-size:13px;
  min-height:18px;margin-bottom:8px;
  text-align:center;
}

/* ===== USER MENU ===== */
.user-menu{position:relative;display:inline-block}
.user-avatar-btn{
  width:36px;height:36px;border-radius:50%;
  background:linear-gradient(135deg,#7c5cfc,#6d4aed);
  color:#fff;font-weight:700;font-size:14px;
  border:none;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:transform .15s;
}
.user-avatar-btn:hover{transform:scale(1.05)}
.user-dropdown{
  position:absolute;top:calc(100% + 12px);right:0;
  width:328px;z-index:1140;overflow:hidden;
  padding:16px 0 20px;
  border-radius:28px;
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(64px);
  background:rgba(19,20,42,.92);
  box-shadow:0 24px 60px rgba(0,0,0,.5);
  display:flex;flex-direction:column;gap:12px;
  opacity:0;visibility:hidden;
  transition:opacity .18s,visibility .18s;
}
.user-menu.open .user-dropdown{
  opacity:1;visibility:visible;
  animation:udDropIn .18s ease-out;
}
.ud-header{
  display:flex;align-items:center;gap:12px;
  padding:0 20px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.ud-avatar{
  width:44px;height:44px;border-radius:50%;flex-shrink:0;
  background:linear-gradient(135deg,#7c5cfc,#6d4aed);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:700;font-size:16px;
}
.ud-user{display:flex;flex-direction:column;gap:2px;overflow:hidden}
.ud-name{font-size:15px;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ud-email{font-size:12px;color:rgba(255,255,255,.4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ud-menu{display:flex;flex-direction:column;padding:0 8px}
.ud-menu-item{
  display:flex;align-items:center;justify-content:space-between;
  padding:10px 12px;border-radius:14px;
  background:none;border:none;width:100%;
  cursor:pointer;transition:background .15s;
  text-decoration:none;color:inherit;
}
.ud-menu-item:hover{background:rgba(255,255,255,.06)}
.ud-menu-left{display:flex;align-items:center;gap:12px}
.ud-menu-icon{
  width:22px;height:22px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  color:rgba(255,255,255,.5);
}
.ud-menu-label{font-size:14px;font-weight:500;color:rgba(255,255,255,.85)}
.ud-menu-chevron{
  width:20px;height:20px;flex-shrink:0;
  color:rgba(255,255,255,.2);
}
.ud-menu-item:hover .ud-menu-label{color:#fff}
.ud-menu-item:hover .ud-menu-icon{color:rgba(255,255,255,.7)}
.ud-menu-item:hover .ud-menu-chevron{color:rgba(255,255,255,.35)}
.ud-menu-item--danger .ud-menu-label{color:#ef4444}
.ud-menu-item--danger .ud-menu-icon{color:#ef4444}
.ud-menu-item--danger:hover{background:rgba(239,68,68,.08)}
.ud-menu-item--danger:hover .ud-menu-label{color:#f87171}
.ud-menu-item--danger:hover .ud-menu-icon{color:#f87171}

/* ===== NOTIFICATIONS ===== */
.notif-wrap{position:relative;display:inline-flex}
.notif-dropdown{
  position:absolute;top:calc(100% + 10px);right:0;
  width:340px;
  background:rgba(19,20,42,.98);
  border:1px solid rgba(255,255,255,.1);
  border-radius:14px;
  box-shadow:0 16px 48px rgba(0,0,0,.55);
  opacity:0;visibility:hidden;
  transform:translateY(-8px);
  transition:all .2s;z-index:1000;
  overflow:hidden;
}
.notif-wrap.open .notif-dropdown{
  opacity:1;visibility:visible;transform:translateY(0);
}
.notif-dropdown-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 16px 10px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.notif-dropdown-header span{font-size:14px;font-weight:700;color:#fff}
.notif-mark-read{
  font-size:11px;color:#7c5cfc;background:none;border:none;
  cursor:pointer;font-weight:600;
}
.notif-mark-read:hover{text-decoration:underline}
.notif-dropdown-list{
  max-height:340px;overflow-y:auto;
}
.notif-item{
  display:flex;gap:10px;padding:12px 16px;
  border-bottom:1px solid rgba(255,255,255,.04);
  cursor:default;transition:background .15s;
}
.notif-item:hover{background:rgba(255,255,255,.03)}
.notif-item.unread{background:rgba(124,92,252,.06)}
.notif-item.unread:hover{background:rgba(124,92,252,.1)}
.notif-item-icon{
  width:32px;height:32px;border-radius:8px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  font-size:15px;
}
.notif-item-icon.info{background:rgba(59,130,246,.15);color:#3b82f6}
.notif-item-icon.success{background:rgba(34,197,94,.15);color:#22c55e}
.notif-item-icon.warning{background:rgba(245,158,11,.15);color:#f59e0b}
.notif-item-icon.promo{background:rgba(124,92,252,.15);color:#7c5cfc}
.notif-item-body{flex:1;min-width:0}
.notif-item-title{font-size:13px;font-weight:600;color:#fff;margin-bottom:2px}
.notif-item-text{font-size:12px;color:rgba(255,255,255,.45);line-height:1.4}
.notif-item-time{font-size:11px;color:rgba(255,255,255,.25);margin-top:4px}
.notif-empty{
  padding:32px 16px;text-align:center;
  color:rgba(255,255,255,.25);font-size:13px;
}
@media(max-width:480px){
  .auth-modal{padding:28px 20px;border-radius:18px}
}

/* ===== MAINTENANCE OVERLAY ===== */
.maintenance-overlay{
  position:fixed;inset:0;z-index:9999;
  background:#0e0f18;
  display:none;align-items:center;justify-content:center;
  flex-direction:column;
}
.maintenance-overlay.active{display:flex}
.maintenance-inner{
  text-align:center;max-width:440px;padding:40px 20px;
}
.maintenance-icon{
  width:100px;height:100px;border-radius:28px;
  background:rgba(124,92,252,.08);border:1px solid rgba(124,92,252,.15);
  display:inline-flex;align-items:center;justify-content:center;
  margin-bottom:28px;
}
.maintenance-title{font-size:28px;font-weight:800;margin-bottom:12px}
.maintenance-text{font-size:15px;color:rgba(255,255,255,.5);line-height:1.7;margin-bottom:24px}
.maintenance-contact a{
  display:inline-flex;align-items:center;gap:8px;
  padding:12px 24px;border-radius:12px;
  background:linear-gradient(135deg,#7c5cfc,#6d4de8);
  color:#fff;font-size:14px;font-weight:700;
  text-decoration:none;transition:all .2s;
}
.maintenance-contact a:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(124,92,252,.3)}

/* ===== MOBILE NOTIFICATIONS OVERLAY ===== */
.mobile-notif-overlay{
  position:fixed;inset:0;z-index:250;
  background:rgba(0,0,0,.6);
  backdrop-filter:blur(8px);
  display:none;align-items:flex-end;justify-content:center;
}
.mobile-notif-overlay.open{display:flex}
.mobile-notif-panel{
  width:100%;max-height:75vh;
  background:#13142a;
  border-radius:20px 20px 0 0;
  border:1px solid rgba(255,255,255,.08);
  border-bottom:none;
  overflow:hidden;
  display:flex;flex-direction:column;
  animation:slideUp .25s ease;
  padding-bottom:env(safe-area-inset-bottom,0);
}
@keyframes slideUp{from{transform:translateY(100%)}to{transform:translateY(0)}}
.mobile-notif-panel .notif-dropdown-header{
  display:flex;align-items:center;gap:10px;
  padding:16px 18px 12px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.mobile-notif-panel .notif-dropdown-list{
  flex:1;overflow-y:auto;max-height:60vh;
}

/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVE
   ============================================================ */

/* --- Topup / Purchase / Auth modals: full-width on small screens --- */
@media(max-width:560px){
  .topup-overlay,
  .auth-overlay{
    padding:0;align-items:flex-end;
  }
  .topup-modal{
    max-width:100%;width:100%;
    border-radius:20px 20px 0 0;
    max-height:95vh;
    padding:24px 20px calc(24px + env(safe-area-inset-bottom,0));
  }
  .topup-title{font-size:18px;margin-bottom:16px}
  .topup-amount-input{font-size:16px;padding:12px 14px}
  .topup-submit{padding:12px;font-size:13px}
  .topup-method{padding:12px 14px}
  .topup-method-icon{width:36px;height:36px;border-radius:10px}
  .topup-comment-val{font-size:15px}
  .topup-req-box{font-size:12px;padding:12px}

  .auth-modal{
    max-width:100%;width:100%;
    border-radius:20px 20px 0 0;
    padding:28px 20px calc(28px + env(safe-area-inset-bottom,0));
  }
  .auth-content h1{font-size:20px;margin-bottom:20px}
}

/* --- Notification & user dropdown on mobile --- */
@media(max-width:560px){
  .notif-dropdown{
    position:fixed;top:auto;bottom:0;left:0;right:0;
    width:100%;border-radius:20px 20px 0 0;
    max-height:70vh;
    transform:translateY(100%);
  }
  .notif-wrap.open .notif-dropdown{
    transform:translateY(0);
  }
  .user-dropdown{
    position:fixed;top:auto;bottom:0;left:0;right:0;
    width:100%;border-radius:20px 20px 0 0;
    padding-bottom:calc(16px + env(safe-area-inset-bottom,0));
  }
}

/* --- Mobile header balance row --- */
@media(max-width:865px){
  .mobile-header-bar{
    flex-wrap:wrap;
  }
  .hdr-balance-chip{
    font-size:12px;padding:6px 10px;border-radius:10px;
  }
  .hdr-topup-btn{
    font-size:12px;padding:6px 14px;border-radius:8px;
  }
}

/* --- Bottom tab bar: prevent content hidden behind it --- */
@media(max-width:865px){
  body{
    padding-bottom:calc(60px + env(safe-area-inset-bottom,0));
  }
  .footer-inner{
    padding-bottom:calc(80px + env(safe-area-inset-bottom,0));
  }
}

/* --- Game detail overlay mobile --- */
@media(max-width:560px){
  .game-detail-overlay{padding:0}
  .game-detail-inner{border-radius:0;min-height:100vh;min-height:100dvh}
  .game-detail-header{
    padding:14px 16px;
    flex-wrap:wrap;gap:10px;
  }
  .game-detail-back{padding:6px 12px;font-size:12px}
  .game-detail-icon-wrap{width:40px;height:40px;border-radius:10px;font-size:15px}
  .game-detail-title{font-size:16px}
  .game-detail-subtitle{font-size:12px}
  .game-detail-desc{padding:10px 16px 4px;font-size:12px}
  .game-detail-mods{
    padding:14px 16px 100px;
    grid-template-columns:1fr;
  }
}

/* --- Mod detail overlay mobile --- */
@media(max-width:560px){
  .mod-detail-overlay{padding:0}
  .cd-inner{border-radius:0;min-height:100vh;min-height:100dvh}
  .cd-header{padding:14px 16px}
  .cd-back{padding:6px 12px;font-size:12px;margin-bottom:12px}
  .cd-title-row{gap:10px}
  .cd-icon{width:40px;height:40px;font-size:16px;border-radius:10px}
  .cd-title{font-size:16px}
  .cd-meta{gap:6px}
  .cd-game-tag{font-size:11px;padding:2px 8px}
  .cd-plans-wrap{padding:14px 16px}
  .cd-plans{grid-template-columns:1fr;gap:10px}
  .cd-plan{padding:16px 14px}
  .cd-plan-price{font-size:18px}
  .cd-tabs{padding:0 12px;gap:2px;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .cd-tab{padding:10px 12px;font-size:12px;white-space:nowrap}
  .cd-panel{padding:14px 16px}
  .cd-feat-hd{padding:12px 14px}
  .cd-feat-title{font-size:13px;gap:8px}
  .cd-feat-ico{width:24px;height:24px;font-size:10px;border-radius:6px}
  .cd-feat-item{padding:8px 14px;font-size:12px}
  .cd-sys p{font-size:13px;padding:8px 0}
  .cd-support-grid{grid-template-columns:1fr}
  .cd-recs{padding:14px 16px}
  .cd-recs-grid{grid-template-columns:1fr}
  .cd-gallery{padding:12px 16px}
  .cd-gallery-stage{border-radius:10px}
  .cd-gallery-arr{width:28px;height:28px}
  .cd-full-desc{padding:10px 16px;font-size:12px}
  .cd-video{padding:0 16px 8px}
}

/* --- Mod card on small screens --- */
@media(max-width:480px){
  .mod-card{padding:14px}
  .mod-card-icon{width:36px;height:36px;font-size:14px;border-radius:8px}
  .mod-card-name{font-size:13px}
  .mod-card-footer{gap:6px}
  .mod-card-price{font-size:13px}
  .mod-card-buy{padding:8px;font-size:12px}
}

/* --- Catalog grid: 2 columns on very small --- */
@media(max-width:380px){
  .catalog-grid{grid-template-columns:1fr;gap:10px}
  .game-card-name{font-size:14px}
}

/* --- Hero: smaller padding on very small --- */
@media(max-width:480px){
  .hero{padding:36px 16px 32px}
  .hero-inner{padding-left:0}
  .hero-heading{font-size:24px;margin-bottom:12px}
  .hero-desc{font-size:13px;margin-bottom:20px}
  .hero-cta{padding:12px 22px;font-size:13px}
}

/* --- Search overlay mobile --- */
@media(max-width:560px){
  .search-overlay{padding:16px 12px 12px}
  .search-overlay-inner{border-radius:14px}
  .search-results{padding:12px;max-height:60vh}
}

/* --- Support popup mobile --- */
@media(max-width:480px){
  .support-overlay{padding:10px}
  .support-popup{
    max-width:100%;border-radius:16px;
    max-height:85vh;
  }
  .support-body{
    flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;
    padding:16px 18px 20px;
  }
  .support-title{font-size:18px}
  .support-card{padding:14px}
}

/* --- Purchase modal mobile --- */
@media(max-width:560px){
  #purchaseOverlay{
    padding:0;align-items:flex-end;
  }
  #purchaseOverlay .topup-modal{
    border-radius:20px 20px 0 0;
    max-width:100%;
    padding:24px 20px calc(24px + env(safe-area-inset-bottom,0));
  }
}

/* --- Footer mobile tweaks --- */
@media(max-width:560px){
  .footer-top{gap:24px}
  .footer-links{gap:24px}
  .footer-col h4{font-size:12px}
  .footer-col a{font-size:12px}
  .footer-inner{padding:32px 16px}
}

/* --- Brand logo mobile --- */
@media(max-width:865px){
  .brand-icon img{
    width:32px;height:32px;
  }
  .brand-text{
    font-size:14px;
  }
}

/* --- Topup history rows on mobile --- */
@media(max-width:480px){
  .hist-row{padding:12px;flex-wrap:wrap;gap:8px}
  .hist-method{font-size:13px}
  .hist-amount{font-size:13px}
}
