/* ============================================================
   TOKO MAJAMOJO v3 — Light E-Commerce (Tokopedia/Shopee Style)
   Colors: Majamojo Blue + GoPay Green + Telkomsel Red
   MODAL FIX: .modal-overlay uses display:none by default,
              only display:flex when .is-open class is added
   ============================================================ */

/* ── GOOGLE FONTS loaded in HTML ────────────────────────────── */

/* ── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  /* Brand */
  --blue:        #1A56DB;
  --blue-d:      #1346BF;
  --blue-l:      #EBF0FD;
  --blue-xl:     #F5F8FF;
  --green:       #00AA5B;   /* GoPay */
  --green-l:     #E6F8EF;
  --red:         #E31C25;   /* Telkomsel */
  --red-l:       #FFF0F0;

  /* UI */
  --white:       #FFFFFF;
  --bg:          #F4F6F8;
  --bg-card:     #FFFFFF;
  --border:      #E5E7EB;
  --border-md:   #D1D5DB;
  --text:        #111827;
  --text-2:      #374151;
  --text-3:      #6B7280;
  --text-4:      #9CA3AF;

  /* Semantic */
  --success:     #16A34A;
  --warning:     #D97706;
  --danger:      #DC2626;

  /* Radii */
  --r-xs:  4px;
  --r-sm:  8px;
  --r:     12px;
  --r-lg:  16px;
  --r-xl:  20px;

  /* Shadows */
  --s-xs: 0 1px 3px rgba(0,0,0,.07);
  --s-sm: 0 2px 8px rgba(0,0,0,.09);
  --s:    0 4px 16px rgba(0,0,0,.11);
  --s-lg: 0 8px 32px rgba(0,0,0,.14);

  /* Font */
  --font: 'Nunito', sans-serif;
}

