:root{
  --bg:#05070c;
  --text:#eaf0ff;
  --muted:rgba(234,240,255,.75);
}
*{box-sizing:border-box}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.wrap{width:min(1320px, calc(100% - 28px)); margin:22px auto 40px;}
.grid{display:grid;grid-template-columns: repeat(6, 1fr);gap:18px;}
@media (max-width: 1100px){ .grid{grid-template-columns: repeat(4, 1fr);} }
@media (max-width: 760px){ .grid{grid-template-columns: repeat(2, 1fr);} }

.card{
  position:relative;border-radius:18px;padding:14px 14px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  overflow:hidden;
}
.imgBox{
  height:62px;border-radius:14px;background: rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.10);
  display:flex;align-items:center;justify-content:center;overflow:hidden;
}
.imgBox img{width:100%; height:100%; object-fit:cover;}
.placeholder{font-weight:800; opacity:.8}
.name{margin:14px 0 8px;text-align:center;font-size:16px;font-weight:800;}
.promo{margin:0 0 14px;text-align:center;color:var(--muted);font-weight:700;line-height:1.35;min-height:44px;}

.btn{
  display:flex;justify-content:center;align-items:center;height:40px;border-radius:14px;
  font-weight:900;color:#061018;text-decoration:none;border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(90deg, var(--from), var(--to));
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .12s ease;
}
.btn:hover{transform: translateY(-1px);}

/* POPUP - CENTERED */
.popOverlay{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,.72);
  z-index:99999;
}
.popOverlay.show{display:flex;}
.popModal{
    width:min(780px, 95%);
    border-radius:22px;
    padding:28px 20px 22px;
    background: linear-gradient(180deg, rgba(10,16,30,.96), rgba(10,16,30,.88));
    border:1px solid rgba(0,163,255,.45);
    box-shadow:0 0 60px rgba(0,163,255,.35), 0 50px 140px rgba(0,0,0,.70);
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
}
Modal::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:20px;
  box-shadow: 0 0 30px color-mix(in srgb, var(--acc) 55%, transparent);
  pointer-events:none;
}
.popClose{
  position:absolute; right:10px; top:10px;
  width:34px; height:34px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(0,0,0,.25);
  color:rgba(234,240,255,.92);
  cursor:pointer;
  font-size:20px;
  z-index:2;
}
.popImg{
    width:260px;
    height:260px;
    margin:18px auto 0;
    border-radius:24px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.15);
    background:rgba(0,0,0,.25);
    box-shadow:0 0 40px rgba(0,163,255,.45);
}


.popImg img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.popTitle{
  margin:14px 0 8px;
  text-align:center;
  font-size:18px;
  font-weight:900;
}
.popText{
  margin:0 0 14px;
  text-align:center;
  color:rgba(234,240,255,.78);
  font-weight:700;
  line-height:1.35;
}
.popBtns{display:flex;flex-direction:column;gap:10px;margin-top:8px;}
.popBtn{
  height:44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:#061018;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(90deg, var(--acc), color-mix(in srgb, var(--acc) 55%, #00ff88));
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
/* FORCE POPUP SQUARE (OVERRIDE) */
.popModal{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
}

.popImg{
  width:280px !important;
  height:280px !important;
  margin:18px auto 0 !important;
  border-radius:24px !important;
}

.popImg img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}
