:root{
  --ndx-bg: rgba(12, 14, 24, .62);
  --ndx-border: rgba(255,255,255,.10);
  --ndx-text: rgba(255,255,255,.92);
  --ndx-muted: rgba(255,255,255,.62);
  --ndx-orange: #ff6a00;
  --ndx-orange2:#ff9a2a;
  --ndx-shadow: 0 28px 90px rgba(0,0,0,.62);

  /* ✅ popover safe area */
  --ndx-popover-gap: 10px;
  --ndx-popover-max: calc(100vw - (var(--ndx-popover-gap) * 2));
}

/* ✅ جلوگیری از اسکرول افقی */
html, body { overflow-x: hidden; }
body{
  padding-top: 85px; /* ارتفاع هدر */
}
/* Header */
.ndx-header{
  position: fixed;
  top: 7px;
  left: 0;
  right: 0;
  z-index: 999999;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(180deg, var(--ndx-bg), rgba(12,14,24,.25));
  border-bottom: 1px solid rgba(255,255,255,.06);
  border-radius: 50px;  
}

.ndx-container{ max-width: 1400px; margin: 0 auto; padding: 14px 16px; }
.ndx-row{ display:flex; align-items:center; justify-content:space-between; gap: 14px; }

.ndx-brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.ndx-logo{ height: 32px; width:auto; object-fit:contain; display:block; filter: drop-shadow(0 14px 28px rgba(0,0,0,.35)); }
.ndx-brand-text{ color:#fff; font-weight: 950; letter-spacing:.4px; }

.ndx-nav{
  display:flex; align-items:center; gap: 8px;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  box-shadow: 0 16px 55px rgba(0,0,0,.18);
}

.ndx-link{
  position:relative;
  display:inline-flex; align-items:center; gap: 0px;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--ndx-text);
  text-decoration:none;
  font-weight: 900;
  font-size: 14px;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  border: 1px solid transparent;
  background: transparent;
  cursor:pointer;
}
.ndx-link:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,106,0,.22);
  transform: translateY(-1px);
  color: #fff;
}

.ndx-actions{ display:flex; align-items:center; gap: 10px; }

.ndx-iconbtn{
  width: 46px; height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: #fff;
  display:grid; place-items:center;
  cursor:pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
}
.ndx-cart-open {
  position: relative;
}
.ndx-iconbtn i{ font-size: 20px; line-height: 1; }
.ndx-iconbtn:hover{
  transform: translateY(-2px);
  border-color: rgba(255,106,0,.28);
  background: rgba(255,106,0,.10);
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
}

/* auth */
.ndx-auth{ display:flex; align-items:center; gap:10px; }
.ndx-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 950;
  text-decoration:none;
  border: 1px solid rgba(255,255,255,.14);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
  white-space:nowrap;
}
.ndx-btn-ghost{ background: rgba(255,255,255,.02); color:#fff; }
.ndx-btn-ghost:hover{
  transform: translateY(-2px);
  border-color: rgba(255,106,0,.28);
  background: rgba(255,106,0,.10);
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
}
.ndx-btn-primary{
  border:none;
  color:#111;
  background: linear-gradient(135deg, var(--ndx-orange), var(--ndx-orange2));
  box-shadow: 0 18px 55px rgba(255,106,0,.20);
}
.ndx-btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 24px 70px rgba(255,106,0,.28); }

/* profile */
.ndx-profile-btn{
  display:flex; align-items:center; gap: 10px;
  padding: 6px 10px 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color:#fff;
  cursor:pointer;
  transition: .2s ease;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
}
.ndx-profile-btn:hover{ transform: translateY(-2px); border-color: rgba(255,106,0,.22); background: rgba(255,106,0,.10); }
.ndx-avatar{ width: 34px; height: 34px; border-radius: 14px; overflow:hidden; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.06); }
.ndx-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.ndx-username{ font-weight: 950; font-size: 13.5px; color: rgba(255,255,255,.92); }