/* ── BASE ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; padding-bottom: 60px; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: inherit; outline: none; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ── MODALS — CRITICAL FIX ───────────────────────────────────
   DO NOT add display:flex here. Modals start hidden.
   JS adds class "is-open" to show them.
   This is the correct way so the `hidden` attribute + `display:none`
   inline style both work correctly and are never overridden.
   ─────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;          /* ← HIDDEN BY DEFAULT, no flex here */
  position: fixed;
  inset: 0;
  z-index: 700;
  background: rgba(0,0,0,.52);
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.is-open {
  display: flex;          /* ← only shown when JS adds this class */
}
@media (min-width: 640px) {
  .modal-overlay.is-open { align-items: center; }
}
.modal-box {
  background: var(--white);
  width: 100%; max-width: 480px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 24px 22px 40px;
  max-height: 94vh; overflow-y: auto;
  position: relative;
  animation: slideUp .28s cubic-bezier(.25,.8,.25,1);
}
@media (min-width: 640px) {
  .modal-box { border-radius: var(--r-xl); max-height: 90vh; margin: 20px; }
}
@keyframes slideUp { from { transform: translateY(32px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-box.lg { max-width: 560px; }
.modal-box.sm { max-width: 420px; }
.modal-x {
  position: absolute; top: 14px; right: 14px;
  background: var(--bg); color: var(--text-3);
  width: 30px; height: 30px; border-radius: 50%;
  font-size: .85rem; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.modal-x:hover { background: var(--border-md); color: var(--text); }
.modal-ttl  { font-size: 1.15rem; font-weight: 900; margin-bottom: 4px; }
.modal-sub  { font-size: .83rem; color: var(--text-3); margin-bottom: 18px; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 800; font-size: .875rem; padding: 10px 22px;
  border-radius: var(--r-sm); transition: all .16s; white-space: nowrap; cursor: pointer;
}
.btn-blue   { background: var(--blue); color: #fff; }
.btn-blue:hover   { background: var(--blue-d); box-shadow: 0 4px 14px rgba(26,86,219,.35); transform: translateY(-1px); }
.btn-green  { background: var(--green); color: #fff; }
.btn-green:hover  { background: #008f4d; box-shadow: 0 4px 14px rgba(0,170,91,.35); transform: translateY(-1px); }
.btn-red    { background: var(--red); color: #fff; }
.btn-red:hover    { background: #bf1820; }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue-l); }
.btn-ghost  { background: transparent; color: var(--text-3); border: 1.5px solid var(--border-md); }
.btn-ghost:hover  { border-color: var(--blue); color: var(--blue); background: var(--blue-xl); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm  { padding: 7px 14px; font-size: .8rem; }
.btn-lg  { padding: 13px 28px; font-size: .95rem; }
.btn-w   { width: 100%; }

/* ── FORM FIELDS ─────────────────────────────────────────────── */
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: .75rem; font-weight: 800; color: var(--text-3);
  margin-bottom: 5px; text-transform: uppercase; letter-spacing: .4px;
}
.field input, .field select {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border-md); border-radius: var(--r-sm);
  font-size: .9rem; color: var(--text); background: var(--white);
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
.field input::placeholder { color: var(--text-4); }
.field-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chk-label { display: flex; align-items: flex-start; gap: 8px; font-size: .85rem; color: var(--text-3); cursor: pointer; margin-bottom: 14px; }
.chk-label input { accent-color: var(--blue); margin-top: 3px; flex-shrink: 0; }
.chk-label a { color: var(--blue); font-weight: 700; }

/* ── HEADER ──────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 400;
  background: var(--blue);
  box-shadow: 0 2px 10px rgba(26,86,219,.3);
}

/* Top bar */
.hdr-top { padding: 10px 0; }
.hdr-top-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 14px;
}
.hdr-logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.hdr-logo img { height: 28px; filter: brightness(0) invert(1); }
.hdr-logo-txt { font-weight: 900; font-size: 1.05rem; color: #fff; white-space: nowrap; }

/* Search */
.hdr-search { flex: 1; max-width: 580px; position: relative; }
.hdr-search-bar {
  display: flex; align-items: center;
  background: #fff; border-radius: var(--r-sm); overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.hdr-srch-ico { padding: 0 11px; color: var(--text-4); display: flex; flex-shrink: 0; }
.hdr-srch-ico svg { width: 16px; height: 16px; }
.hdr-search-bar input {
  flex: 1; border: none; background: transparent;
  padding: 10px 4px; font-size: .88rem; color: var(--text); font-family: var(--font);
}
.hdr-search-bar input::placeholder { color: var(--text-4); }
.hdr-srch-btn {
  background: var(--red); color: #fff;
  padding: 0 16px; height: 38px; font-weight: 800; font-size: .82rem;
  white-space: nowrap; border-radius: 0; flex-shrink: 0;
}
.hdr-srch-btn:hover { background: #bf1820; }

/* Autocomplete */
.ac-dropdown {
  position: absolute; top: calc(100% + 5px); left: 0; right: 0;
  background: var(--white); border-radius: var(--r);
  box-shadow: var(--s-lg); border: 1px solid var(--border);
  z-index: 500; overflow: hidden; max-height: 420px; overflow-y: auto;
}
.ac-sec-hd {
  padding: 7px 14px; font-size: .7rem; font-weight: 900;
  color: var(--text-4); text-transform: uppercase; letter-spacing: .5px;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.ac-row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 14px; cursor: pointer; transition: background .12s;
  border-bottom: 1px solid #f3f4f6;
}
.ac-row:hover, .ac-row.ac-sel { background: var(--blue-xl); }
.ac-row:last-child { border-bottom: none; }
.ac-img {
  width: 38px; height: 38px; border-radius: var(--r-xs);
  background: var(--blue-l); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; overflow: hidden;
}
.ac-img img { width: 100%; height: 100%; object-fit: cover; }
.ac-info { flex: 1; min-width: 0; }
.ac-name { font-weight: 700; font-size: .87rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-cat  { font-size: .72rem; color: var(--text-4); margin-top: 1px; }
.ac-price { font-weight: 900; font-size: .88rem; color: var(--red); flex-shrink: 0; text-align: right; }
.ac-hi { color: var(--blue); font-weight: 900; } /* highlight matching text */
.ac-hist-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; color: var(--text-3); font-size: .87rem; }
.ac-hist-row:hover { background: var(--bg); }
.ac-empty { padding: 20px; text-align: center; color: var(--text-4); font-size: .87rem; }

/* Header actions */
.hdr-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
.hdr-action-btn {
  background: rgba(255,255,255,.15); color: #fff;
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; transition: background .15s; position: relative;
}
.hdr-action-btn:hover { background: rgba(255,255,255,.25); }
.hdr-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--red); color: #fff; font-size: .58rem; font-weight: 900;
  min-width: 15px; height: 15px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--blue);
}
.hdr-login-btn {
  background: #fff; color: var(--blue); font-weight: 800; font-size: .82rem;
  padding: 7px 16px; border-radius: var(--r-sm); transition: all .15s;
}
.hdr-login-btn:hover { background: var(--blue-l); }
.hdr-user-pill {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.15); border-radius: var(--r-sm);
  padding: 5px 10px; cursor: pointer; transition: background .15s; position: relative;
}
.hdr-user-pill:hover { background: rgba(255,255,255,.25); }
.u-ava {
  width: 28px; height: 28px; background: #fff; color: var(--blue);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .82rem; flex-shrink: 0;
}
.u-name   { font-size: .8rem; font-weight: 700; color: #fff; }
.u-pts-bd { background: var(--green); color: #fff; font-size: .7rem; font-weight: 800; padding: 2px 7px; border-radius: 20px; }

/* User Dropdown */
.u-dd {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 236px; background: var(--white); border-radius: var(--r);
  box-shadow: var(--s-lg); border: 1px solid var(--border);
  z-index: 600; overflow: hidden;
}
.u-dd-head { background: var(--blue-xl); padding: 13px 16px; border-bottom: 1px solid var(--border); }
.u-dd-head strong { display: block; font-size: .9rem; }
.u-dd-head small  { color: var(--text-3); font-size: .74rem; }
.u-dd-pts { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; background: var(--green-l); border-bottom: 1px solid var(--border); font-size: .78rem; font-weight: 700; color: var(--green); }
.dd-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: .84rem; color: var(--text-3); cursor: pointer; transition: background .12s; }
.dd-item:hover { background: var(--bg); color: var(--text); }
.dd-item.dd-danger:hover { background: #fff5f5; color: var(--danger); }
.dd-sep { height: 1px; background: var(--border); }

/* Nav row */
.hdr-nav { background: rgba(0,0,0,.12); border-top: 1px solid rgba(255,255,255,.12); }
.hdr-nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; overflow-x: auto; scrollbar-width: none;
}
.hdr-nav-inner::-webkit-scrollbar { display: none; }
.hdr-nl {
  color: rgba(255,255,255,.82); font-size: .79rem; font-weight: 700;
  padding: 8px 14px; white-space: nowrap; border-radius: var(--r-xs);
  transition: all .14s; cursor: pointer; display: block;
}
.hdr-nl:hover, .hdr-nl.active { color: #fff; background: rgba(255,255,255,.15); }

/* ── BANNER ───────────────────────────────────────────────────── */
.banner-wrap { display: flex; gap: 12px; margin: 14px 0; }
.carousel-outer { flex: 1; border-radius: var(--r-lg); overflow: hidden; position: relative; }
.carousel-inner  { display: flex; transition: transform .45s cubic-bezier(.25,.8,.25,1); }
.c-slide { min-width: 100%; height: 210px; position: relative; }
.c-slide-content {
  width: 100%; height: 100%;
  display: flex; align-items: center; padding: 0 36px;
  border-radius: var(--r-lg); overflow: hidden;
}
.s-blue   { background: linear-gradient(125deg, #1A56DB 0%, #0F3A9F 100%); }
.s-red    { background: linear-gradient(125deg, #E31C25 0%, #8B0009 100%); }
.s-green  { background: linear-gradient(125deg, #00AA5B 0%, #00703C 100%); }
.s-orange { background: linear-gradient(125deg, #F59E0B 0%, #B45309 100%); }
.s-tag    { font-size: .65rem; font-weight: 900; background: rgba(255,255,255,.22); color: #fff; padding: 3px 9px; border-radius: 20px; letter-spacing: .8px; display: inline-block; margin-bottom: 8px; }
.s-title  { font-size: 1.5rem; font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 6px; }
.s-title span { font-size: 1.9rem; }
.s-sub    { font-size: .8rem; color: rgba(255,255,255,.85); margin-bottom: 14px; max-width: 280px; }
.s-btn    { display: inline-block; background: #fff; font-weight: 800; font-size: .8rem; padding: 7px 16px; border-radius: var(--r-sm); }
.s-btn.c-blue  { color: var(--blue); }
.s-btn.c-red   { color: var(--red); }
.s-btn.c-green { color: var(--green); }
.s-art { position: absolute; right: 24px; bottom: 0; font-size: 5.5rem; opacity: .25; pointer-events: none; }
.c-dots { position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 2; }
.c-dot  { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: all .28s; }
.c-dot.on { background: #fff; width: 20px; border-radius: 3px; }
.c-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.85); width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--text);
  cursor: pointer; box-shadow: var(--s-sm); transition: all .14s; z-index: 2;
}
.c-arrow:hover { background: #fff; box-shadow: var(--s); }
.c-arrow.prev { left: 8px; }
.c-arrow.next { right: 8px; }

/* Side banners */
.banner-side  { display: flex; flex-direction: column; gap: 10px; width: 208px; flex-shrink: 0; }
.mini-banner  { border-radius: var(--r); padding: 16px; height: 100px; display: flex; flex-direction: column; justify-content: center; cursor: pointer; transition: transform .14s; position: relative; overflow: hidden; }
.mini-banner:hover { transform: translateY(-2px); }
.mb-tag   { font-size: .62rem; font-weight: 900; color: rgba(255,255,255,.75); letter-spacing: .6px; margin-bottom: 4px; }
.mb-title { font-size: .9rem; font-weight: 900; color: #fff; line-height: 1.25; }
.mb-art   { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 2.3rem; opacity: .35; }

/* ── CATEGORY ICON BAR ─────────────────────────────────────────── */
.cat-bar { background: var(--white); border-radius: var(--r); border: 1px solid var(--border); margin-bottom: 14px; }
.cat-bar-scroll { display: flex; overflow-x: auto; scrollbar-width: none; }
.cat-bar-scroll::-webkit-scrollbar { display: none; }
.cat-ico {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 13px 18px; cursor: pointer; position: relative; flex-shrink: 0;
  transition: background .13s;
}
.cat-ico:hover { background: var(--blue-xl); }
.cat-ico.on .cat-ico-wrap { background: var(--blue-l); }
.cat-ico.on .cat-ico-lbl  { color: var(--blue); font-weight: 800; }
.cat-ico.on::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--blue); }
.cat-ico-wrap { width: 44px; height: 44px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; transition: background .13s; }
.cat-ico-lbl  { font-size: .7rem; font-weight: 700; color: var(--text-3); text-align: center; white-space: nowrap; }

/* ── SECTION ──────────────────────────────────────────────────── */
.sec { margin-bottom: 16px; }
.sec-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sec-ttl { font-size: 1rem; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.sec-ttl-bar { width: 4px; height: 18px; background: var(--blue); border-radius: 2px; }
.sec-more { font-size: .81rem; font-weight: 800; color: var(--blue); }
.sec-more:hover { text-decoration: underline; }

/* ── FLASH SALE ───────────────────────────────────────────────── */
.flash-hd { background: var(--red); border-radius: var(--r) var(--r) 0 0; padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; }
.flash-lbl { color: #fff; font-weight: 900; font-size: .95rem; }
.flash-cd  { display: flex; align-items: center; gap: 5px; }
.fcd-box   { background: rgba(0,0,0,.25); color: #fff; font-weight: 900; font-size: .85rem; padding: 4px 8px; border-radius: var(--r-xs); min-width: 30px; text-align: center; }
.fcd-sep   { color: #fff; font-weight: 900; }
.flash-body { background: var(--white); border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--r) var(--r); padding: 12px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.flash-body::-webkit-scrollbar { display: none; }
.flash-card { min-width: 125px; cursor: pointer; transition: transform .14s; }
.flash-card:hover { transform: translateY(-2px); }
.flash-thumb { aspect-ratio: 1; border-radius: var(--r-sm); background: var(--bg); overflow: hidden; position: relative; margin-bottom: 7px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.flash-thumb img { width: 100%; height: 100%; object-fit: cover; }
.flash-disc { position: absolute; top: 5px; left: 5px; background: var(--red); color: #fff; font-size: .6rem; font-weight: 900; padding: 2px 6px; border-radius: var(--r-xs); }
.flash-name  { font-size: .8rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.flash-price { font-size: .88rem; font-weight: 900; color: var(--red); }
.flash-orig  { font-size: .7rem; color: var(--text-4); text-decoration: line-through; }

/* ── GAME CARDS ───────────────────────────────────────────────── */
.game-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.game-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; cursor: pointer; transition: all .18s;
}
.game-card:hover { box-shadow: var(--s); border-color: var(--blue); transform: translateY(-2px); }
.gc-banner { height: 100px; overflow: hidden; position: relative; background: var(--blue-xl); }
.gc-banner img { width: 100%; height: 100%; object-fit: cover; }
.gc-banner-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.gc-body { padding: 14px; display: flex; align-items: center; gap: 12px; }
.gc-icon { width: 46px; height: 46px; border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--s-xs); flex-shrink: 0; }
.gc-icon img { width: 100%; height: 100%; object-fit: cover; }
.gc-info .gc-name   { font-weight: 900; font-size: .92rem; margin-bottom: 2px; }
.gc-info .gc-genre  { font-size: .72rem; color: var(--text-3); margin-bottom: 5px; }
.gc-info .gc-count  { font-size: .71rem; color: var(--text-4); }
.gc-footer { padding: 0 14px 14px; }

/* ── PRODUCT GRID ─────────────────────────────────────────────── */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 11px; }
.prod-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; cursor: pointer; transition: all .17s; display: flex; flex-direction: column;
}
.prod-card:hover { box-shadow: var(--s); border-color: rgba(26,86,219,.22); transform: translateY(-2px); }
.pc-thumb { aspect-ratio: 1; background: var(--blue-xl); overflow: hidden; position: relative; }
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.prod-card:hover .pc-thumb img { transform: scale(1.05); }
.pc-ph    { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.pc-badges { position: absolute; top: 6px; left: 6px; display: flex; flex-direction: column; gap: 3px; }
.pc-b { font-size: .62rem; font-weight: 900; padding: 2px 6px; border-radius: 3px; display: inline-block; }
.b-hot  { background: var(--red); color: #fff; }
.b-new  { background: var(--green); color: #fff; }
.b-sale { background: var(--warning); color: #fff; }
.b-ltd  { background: #7C3AED; color: #fff; }
.pc-wish { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; background: rgba(255,255,255,.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem; transition: all .14s; box-shadow: var(--s-xs); }
.pc-wish:hover, .pc-wish.on { color: var(--red); background: #fff; }
.pc-body  { padding: 11px 12px; flex: 1; display: flex; flex-direction: column; }
.pc-game  { font-size: .67rem; font-weight: 900; color: var(--blue); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 3px; }
.pc-name  { font-weight: 700; font-size: .87rem; line-height: 1.3; flex: 1; margin-bottom: 7px; }
.pc-prices { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 3px; }
.pc-price  { font-weight: 900; font-size: .93rem; color: var(--red); }
.pc-orig   { font-size: .73rem; color: var(--text-4); text-decoration: line-through; }
.pc-disc   { font-size: .65rem; font-weight: 900; background: var(--red-l); color: var(--red); padding: 1px 5px; border-radius: 3px; }
.pc-pts    { font-size: .69rem; color: var(--green); font-weight: 800; margin-bottom: 8px; }
.pc-sold   { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.pc-sold-t { flex: 1; height: 4px; background: var(--bg); border-radius: 2px; }
.pc-sold-f { height: 100%; background: linear-gradient(90deg,var(--red),#FF6B35); border-radius: 2px; }
.pc-sold-l { font-size: .67rem; color: var(--text-4); white-space: nowrap; }
.pc-btn    { width: 100%; padding: 8px; font-size: .81rem; }

/* ── AUCTION ─────────────────────────────────────────────────── */
.auc-hd { background: linear-gradient(125deg,var(--blue),var(--blue-d)); border-radius: var(--r) var(--r) 0 0; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.auc-hd h3 { color: #fff; font-weight: 900; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; animation: blink 1.2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.auc-grid { background: var(--white); border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--r) var(--r); padding: 14px; display: grid; grid-template-columns: repeat(auto-fill,minmax(215px,1fr)); gap: 12px; }
.auc-card { border: 1.5px solid var(--border); border-radius: var(--r); overflow: hidden; transition: all .17s; }
.auc-card:hover { border-color: var(--blue); box-shadow: var(--s-sm); }
.auc-img { height: 128px; background: var(--blue-xl); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; position: relative; }
.auc-timer { position: absolute; bottom: 6px; left: 6px; right: 6px; background: rgba(227,28,37,.88); color: #fff; border-radius: 4px; padding: 3px 8px; font-size: .73rem; font-weight: 900; text-align: center; }
.auc-body { padding: 12px; }
.auc-name { font-weight: 800; font-size: .87rem; margin-bottom: 8px; }
.auc-kv   { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.auc-k    { font-size: .71rem; color: var(--text-4); }
.auc-v    { font-weight: 800; font-size: .88rem; color: var(--blue); }
.auc-bids { font-size: .71rem; color: var(--text-3); margin-bottom: 10px; }

/* ── TELCO ────────────────────────────────────────────────────── */
.telco-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.telco-hd  { background: linear-gradient(125deg,var(--red),#9B0E15); padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; }
.telco-hd h3 { color: #fff; font-weight: 900; font-size: .93rem; }
.telco-tabs { display: flex; padding: 10px 14px 0; border-bottom: 1px solid var(--border); gap: 0; }
.t-tab { padding: 8px 16px; font-size: .82rem; font-weight: 700; color: var(--text-3); border-bottom: 2.5px solid transparent; cursor: pointer; transition: all .14s; }
.t-tab.on { color: var(--blue); border-bottom-color: var(--blue); }
.telco-phone { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--bg); border-bottom: 1px solid var(--border); }
.tp-flag { font-size: .82rem; font-weight: 700; color: var(--text-3); padding-right: 10px; border-right: 1px solid var(--border-md); flex-shrink: 0; }
.telco-phone input { flex: 1; border: none; background: transparent; font-size: .9rem; color: var(--text); font-weight: 600; }
.telco-phone input::placeholder { color: var(--text-4); font-weight: 400; }
.op-badge { background: var(--red); color: #fff; font-size: .69rem; font-weight: 900; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.telco-items { padding: 12px 14px; display: grid; grid-template-columns: repeat(auto-fill,minmax(145px,1fr)); gap: 9px; }
.t-item { border: 1.5px solid var(--border); border-radius: var(--r-sm); padding: 11px; cursor: pointer; transition: all .14s; position: relative; }
.t-item:hover { border-color: var(--blue); background: var(--blue-xl); }
.t-item.popular::before { content: 'Terlaris'; position: absolute; top: -1px; right: -1px; background: var(--green); color: #fff; font-size: .58rem; font-weight: 900; padding: 2px 7px; border-radius: 0 var(--r-sm) 0 var(--r-xs); }
.ti-name  { font-weight: 800; font-size: .87rem; margin-bottom: 2px; }
.ti-desc  { font-size: .71rem; color: var(--text-3); margin-bottom: 6px; }
.ti-price { font-weight: 900; font-size: .9rem; color: var(--red); }
.ti-orig  { font-size: .7rem; color: var(--text-4); text-decoration: line-through; }
.ti-disc  { font-size: .63rem; font-weight: 900; background: var(--red-l); color: var(--red); padding: 1px 5px; border-radius: 3px; }
.ti-pts   { font-size: .67rem; color: var(--green); font-weight: 800; margin-top: 3px; }

/* ── POINTS BANNER ────────────────────────────────────────────── */
.pts-banner { background: linear-gradient(125deg,var(--green),#007740); border-radius: var(--r-lg); padding: 22px 28px; display: flex; align-items: center; gap: 24px; position: relative; overflow: hidden; }
.pts-banner::after { content: '💎'; position: absolute; right: 24px; font-size: 5.5rem; opacity: .13; pointer-events: none; }
.pts-banner h3 { color: #fff; font-size: 1.1rem; font-weight: 900; margin-bottom: 5px; }
.pts-banner p  { color: rgba(255,255,255,.85); font-size: .82rem; margin-bottom: 12px; }
.pts-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.pts-chip  { background: rgba(255,255,255,.18); color: #fff; font-size: .71rem; font-weight: 800; padding: 4px 10px; border-radius: 20px; }

/* ── PURCHASE MODAL PARTS ────────────────────────────────────── */
.buy-preview { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px; margin-bottom: 16px; }
.buy-preview-img { width: 50px; height: 50px; object-fit: cover; border-radius: var(--r-xs); background: var(--blue-l); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; overflow: hidden; }
.buy-preview-img img { width: 100%; height: 100%; object-fit: cover; }
.bp-name  { font-weight: 800; font-size: .9rem; }
.bp-price { font-weight: 900; color: var(--red); font-size: .98rem; }
.bp-orig  { font-size: .76rem; color: var(--text-4); text-decoration: line-through; }
.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; }
.promo-msg { padding: 7px 11px; border-radius: var(--r-xs); font-size: .8rem; font-weight: 700; margin-top: 6px; }
.pm-ok  { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }
.pm-err { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.qty-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.qty-bar label { font-size: .78rem; font-weight: 800; color: var(--text-3); text-transform: uppercase; }
.qty-ctrl  { display: flex; align-items: center; border: 1.5px solid var(--border-md); border-radius: var(--r-sm); overflow: hidden; }
.qty-btn   { width: 34px; height: 34px; background: var(--bg); font-size: 1.1rem; color: var(--text-2); transition: background .12s; }
.qty-btn:hover { background: var(--border); }
.qty-n     { min-width: 34px; text-align: center; font-weight: 900; font-size: .9rem; }
.total-row { background: var(--blue-xl); border: 1.5px solid var(--blue); border-radius: var(--r-sm); padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.total-row span { font-size: .82rem; font-weight: 700; color: var(--text-3); }
.total-row strong { font-size: 1.1rem; font-weight: 900; color: var(--blue); }
.pm-label { font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; color: var(--text-3); margin-bottom: 9px; }
.pm-grid  { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin-bottom: 14px; }
.pm-opt   {
  border: 1.5px solid var(--border-md); border-radius: var(--r-sm); padding: 8px 5px;
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: .67rem; font-weight: 800; color: var(--text-3); transition: all .13s;
}
.pm-opt:hover { border-color: var(--blue); background: var(--blue-xl); color: var(--blue); }
.pm-opt input[type="radio"] { display: none; }
.pm-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-xl); color: var(--blue); }
.pm-ico { width: 32px; height: 22px; border-radius: 3px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: .68rem; }
.pts-use { background: var(--green-l); border: 1px solid #a7f3d0; border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 14px; }
.pts-use label { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-3); cursor: pointer; }

/* Auth modal specifics */
.auth-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.auth-logo img { height: 24px; }
.auth-logo span { font-weight: 900; font-size: .98rem; color: var(--blue); }
.soc-btns { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.soc-btn  { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px; border: 1.5px solid var(--border-md); border-radius: var(--r-sm); font-size: .87rem; font-weight: 700; color: var(--text); background: var(--white); cursor: pointer; transition: all .14s; }
.soc-btn:hover { border-color: var(--blue); background: var(--blue-xl); }
.soc-ico  { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: .8rem; color: #fff; flex-shrink: 0; }
.mdivider { text-align: center; position: relative; margin: 12px 0; }
.mdivider::before,.mdivider::after { content:''; position:absolute; top:50%; width:42%; height:1px; background:var(--border-md); }
.mdivider::before{left:0} .mdivider::after{right:0}
.mdivider span { background: var(--white); padding: 0 10px; font-size: .74rem; color: var(--text-4); }
.auth-switch { text-align: center; font-size: .82rem; color: var(--text-3); margin-top: 12px; }
.auth-switch a { color: var(--blue); font-weight: 800; }

/* Success */
.success-body { text-align: center; padding: 8px 0 4px; }
.success-ico { font-size: 4rem; margin-bottom: 12px; animation: popIn .4s ease; }
@keyframes popIn { from{transform:scale(0);opacity:0} to{transform:scale(1);opacity:1} }
.pts-won { background: var(--green-l); border: 1px solid #a7f3d0; color: var(--green); border-radius: var(--r-sm); padding: 10px 14px; margin: 10px 0; font-weight: 700; font-size: .85rem; }

/* ── TOAST ────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 68px; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(17,24,39,.95); color: #fff;
  padding: 10px 20px; border-radius: 25px;
  font-size: .82rem; font-weight: 700;
  z-index: 9999; opacity: 0; transition: all .28s;
  white-space: nowrap; pointer-events: none; box-shadow: var(--s);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.t-ok  { background: var(--green); }
.toast.t-err { background: var(--danger); }

/* ── FOOTER ───────────────────────────────────────────────────── */
.site-footer { background: var(--white); border-top: 1px solid var(--border); padding: 32px 0 16px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; margin-bottom: 24px; }
.footer-logo { height: 30px; margin-bottom: 12px; }
.footer-desc { font-size: .81rem; color: var(--text-3); line-height: 1.7; margin-bottom: 14px; }
.footer-soc  { display: flex; gap: 7px; }
.fsoc { width: 32px; height: 32px; border: 1.5px solid var(--border-md); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 900; color: var(--text-3); transition: all .14s; }
.fsoc:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-xl); }
.fc h4 { font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.fc a  { display: block; font-size: .81rem; color: var(--text-3); margin-bottom: 7px; transition: color .12s; }
.fc a:hover { color: var(--blue); }
.fc-addr { font-size: .79rem; color: var(--text-3); line-height: 1.7; margin-bottom: 8px; }
.footer-btm { border-top: 1px solid var(--border); padding-top: 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .75rem; color: var(--text-4); }
.pay-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.pay-b { background: var(--bg); border: 1px solid var(--border); padding: 3px 7px; border-radius: 3px; font-size: .69rem; font-weight: 700; color: var(--text-3); }

/* ── BOTTOM NAV ───────────────────────────────────────────────── */
.bnav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); display: flex; z-index: 200; box-shadow: 0 -2px 10px rgba(0,0,0,.07); }
.bn-itm { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px 10px; font-size: .63rem; font-weight: 800; color: var(--text-4); cursor: pointer; transition: color .14s; }
.bn-ico { font-size: 1.1rem; line-height: 1; }
.bn-itm.on { color: var(--blue); }
.bn-itm.center-fab .bn-ico { background: var(--red); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: 0 4px 12px rgba(227,28,37,.4); }
.bn-itm.center-fab { position: relative; top: -8px; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .banner-side { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1/-1; }
}
@media (max-width: 600px) {
  .hdr-logo-txt { display: none; }
  .game-row { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .auc-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 769px) {
  .bnav { display: none; }
  body { padding-bottom: 0; }
}