/* dropdown system */
.ndx-dd{ position: relative; }
.ndx-dd-panel{
  position:absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(760px, 90vw);
  max-width: var(--ndx-popover-max);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(1000px 500px at 20% 0%, rgba(255,106,0,.18), transparent),
    radial-gradient(900px 450px at 90% 30%, rgba(110,80,255,.14), transparent),
    rgba(14,16,24,.90);
  box-shadow: var(--ndx-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display:none;
  overflow:hidden;
  z-index: 2147483647;
  transform-origin: top right;
  margin-inline: var(--ndx-popover-gap);
}
.ndx-dd-panel.is-open{ display:block; animation: ndxPop .16s ease; }
@keyframes ndxPop{ from{ transform: translateY(-6px) scale(.98); opacity:0; } to{ transform: translateY(0) scale(1); opacity:1; } }

.ndx-dd-panel-sm{
  width: min(340px, var(--ndx-popover-max));
  max-width: var(--ndx-popover-max);
}
.ndx-dd-panel-right{ right: 0; left: auto; }

/* ✅ کلاس‌های کمکی که JS اعمال می‌کنه برای جلوگیری از بیرون زدن */
.ndx-popover--to-left{ left: 0 !important; right: auto !important; }
.ndx-popover--to-right{ right: 0 !important; left: auto !important; }

.ndx-dd-head{
  padding: 14px;
  display:flex; align-items:center; justify-content:space-between; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.ndx-dd-title{ display:flex; align-items:center; gap:10px; }
.ndx-chip{
  width: 34px; height:34px; border-radius: 14px;
  display:grid; place-items:center;
  background: rgba(255,106,0,.12);
  border: 1px solid rgba(255,106,0,.22);
}
.ndx-dd-h{ color:#fff; font-weight: 950; font-size: 14px; }
.ndx-dd-s{ color: rgba(255,255,255,.62); font-size: 12.5px; margin-top:2px; }
.ndx-dd-more{
  color: rgba(255,255,255,.82);
  text-decoration:none;
  font-weight: 900;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  transition: .2s ease;
  white-space: nowrap;
}
.ndx-dd-more:hover{ transform: translateY(-1px); border-color: rgba(255,106,0,.25); background: rgba(255,106,0,.10); color:#fff; }

/* mega grid */
.ndx-dd-grid{ padding: 12px; display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 992px){ .ndx-dd-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 576px){ .ndx-dd-grid{ grid-template-columns: 1fr; } }

.ndx-cat{
  display:flex; align-items:center; gap: 10px;
  padding: 12px;
  border-radius: 16px;
  text-decoration:none;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ndx-cat:hover{ transform: translateY(-2px); background: rgba(255,106,0,.12); border-color: rgba(255,106,0,.22); box-shadow: 0 18px 55px rgba(0,0,0,.35); }
.ndx-cat-ic{ width: 44px; height:44px; border-radius: 16px; display:grid; place-items:center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); flex: 0 0 auto; }
.ndx-cat-name{ color:#fff; font-weight: 950; font-size: 13.5px; display:block; }
.ndx-cat-sub{ color: rgba(255,255,255,.62); font-size: 12px; display:block; margin-top:2px; }
.ndx-cat-group{ border-radius:18px; border:1px solid rgba(255,255,255,.06); background:rgba(255,255,255,.018); padding:4px; }
.ndx-cat-children{ display:flex; flex-wrap:wrap; gap:5px; padding:2px 7px 7px; }
.ndx-cat-children a{ color:rgba(255,255,255,.70); text-decoration:none; border:1px solid rgba(255,255,255,.07); background:rgba(255,255,255,.035); border-radius:999px; padding:5px 7px; font-size:11px; font-weight:850; transition:.18s ease; }
.ndx-cat-children a:hover{ color:#fff; border-color:rgba(255,106,0,.22); background:rgba(255,106,0,.10); }
.ndx-empty{ padding: 18px 14px; color: rgba(255,255,255,.70); }

/* small dd items */
.ndx-dd-item{
  display:flex; align-items:center; gap: 10px;
  padding: 12px 14px;
  text-decoration:none;
  color: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: .18s ease;
  font-weight: 900;
}
.ndx-dd-item i{ font-size: 18px; }
.ndx-dd-item:hover{ background: rgba(255,255,255,.05); color:#fff; }
.ndx-count-badge{min-width:19px;height:19px;display:inline-grid;place-items:center;padding:0 5px;border:2px solid rgba(14,17,24,.92);border-radius:999px;background:linear-gradient(135deg,#ff6a18,#ffad4d);color:#17100a;font-size:9px;font-weight:1000;line-height:1;font-variant-numeric:tabular-nums;box-shadow:0 7px 18px rgba(255,108,24,.28)}
.ndx-count-badge--push{margin-inline-start:auto}.ndx-profile-btn{position:relative}.ndx-profile-alert{position:absolute;z-index:2;top:-8px;inset-inline-start:-7px;min-width:20px;height:20px;display:grid;place-items:center;padding:0 5px;border:2px solid #10131a;border-radius:999px;background:#ff7b1d;color:#17100a;font-size:9px;font-weight:1000;font-variant-numeric:tabular-nums;box-shadow:0 8px 20px rgba(255,123,29,.32)}
.ndx-link>.ndx-count-badge{margin-inline-start:2px}.ndx-mitem>.ndx-count-badge{flex:0 0 auto}
.ndx-dd-danger{ color: #ff6b6b; }
.ndx-dd-danger:hover{ background: rgba(255,77,77,.10); }

/* Secure one-click logout: POST + CSRF, without an intermediate confirmation page */
.ndx-logout-form{
  display:block;
  margin:0;
  padding:0;
}
.ndx-logout-button{
  width:100%;
  appearance:none;
  -webkit-appearance:none;
  text-align:inherit;
  cursor:pointer;
}
.ndx-logout-form .ndx-dd-item{
  border-left:0;
  border-right:0;
  border-top:0;
  background:transparent;
}
.ndx-mobile-logout-form{
  width:100%;
  margin:0;
}

/* user card */
.ndx-usercard{ padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ndx-usercard-top{ display:flex; align-items:center; justify-content:space-between; gap: 10px; margin-bottom: 10px; }
.ndx-usercard-name{ color:#fff; font-weight: 950; font-size: 13.5px; }
.ndx-usercard-lvl{ color: rgba(255,255,255,.65); font-size: 12.5px; font-weight: 850; }
.ndx-levelbar{ height: 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); overflow:hidden; }
.ndx-levelbar-fill{ height:100%; background: linear-gradient(90deg, var(--ndx-orange), var(--ndx-orange2)); border-radius: 999px; }

/* burger */
.ndx-burger{
  width: 46px; height:40px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  display:none;
  place-items:center;
  gap: 4px;
  cursor:pointer;
  transition: .2s ease;
  padding: 7px;  
}
.ndx-burger span{ display:block; width: 18px; height: 2px; background: rgba(255,255,255,.90); border-radius: 999px; }
.ndx-burger:hover{ transform: translateY(-2px); border-color: rgba(255,106,0,.28); background: rgba(255,106,0,.10); }

/* responsive */
@media (max-width: 992px){
  .ndx-nav{ display:none; }
  .ndx-burger{ display:grid; }
  .ndx-auth{ display:none; }
}

/* Drawer */
.ndx-drawer{ position:fixed; inset:0; z-index:2147483647; display:none; isolation:isolate; }
.ndx-drawer.is-open{ display:block; }
.ndx-drawer-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.76); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); animation:ndxDrawerFade .22s ease both; }
.ndx-drawer-panel{
  position:absolute; top:max(10px,env(safe-area-inset-top,0px)); bottom:max(10px,env(safe-area-inset-bottom,0px)); right:10px;
  width:min(380px,calc(100vw - 20px));
  border-radius:24px;
  border:1px solid rgba(255,145,0,.20);
  background:radial-gradient(420px 230px at 90% -5%,rgba(255,122,24,.16),transparent 65%),rgba(10,14,23,.985);
  box-shadow:0 30px 90px rgba(0,0,0,.68),inset 0 1px 0 rgba(255,255,255,.08);
  overflow:hidden;
  display:flex; flex-direction:column;
  animation:ndxDrawerIn .28s cubic-bezier(.22,1,.36,1) both;
  will-change:transform,opacity;
}
@keyframes ndxDrawerFade{from{opacity:0}to{opacity:1}}
@keyframes ndxDrawerIn{from{transform:translate3d(28px,0,0) scale(.985);opacity:0}to{transform:translate3d(0,0,0) scale(1);opacity:1}}
.ndx-drawer-top{
  min-height:64px;
  padding:11px 12px;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  flex:0 0 auto;
  border-bottom:1px solid rgba(255,255,255,.075);
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.018));
}
.ndx-drawer-close{
  width:42px; height:42px; min-width:42px;
  display:grid; place-items:center;
  padding:0!important; margin:0;
  border-radius:15px;
  border:1px solid rgba(255,145,0,.22);
  background:linear-gradient(180deg,rgba(255,145,0,.13),rgba(255,255,255,.035));
  color:#fff;
  line-height:1;
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,background-color .18s ease,box-shadow .18s ease;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07);
}
.ndx-drawer-close i{display:block;font-size:21px;line-height:1;transform:none!important;}
.ndx-drawer-close:hover{transform:scale(1.04);border-color:rgba(255,156,57,.42);background:rgba(255,122,24,.16);box-shadow:0 9px 22px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.10);}
.ndx-drawer-close:active{transform:scale(.95);}
.ndx-drawer-content{flex:1 1 auto;min-height:0;padding:12px 12px calc(20px + env(safe-area-inset-bottom,0px));overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scroll-padding-bottom:28px;}
body.ndx-drawer-is-open .mobile-store-nav{opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translateY(calc(100% + 28px))!important;}

.ndx-mitem{
  width:100%;
  display:flex; align-items:center; justify-content:space-between; gap: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.90);
  text-decoration:none;
  font-weight: 950;
  margin-bottom: 10px;
  transition: .2s ease;
}
.ndx-mitem span{ display:flex; align-items:center; gap:10px; }
.ndx-mitem i{ font-size: 18px; }
.ndx-mitem:hover{ background: rgba(255,106,0,.12); border-color: rgba(255,106,0,.22); transform: translateY(-1px); }

.ndx-acc-btn{overflow:hidden;}
.ndx-acc-arrow{
  width:34px;height:34px;min-width:34px;
  display:grid!important;place-items:center;
  border-radius:12px;
  border:1px solid rgba(255,145,0,.16);
  background:linear-gradient(180deg,rgba(255,145,0,.10),rgba(255,255,255,.025));
  color:#ffb15b;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  transition:transform .24s cubic-bezier(.22,1,.36,1),background .18s ease,border-color .18s ease;
}
.ndx-acc-arrow i{display:block;font-size:17px;line-height:1;transition:transform .28s cubic-bezier(.22,1,.36,1);}
.ndx-acc-btn[aria-expanded="true"]{border-color:rgba(255,145,0,.28);background:linear-gradient(135deg,rgba(255,122,24,.14),rgba(255,255,255,.035));}
.ndx-acc-btn[aria-expanded="true"] .ndx-acc-arrow{border-color:rgba(255,145,0,.36);background:rgba(255,122,24,.16);}
.ndx-acc-btn[aria-expanded="true"] .ndx-acc-arrow i{transform:rotate(180deg);}
.ndx-acc-panel{
  padding:8px 10px 10px;
  margin-top:-6px;
  margin-bottom:10px;
  border-radius:18px;
  border:1px solid rgba(255,145,0,.13);
  background:linear-gradient(180deg,rgba(255,122,24,.045),rgba(255,255,255,.025));
  transform-origin:top center;
  will-change:height,opacity,transform;
}
.ndx-acc-panel.is-animating,.ndx-mobile-cat-children.is-animating{overflow:hidden!important;pointer-events:none;}
.ndx-subitem{
  display:block;
  padding: 10px 10px;
  border-radius: 14px;
  color: rgba(255,255,255,.86);
  text-decoration:none;
  font-weight: 850;
  border: 1px solid transparent;
  transition: .18s ease;
}
.ndx-subitem:hover{ background: rgba(255,255,255,.05); border-color: rgba(255,106,0,.20); }
.ndx-subitem-root{ color:#fff; font-weight:950; }
.ndx-subitem-child{ display:flex; align-items:center; gap:7px; padding-right:20px; color:rgba(255,255,255,.70); font-size:12.5px; }
.ndx-subitem-child i{ color:#ff8a18; font-size:15px; }
.ndx-subitem-muted{ color: rgba(255,255,255,.62); }

.ndx-sep{ height: 1px; background: rgba(255,255,255,.08); margin: 14px 4px; }
.ndx-mauth{ display:grid; gap: 10px; padding: 6px 2px 14px; }
.ndx-mauth .ndx-btn{ border-radius: 16px; padding: 12px 14px; }

/* ✅ Bell dropdown */
.bell-wrap{ position: relative; }
.bell-dropdown{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, var(--ndx-popover-max));
  max-width: var(--ndx-popover-max);
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(18, 22, 38, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 28px 80px rgba(0,0,0,.60);
  display: none;
  z-index: 2147483647;
  margin-inline: var(--ndx-popover-gap);
}
.bell-wrap.open .bell-dropdown{ display: block; }
.bell-head,.bell-foot{ padding: 12px 14px; background: rgba(255,255,255,0.04); }
.bell-list{ max-height: 360px; overflow:auto; padding: 10px 12px; overscroll-behavior: contain; }
.bell-loading{ color: rgba(255,255,255,0.75); font-size: 13px; }
.bell-more,.bell-go{ color:#ff7a00; text-decoration:none; font-weight:700; }
.bell-head .tcn-1{ color:#fff; }

.bell-dot{
  position: absolute;
  top: 9px;
  right: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff7a00;
}
.bell-badge{
  position:absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  display:grid;
  place-items:center;
}

/* ✅ Cart badge (روی آیکن سبد) */
.ndx-badge{
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  color: #0b1020;
  background: linear-gradient(135deg, #ff5c00, #ff7a00);
  box-shadow: 0 10px 22px rgba(0,214,255,.18);
}

/* ✅ Bell shake */
@keyframes ndxBellShake{
  0%,100%{ transform: rotate(0deg); }
  10%{ transform: rotate(-12deg); }
  20%{ transform: rotate(12deg); }
  30%{ transform: rotate(-10deg); }
  40%{ transform: rotate(10deg); }
  50%{ transform: rotate(-6deg); }
  60%{ transform: rotate(6deg); }
  70%{ transform: rotate(-3deg); }
  80%{ transform: rotate(3deg); }
}
.bell-btn.is-shaking i{
  animation: ndxBellShake 0.9s ease-in-out infinite;
  transform-origin: top center;
}

/* ✅ Bell card UI */
.bell-item{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 10px 10px;
  border-radius: 14px;
  text-decoration:none;
  color:#fff;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.03);
  transition: .18s ease;
}
.bell-item:hover{
  background: rgba(255,106,0,.10);
  border-color: rgba(255,106,0,.18);
  transform: translateY(-1px);
}
.bell-thumb{
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow:hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.bell-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.bell-body{ flex: 1 1 auto; min-width: 0; }
.bell-title{
  font-weight: 900;
  font-size: 13.5px;
  line-height: 1.7;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bell-excerpt{
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.6;
  opacity: .75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bell-meta{
  margin-top: 6px;
  display:flex;
  gap: 8px;
  align-items:center;
  font-size: 11.5px;
  opacity: .70;
  white-space: nowrap;
}
.bell-meta i{ font-size: 14px; opacity: .9; }

/* mobile button sizing */
@media (max-width: 576px){
  .ndx-iconbtn{ width: 36px; height:36px; border-radius: 14px; }
  .ndx-iconbtn i{ font-size: 18px; }
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 22, 38, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2147483647;
  transition: all 0.5s ease-in-out;
}
.search-overlay .search-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  line-height: 1;
}
.search-overlay .search-close-btn:hover { transform: rotate(90deg); }
.search-overlay .search-wrapper { width: 100%; max-width: 600px; padding: 0 1rem; text-align: center; }
.search-overlay .search-content h3 { color: #fff; font-size: 1.6rem; font-weight: bold; margin-bottom: 1.5rem; }
.search-overlay .search-content form { position: relative; width: 100%; }
.search-overlay .search-content input {
  width: 100%;
  padding: 0.9rem 3rem 0.9rem 2.5rem;
  border-radius: 50px;
  background-color: #2a3044;
  color: #fff;
  border: none;
  font-size: 1rem;
  outline: none;
  text-align: start;
  direction: inherit;
  transition: background-color 0.3s ease;
}
.search-overlay .search-content input::placeholder { color: #8c92a2; }
.search-overlay .search-content input:focus { background-color: #353c54; }
.search-overlay .search-content button[type="submit"] {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #8c92a2;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.3s ease;
}
.search-overlay .search-content button[type="submit"]:hover { color: #fff; }
#live-search-results{
  margin-top: 1.5rem;
  max-height: 300px;
  overflow-y: auto;
  text-align: start;
  direction: inherit;
}
#live-search-results::-webkit-scrollbar{ width: 6px; }
#live-search-results::-webkit-scrollbar-thumb{ background-color: #555; border-radius: 3px; }
/* ✅ Mobile: force popovers inside viewport (NO off-screen) */
@media (max-width: 768px){
  /* bell */
  .bell-dropdown{
    position: fixed !important;
    top: calc(var(--ndx-header-h, 72px) + 10px) !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }

  /* profile + other header dropdown panels */
  .ndx-dd-panel,
  .ndx-dd-panel-sm{
    position: fixed !important;
    top: calc(var(--ndx-header-h, 72px) + 10px) !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    transform-origin: top center !important;
  }
}
/* =========================
   ✅ NDX Modern Cart Drawer
   Works with: #cart-modal.active
   ========================= */

.ndx-cart-modal{
  z-index: 2147483600;
  display:none;
  direction: inherit;
}

.ndx-cart-modal.active{ display:block; }

/* backdrop */
.ndx-cart-backdrop{
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* panel */
.ndx-cart-panel{
  position:absolute;
  top: 12px;
  bottom: 12px;
  left: 12px;                 /* drawer from left */
  width: min(440px, calc(100vw - 24px));
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(255,106,0,.14), transparent 55%),
    radial-gradient(900px 420px at 90% 20%, rgba(110,80,255,.12), transparent 55%),
    rgba(14,16,24,.92);
  box-shadow: var(--ndx-shadow);
  overflow:hidden;

  transform: translateX(-110%);
  transition: transform .35s ease;
}

.ndx-cart-modal.active .ndx-cart-panel{
  transform: translateX(0);
}

/* header */
.ndx-cart-head{
  padding: 16px 16px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.ndx-cart-head-left{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width:0;
}

.ndx-cart-badge{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: rgba(255,106,0,.12);
  border: 1px solid rgba(255,106,0,.22);
  flex: 0 0 auto;
}

.ndx-cart-titles{ min-width:0; }

.ndx-cart-title{
  margin:0;
  font-size: 16px;
  font-weight: 950;
  color: var(--ndx-text);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.ndx-cart-sub{
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--ndx-muted);
  font-weight: 750;
}

/* close button */
.ndx-cart-close{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: #fff;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.ndx-cart-close:hover{
  transform: translateY(-2px);
  border-color: rgba(255,106,0,.22);
  background: rgba(255,106,0,.10);
}

/* divider */
.ndx-cart-divider{
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
}

/* body */
.ndx-cart-body{
  padding: 14px 14px 122px; /* space for footer */
  height: 100%;
  overflow:auto;
  scrollbar-width: thin;
}
.ndx-cart-body::-webkit-scrollbar{ width: 6px; }
.ndx-cart-body::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.18); border-radius: 10px; }

/* list */
.ndx-cart-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.ndx-cart-item{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.ndx-cart-item:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,106,0,.18);
}

/* thumb */
.ndx-cart-thumb{
  width: 62px;
  height: 62px;
  border-radius: 18px;
  overflow:hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  display:block;
}
.ndx-cart-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* info */
.ndx-cart-info{ flex: 1 1 auto; min-width:0; }

.ndx-cart-name{
  display:block;
  color: #fff;
  text-decoration:none;
  font-weight: 950;
  font-size: 13.5px;
  line-height: 1.7;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.ndx-cart-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.ndx-cart-price{
  color: rgba(255,255,255,.86);
  font-weight: 950;
  font-size: 13px;
}

.ndx-cart-qty{
  color: rgba(255,255,255,.70);
  font-weight: 900;
  font-size: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  padding: 5px 10px;
  border-radius: 999px;
}

/* remove */
.ndx-cart-remove{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.88);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.ndx-cart-remove:hover{
  transform: translateY(-2px);
  background: rgba(255, 59, 48, .14);
  border-color: rgba(255, 59, 48, .26);
}

/* footer */
.ndx-cart-foot{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding: 14px;
  background: linear-gradient(180deg, rgba(14,16,24,0), rgba(14,16,24,.92) 30%, rgba(14,16,24,.98));
  border-top: 1px solid rgba(255,255,255,.10);
}

.ndx-cart-total{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 12px;
}
.ndx-cart-total span{
  color: var(--ndx-muted);
  font-weight: 850;
  font-size: 13px;
}
.ndx-cart-total strong{
  color: #fff;
  font-weight: 950;
  font-size: 15px;
}

/* buttons */
.ndx-cart-form{ margin:0; }

.ndx-cart-primary{
  width:100%;
  border:0;
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 950;
  color: #111;
  background: linear-gradient(135deg, var(--ndx-orange), var(--ndx-orange2));
  box-shadow: 0 18px 55px rgba(255,106,0,.20);
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.ndx-cart-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 24px 70px rgba(255,106,0,.28);
  filter: brightness(1.02);
}

.ndx-cart-secondary{
  width:100%;
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color: rgba(255,255,255,.92);
  font-weight: 950;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.ndx-cart-secondary:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,106,0,.18);
}

/* empty */
.ndx-cart-empty{
  height: calc(100vh - 240px);
  min-height: 300px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 16px 10px;
}
.ndx-cart-empty-ic{
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display:grid;
  place-items:center;
  margin-bottom: 12px;
  background: rgba(255, 193, 7, .12);
  border: 1px solid rgba(255, 193, 7, .22);
  color: rgba(255,255,255,.92);
  font-size: 34px;
}
.ndx-cart-empty h4{
  margin: 6px 0 6px;
  color: #fff;
  font-weight: 950;
}
.ndx-cart-empty p{
  margin: 0 0 14px;
  color: rgba(255,255,255,.68);
  font-weight: 800;
}
.ndx-cart-ghost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: #fff;
  text-decoration:none;
  font-weight: 950;
}

/* mobile full screen */
@media (max-width: 576px){
  .ndx-cart-panel{
    top: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    border-radius: 0;
  }
  .ndx-cart-body{ padding-bottom: 140px; }
}


/* =========================
   NDX Premium Language Switcher - FINAL
   ========================= */
.ndx-language-form {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-inline: 8px;
  z-index: 1000000;
}

.ndx-language-select {
  display: none !important;
}

.ndx-language-trigger {
  height: 46px;
  min-width: 132px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(130px 70px at 20% 0%, rgba(255,154,42,.25), transparent 60%),
    linear-gradient(135deg, rgba(255,122,24,.20), rgba(255,154,42,.08)),
    rgba(255,255,255,.055);
  color: rgba(255,255,255,.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 950;
  cursor: pointer;
  outline: none;
  box-shadow:
    0 16px 42px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .22s ease, border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.ndx-language-trigger:hover,
.ndx-language-form.is-open .ndx-language-trigger {
  transform: translateY(-2px);
  border-color: rgba(255,154,42,.50);
  background:
    radial-gradient(130px 70px at 20% 0%, rgba(255,154,42,.38), transparent 60%),
    linear-gradient(135deg, rgba(255,122,24,.32), rgba(255,154,42,.14)),
    rgba(255,255,255,.075);
  box-shadow:
    0 22px 60px rgba(0,0,0,.48),
    0 0 0 4px rgba(255,122,24,.09),
    inset 0 1px 0 rgba(255,255,255,.16);
}

.ndx-language-trigger:active {
  transform: translateY(0) scale(.99);
}

.ndx-lang-globe {
  font-size: 15px;
  line-height: 1;
  filter: drop-shadow(0 5px 12px rgba(255,122,24,.35));
}

.ndx-lang-flag {
  font-size: 18px;
  line-height: 1;
}

.ndx-lang-label {
  min-width: 48px;
  text-align: center;
  white-space: nowrap;
}

.ndx-lang-chevron {
  font-size: 15px;
  color: rgba(255,190,120,.95);
  transition: transform .22s ease, color .22s ease;
}

.ndx-language-form.is-open .ndx-lang-chevron {
  transform: rotate(180deg);
  color: #fff;
}

.ndx-language-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 224px;
  padding: 10px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.13);
  background:
    radial-gradient(330px 180px at 20% 0%, rgba(255,122,24,.24), transparent 62%),
    radial-gradient(280px 150px at 90% 20%, rgba(255,190,100,.15), transparent 60%),
    rgba(13,15,24,.95);
  box-shadow:
    0 30px 90px rgba(0,0,0,.62),
    inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(.96);
  transform-origin: top right;
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  z-index: 2147483647;
  overflow: hidden;
}

.ndx-language-form.is-open .ndx-language-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ndx-language-option {
  width: 100%;
  border: 0;
  outline: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 16px;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
  text-align: right;
  margin-bottom: 8px;
}

.ndx-language-option:last-child {
  margin-bottom: 0;
}

.ndx-language-option:hover {
  transform: translateY(-1px);
  color: #fff;
  background: rgba(255,122,24,.13);
  border-color: rgba(255,154,42,.30);
}

.ndx-language-option .ndx-lang-text {
  flex: 1 1 auto;
  min-width: 0;
}

.ndx-language-option b {
  display: block;
  font-size: 13.5px;
  font-weight: 950;
  line-height: 1.4;
}

.ndx-language-option small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: rgba(255,255,255,.55);
}

.ndx-language-option i {
  margin-right: auto;
  opacity: 0;
  color: #ffb347;
  font-size: 18px;
  transition: opacity .18s ease, transform .18s ease;
}

.ndx-language-option.is-active {
  background:
    linear-gradient(135deg, rgba(255,122,24,.24), rgba(255,154,42,.11)),
    rgba(255,255,255,.05);
  border-color: rgba(255,154,42,.40);
}

.ndx-language-option.is-active i {
  opacity: 1;
}

.ndx-language-option.is-active:hover i {
  transform: scale(1.08);
}

html[lang="en"] .ndx-language-menu {
  right: auto;
  left: 0;
  transform-origin: top left;
}

html[lang="en"] .ndx-language-option {
  text-align: left;
}

html[lang="en"] .ndx-language-option i {
  margin-right: 0;
  margin-left: auto;
}

.ndx-mobile-language-form {
  width: 100%;
  margin: 0 0 12px 0;
  display: flex;
}

.ndx-mobile-language-form .ndx-language-trigger {
  width: 100%;
  justify-content: center;
}

.ndx-mobile-language-form .ndx-language-menu {
  left: 0;
  right: 0;
  width: 100%;
}

@media (max-width: 576px) {
  .ndx-language-form {
    margin-inline: 4px;
  }

  .ndx-language-trigger {
    height: 40px;
    min-width: 112px;
    padding: 0 11px;
    font-size: 12px;
  }

  .ndx-lang-globe {
    font-size: 13px;
  }

  .ndx-lang-flag {
    font-size: 16px;
  }

  .ndx-language-menu {
    width: 210px;
  }

  .ndx-language-option {
    padding: 11px;
  }

  .ndx-language-option b {
    font-size: 13px;
  }

  .ndx-language-option small {
    font-size: 11px;
  }
}
/* =========================
   FIX: Mobile Header Overflow
   ========================= */

/* جلوگیری از بزرگ شدن بیش از حد هدر */
.ndx-row {
  min-width: 0;
}

.ndx-brand {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.ndx-actions {
  flex: 0 0 auto;
  min-width: 0;
}

/* موبایل و تبلت کوچک */
@media (max-width: 768px) {
  body {
    padding-top: 72px;
  }

  .ndx-header {
    top: 6px;
    left: 8px;
    right: 8px;
    border-radius: 24px;
  }

  .ndx-container {
    padding: 10px 10px;
  }

  .ndx-row {
    gap: 8px;
  }

  .ndx-logo {
    height: 28px;
    max-width: 118px;
    object-fit: contain;
  }

  .ndx-brand-text {
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ndx-actions {
    gap: 6px;
  }

  /* زبان بالای هدر موبایل حذف شود؛ داخل منوی همبرگری هست */
  .ndx-actions > .ndx-language-form:not(.ndx-mobile-language-form) {
    display: none !important;
  }

  .ndx-iconbtn {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .ndx-iconbtn i {
    font-size: 18px;
  }

  .ndx-burger {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    padding: 7px;
  }

  .ndx-burger span {
    width: 17px;
  }

  .ndx-badge,
  .bell-badge {
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    font-size: 10px;
    padding: 0 4px;
  }
}

/* گوشی‌های خیلی کوچک */
@media (max-width: 390px) {
  .ndx-logo {
    height: 25px;
    max-width: 92px;
  }

  .ndx-actions {
    gap: 4px;
  }

  .ndx-iconbtn,
  .ndx-burger {
    width: 35px;
    height: 35px;
    border-radius: 12px;
  }

  .ndx-iconbtn i {
    font-size: 17px;
  }
}

/* =========================
   Premium service → game navigation
   ========================= */
.ndx-category-panel{
  width:min(920px,var(--ndx-popover-max));
  height:min(620px,calc(100vh - 118px));
  max-height:min(620px,calc(100vh - 118px));
}
.ndx-category-panel.is-open{display:flex;flex-direction:column;}
.ndx-category-search-wrap{padding:11px 13px 0;}
.ndx-category-search,.ndx-mobile-category-search{
  display:flex;align-items:center;gap:9px;padding:0 11px;
  border:1px solid rgba(255,255,255,.09);border-radius:14px;
  background:rgba(255,255,255,.04);color:#ff9d2d;
  transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease;
}
.ndx-category-search:focus-within,.ndx-mobile-category-search:focus-within{
  border-color:rgba(255,145,0,.40);background:rgba(255,145,0,.055);
  box-shadow:0 0 0 3px rgba(255,145,0,.08);
}
.ndx-category-search input,.ndx-mobile-category-search input{
  width:100%;height:40px;border:0;outline:0;background:transparent;color:#fff;
  font-size:13px;font-weight:800;
}
.ndx-category-search input::placeholder,.ndx-mobile-category-search input::placeholder{color:rgba(255,255,255,.43);}
.ndx-category-layout{display:grid;grid-template-columns:minmax(230px,31%) 1fr;gap:10px;min-height:0;padding:11px 13px 13px;flex:1;}
.ndx-category-services,.ndx-category-games{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;}
.ndx-category-services{display:grid;align-content:start;gap:7px;padding-inline-end:3px;}
.ndx-category-service{display:flex;align-items:stretch;gap:5px;}
.ndx-category-service-btn{
  min-width:0;display:flex;align-items:center;gap:9px;flex:1;padding:8px;
  border:1px solid rgba(255,255,255,.075);border-radius:15px;
  background:rgba(255,255,255,.025);color:#fff;text-align:start;cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,background-color .18s ease,box-shadow .18s ease;
}
.ndx-category-service-btn:hover,.ndx-category-service-btn.is-active{
  border-color:rgba(255,145,0,.31);background:linear-gradient(135deg,rgba(255,111,0,.2),rgba(255,145,0,.06));
  transform:translateX(-2px);box-shadow:0 11px 25px rgba(0,0,0,.15);
}
.ndx-category-service-icon,.ndx-category-game-icon,.ndx-mobile-cat-icon{
  display:grid;place-items:center;overflow:hidden;flex:0 0 auto;border:1px solid rgba(255,255,255,.09);
  background:rgba(255,145,0,.09);color:#ff9f2f;
}
.ndx-category-service-icon{width:42px;height:42px;border-radius:13px;}
.ndx-category-service-icon img,.ndx-category-game-icon img,.ndx-mobile-cat-icon img{width:100%;height:100%;object-fit:cover;display:block;}
.ndx-category-service-text{display:grid;gap:3px;min-width:0;flex:1;}
.ndx-category-service-text strong{overflow:hidden;text-overflow:ellipsis;color:#fff;font-size:13px;font-weight:950;white-space:nowrap;}
.ndx-category-service-text small{color:rgba(255,255,255,.5);font-size:11px;font-weight:800;}
.ndx-category-service-btn>i{align-self:center;color:rgba(255,255,255,.46);}
.ndx-category-service-all{
  width:36px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.075);border-radius:13px;
  background:rgba(255,255,255,.025);color:rgba(255,255,255,.70);text-decoration:none;transition:.18s ease;
}
.ndx-category-service-all:hover{border-color:rgba(255,145,0,.28);background:rgba(255,145,0,.11);color:#fff;}
.ndx-category-games{padding:2px 2px 2px 3px;}
.ndx-category-game-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;padding:5px 4px 9px;border-bottom:1px solid rgba(255,255,255,.07);}
.ndx-category-game-head small{display:block;color:rgba(255,255,255,.52);font-size:11px;font-weight:800;}
.ndx-category-game-head strong{display:block;margin-top:2px;color:#fff;font-size:18px;font-weight:950;}
.ndx-category-game-head a{display:flex;align-items:center;gap:5px;color:#ffb25d;text-decoration:none;font-size:12px;font-weight:900;}
.ndx-category-game-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.ndx-category-game{
  display:flex;align-items:center;gap:9px;min-width:0;padding:9px;border:1px solid rgba(255,255,255,.075);
  border-radius:16px;background:rgba(255,255,255,.027);color:#fff;text-decoration:none;
  transition:transform .18s ease,border-color .18s ease,background-color .18s ease,box-shadow .18s ease;
}
.ndx-category-game:hover{border-color:rgba(255,145,0,.30);background:rgba(255,145,0,.10);transform:translateY(-2px);box-shadow:0 13px 28px rgba(0,0,0,.20);}
.ndx-category-game-icon{width:46px;height:46px;border-radius:13px;}
.ndx-category-game-text{display:grid;gap:3px;min-width:0;flex:1;}
.ndx-category-game-text strong{overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:950;white-space:nowrap;}
.ndx-category-game-text small{color:rgba(255,255,255,.53);font-size:11px;font-weight:800;}
.ndx-category-game>i{color:rgba(255,255,255,.44);font-size:15px;}
.ndx-category-empty,.ndx-category-no-results{
  display:flex;align-items:center;justify-content:center;gap:11px;min-height:170px;padding:18px;
  border:1px dashed rgba(255,255,255,.12);border-radius:17px;background:rgba(255,255,255,.025);
  color:rgba(255,255,255,.67);text-align:center;
}
.ndx-category-empty i,.ndx-category-no-results i{color:#ff9d2d;font-size:28px;}
.ndx-category-empty strong{display:block;color:rgba(255,255,255,.82);font-size:13px;}
.ndx-category-empty a{display:inline-block;margin-top:7px;color:#ffb15b;text-decoration:none;font-size:12px;font-weight:900;}
.ndx-category-games.is-searching .ndx-category-game-panel{margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.07);}
.ndx-drawer-content,.ndx-acc-panel{overscroll-behavior:contain;}
.ndx-mobile-category-search{margin-bottom:9px;}
.ndx-mobile-category-search input{height:38px;font-size:12px;}
.ndx-mobile-cat-group{margin-bottom:8px;border:1px solid rgba(255,255,255,.075);border-radius:17px;background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.018));overflow:hidden;transition:border-color .22s ease,background .22s ease,box-shadow .22s ease;}
.ndx-mobile-cat-group:has(.ndx-mobile-cat-toggle[aria-expanded="true"]){border-color:rgba(255,145,0,.25);background:linear-gradient(180deg,rgba(255,122,24,.075),rgba(255,255,255,.018));box-shadow:0 12px 28px rgba(0,0,0,.16);}
.ndx-mobile-cat-row{display:flex;align-items:center;gap:7px;padding:6px;}
.ndx-mobile-cat-root{display:flex;align-items:center;gap:10px;min-width:0;flex:1;padding:4px;color:#fff;text-decoration:none;}
.ndx-mobile-cat-root>span:last-child{display:grid;gap:2px;min-width:0;}
.ndx-mobile-cat-root strong{overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:950;white-space:nowrap;}
.ndx-mobile-cat-root small{color:rgba(255,255,255,.50);font-size:11px;font-weight:800;}
.ndx-mobile-cat-icon{width:38px;height:38px;border-radius:12px;}
.ndx-mobile-cat-toggle{
  width:42px;height:42px;min-width:42px;
  display:grid;place-items:center;
  padding:0!important;margin:0;
  border:1px solid rgba(255,145,0,.16);
  border-radius:14px;
  background:linear-gradient(180deg,rgba(255,145,0,.095),rgba(255,255,255,.025));
  color:#ffb15b;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease;
}
.ndx-mobile-cat-toggle:hover{border-color:rgba(255,145,0,.34);background:rgba(255,122,24,.14);box-shadow:0 9px 20px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.08);}
.ndx-mobile-cat-toggle:active{transform:scale(.94);}
.ndx-mobile-cat-toggle[aria-expanded="true"]{background:linear-gradient(180deg,rgba(255,122,24,.23),rgba(255,122,24,.10));border-color:rgba(255,160,63,.42);color:#ffd2a1;}
.ndx-mobile-cat-toggle i{display:block;font-size:18px;line-height:1;transition:transform .28s cubic-bezier(.22,1,.36,1);}
.ndx-mobile-cat-toggle[aria-expanded="true"] i{transform:rotate(180deg);}
.ndx-mobile-cat-children{display:grid;gap:5px;padding:7px 8px 9px;border-top:1px solid rgba(255,145,0,.10);transform-origin:top center;will-change:height,opacity,transform;}
.ndx-mobile-cat-all,.ndx-mobile-cat-child{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:8px 9px;border-radius:10px;color:rgba(255,255,255,.76);text-decoration:none;font-size:12px;font-weight:850;transition:.18s ease;}
.ndx-mobile-cat-all{justify-content:flex-start;color:#ffbf79;}
.ndx-mobile-cat-all:hover,.ndx-mobile-cat-child:hover{background:rgba(255,145,0,.10);color:#fff;}
.ndx-mobile-cat-child small{padding:2px 6px;border-radius:999px;background:rgba(255,255,255,.06);color:rgba(255,255,255,.52);font-size:10px;}
.ndx-mobile-cat-no-results{padding:13px;color:rgba(255,255,255,.62);font-size:12px;text-align:center;}
html[dir="ltr"] .ndx-category-service-text small,html[dir="ltr"] .ndx-category-game-text small,html[dir="ltr"] .ndx-mobile-cat-root small,html[dir="ltr"] .ndx-mobile-cat-child small{font-family:Arial,sans-serif;font-variant-numeric:lining-nums tabular-nums;font-feature-settings:"lnum" 1,"tnum" 1;unicode-bidi:isolate;}
html[dir="ltr"] .ndx-category-service-btn:hover,html[dir="ltr"] .ndx-category-service-btn.is-active{transform:translateX(2px);}
html[dir="ltr"] .ndx-category-panel{right:auto;left:0;transform-origin:top left;}
html[dir="ltr"] .ndx-category-panel .ti-chevron-left,html[dir="ltr"] .ndx-category-panel .ti-arrow-left{transform:rotate(180deg);}
@media(max-width:720px){.ndx-category-game-grid{grid-template-columns:1fr;}}
@media(max-width:576px){
  .ndx-drawer-panel{top:max(6px,env(safe-area-inset-top,0px));right:6px;bottom:max(6px,env(safe-area-inset-bottom,0px));width:calc(100vw - 12px);border-radius:22px;}
  .ndx-drawer-top{min-height:58px;padding:8px 10px;}
  .ndx-drawer-close{width:40px;height:40px;min-width:40px;border-radius:14px;}
  .ndx-drawer-content{padding:10px 10px calc(18px + env(safe-area-inset-bottom,0px));}
  .ndx-mobile-cat-icon{width:40px;height:40px;}
}
@media(prefers-reduced-motion:reduce){.ndx-category-panel *,.ndx-mobile-cat-group *{animation-duration:.01ms!important;transition-duration:.01ms!important;}}

/* =========================
   NDEs refined cart drawer — UI-only override
   Keeps existing endpoints, CSRF flow and AJAX behavior intact.
   ========================= */
.ndx-cart-modal{direction:inherit;}
.ndx-cart-panel{
  display:flex;
  flex-direction:column;
  isolation:isolate;
  top:10px;
  bottom:10px;
  width:min(468px,calc(100vw - 20px));
  overflow:hidden;
  border:1px solid rgba(255,255,255,.105);
  border-radius:24px;
  background:
    radial-gradient(700px 260px at 18% -6%,rgba(255,128,18,.16),transparent 62%),
    radial-gradient(620px 280px at 105% 20%,rgba(64,90,170,.10),transparent 66%),
    linear-gradient(180deg,rgba(15,18,27,.985),rgba(8,10,16,.99));
  box-shadow:0 30px 100px rgba(0,0,0,.68),inset 0 1px 0 rgba(255,255,255,.055);
}
html[dir="rtl"] .ndx-cart-panel{right:10px;left:auto;transform:translateX(112%);}
html[dir="ltr"] .ndx-cart-panel{left:10px;right:auto;transform:translateX(-112%);}
.ndx-cart-modal.active .ndx-cart-panel{transform:translateX(0);}
.ndx-cart-panel::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:linear-gradient(125deg,rgba(255,255,255,.035),transparent 22%,transparent 72%,rgba(255,145,0,.035));
}
.ndx-cart-head{
  flex:0 0 auto;
  padding:16px 16px 13px;
  border-bottom:0;
  background:rgba(255,255,255,.018);
}
.ndx-cart-head-left{gap:11px;}
.ndx-cart-badge{
  width:44px;
  height:44px;
  border-radius:15px;
  background:linear-gradient(145deg,rgba(255,137,24,.23),rgba(255,114,0,.08));
  border-color:rgba(255,159,65,.25);
  color:#ffb35d;
  font-size:21px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.ndx-cart-title{font-size:15px;letter-spacing:-.15px;}
.ndx-cart-sub{margin-top:3px;font-size:11.5px;color:rgba(255,255,255,.54);}
.ndx-cart-close{
  width:38px;
  height:38px;
  border-radius:12px;
  background:rgba(255,255,255,.035);
  color:rgba(255,255,255,.78);
}
.ndx-cart-close:hover{transform:none;border-color:rgba(255,142,32,.30);background:rgba(255,132,20,.09);color:#fff;}
.ndx-cart-assurance{
  display:flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
  margin:0 14px 2px;
  padding:8px 10px;
  border:1px solid rgba(101,218,164,.13);
  border-radius:11px;
  background:rgba(82,203,144,.045);
  color:rgba(213,255,234,.72);
  font-size:10.5px;
  font-weight:850;
}
.ndx-cart-assurance i{color:#62dca2;font-size:15px;}
.ndx-cart-divider{display:none;}
.ndx-cart-body{
  flex:1 1 auto;
  min-height:0;
  height:auto;
  padding:12px 14px 14px;
  overflow:auto;
  overscroll-behavior:contain;
}
.ndx-cart-list{gap:9px;}
.ndx-cart-item{
  align-items:stretch;
  gap:11px;
  padding:10px;
  border-color:rgba(255,255,255,.075);
  border-radius:16px;
  background:rgba(255,255,255,.027);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.ndx-cart-item:hover{
  transform:translateY(-1px);
  border-color:rgba(255,145,0,.20);
  background:rgba(255,255,255,.04);
}
.ndx-cart-thumb{
  width:76px;
  height:76px;
  border-radius:13px;
  border-color:rgba(255,255,255,.085);
  box-shadow:0 9px 22px rgba(0,0,0,.18);
}
.ndx-cart-info{display:flex;min-width:0;flex-direction:column;justify-content:space-between;gap:7px;}
.ndx-cart-item-top{display:flex;align-items:flex-start;gap:7px;min-width:0;}
.ndx-cart-name{
  display:-webkit-box;
  flex:1 1 auto;
  min-width:0;
  margin:0;
  overflow:hidden;
  color:rgba(255,255,255,.92);
  font-size:12.5px;
  line-height:1.7;
  white-space:normal;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.ndx-cart-tags{display:flex;flex-wrap:wrap;gap:5px;}
.ndx-cart-tags span{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:3px 6px;
  border:1px solid rgba(255,255,255,.065);
  border-radius:999px;
  background:rgba(255,255,255,.025);
  color:rgba(255,255,255,.55);
  font-size:9.5px;
  font-weight:800;
}
.ndx-cart-tags i{color:#ffa647;font-size:11px;}
.ndx-cart-price-row{display:flex;align-items:end;justify-content:space-between;gap:7px;}
.ndx-cart-price-row small{color:rgba(255,255,255,.43);font-size:9.5px;font-weight:800;}
.ndx-cart-price{color:#ffc077;font-size:12.5px;white-space:nowrap;}
.ndx-cart-price span{color:rgba(255,255,255,.49);font-size:9.5px;}
.ndx-cart-qty{display:none;}
.ndx-cart-remove{
  width:28px;
  height:28px;
  flex:0 0 28px;
  border-color:rgba(255,255,255,.075);
  border-radius:9px;
  background:rgba(255,255,255,.025);
  color:rgba(255,255,255,.5);
  font-size:14px;
}
.ndx-cart-remove:hover{transform:none;border-color:rgba(255,88,88,.24);background:rgba(255,76,76,.09);color:#ff9c9c;}
.ndx-cart-foot{
  position:static;
  flex:0 0 auto;
  padding:12px 14px 14px;
  border-top:1px solid rgba(255,255,255,.075);
  background:rgba(7,9,14,.80);
  box-shadow:0 -18px 38px rgba(0,0,0,.13);
}
.ndx-cart-summary-card{
  padding:10px 11px;
  border:1px solid rgba(255,255,255,.065);
  border-radius:13px;
  background:rgba(255,255,255,.022);
}
.ndx-cart-total{margin:0;gap:10px;}
.ndx-cart-total span{color:rgba(255,255,255,.60);font-size:11px;}
.ndx-cart-total strong{color:#fff;font-size:14px;white-space:nowrap;}
.ndx-cart-summary-card p{display:flex;align-items:center;gap:5px;margin:7px 0 0;color:rgba(255,255,255,.43);font-size:9.5px;font-weight:750;line-height:1.65;}
.ndx-cart-summary-card p i{color:#62dca2;font-size:12px;}
.ndx-cart-form{margin-top:9px;}
.ndx-cart-primary{
  min-height:44px;
  padding:10px 13px;
  border-radius:12px;
  background:linear-gradient(135deg,#ff7814,#ffad42);
  box-shadow:0 12px 28px rgba(255,112,0,.16);
  font-size:12px;
}
.ndx-cart-primary:hover{transform:translateY(-1px);box-shadow:0 16px 33px rgba(255,112,0,.21);}
.ndx-cart-secondary{
  gap:6px;
  margin-top:7px;
  padding:8px 10px;
  border-color:transparent;
  border-radius:9px;
  background:transparent;
  color:rgba(255,255,255,.59);
  font-size:11px;
}
.ndx-cart-secondary:hover{transform:none;border-color:transparent;background:rgba(255,255,255,.035);color:#fff;}
.ndx-cart-secondary i{font-size:14px;}
html[dir="ltr"] .ndx-cart-primary i,html[dir="ltr"] .ndx-cart-ghost i{transform:rotate(180deg);}
html[dir="ltr"] .ndx-cart-secondary i{transform:rotate(180deg);}
.ndx-cart-empty{
  min-height:100%;
  height:auto;
  padding:22px 13px;
}
.ndx-cart-empty-visual{position:relative;display:grid;width:92px;height:92px;margin-bottom:8px;place-items:center;}
.ndx-cart-empty-orbit{position:absolute;inset:5px;border:1px dashed rgba(255,163,63,.27);border-radius:50%;}
.ndx-cart-empty-ic{
  width:64px;
  height:64px;
  margin:0;
  border-color:rgba(255,153,44,.22);
  border-radius:20px;
  background:linear-gradient(145deg,rgba(255,142,27,.20),rgba(255,117,0,.055));
  color:#ffb35d;
  font-size:29px;
}
.ndx-cart-empty h4{max-width:290px;margin:7px 0 7px;font-size:14px;line-height:1.75;}
.ndx-cart-empty p{max-width:330px;margin:0 0 13px;color:rgba(255,255,255,.53);font-size:11px;font-weight:750;line-height:1.9;}
.ndx-cart-ghost{gap:7px;padding:9px 12px;border-color:rgba(255,154,48,.20);border-radius:10px;background:rgba(255,135,22,.09);color:#ffc077;font-size:11px;}
@media(max-width:576px){
  .ndx-cart-panel{top:0;bottom:0;width:100vw;border-radius:0;}
  html[dir="rtl"] .ndx-cart-panel{right:0;left:auto;}
  html[dir="ltr"] .ndx-cart-panel{left:0;right:auto;}
  .ndx-cart-head{padding:13px 13px 11px;}
  .ndx-cart-assurance{margin:0 12px 2px;}
  .ndx-cart-body{padding:10px 12px 12px;}
  .ndx-cart-foot{padding:11px 12px calc(12px + env(safe-area-inset-bottom));}
  .ndx-cart-thumb{width:68px;height:68px;}
}
@media(prefers-reduced-motion:reduce){.ndx-cart-panel,.ndx-cart-panel *{transition-duration:.01ms!important;animation-duration:.01ms!important;}}
