/* =====================================================
   WOLFOX STORE — Premium Visual Identity v3.0
   تصميم بصري احترافي عالمي
===================================================== */

@import url('wfx-theme.css');

/* ─── متغيرات النظام (مُوحَّدة مع wfx-theme.css) ─── */
:root {
  /* تعيين الأسماء القديمة إلى المتغيرات الموحدة الجديدة */
  --c-bg:        var(--bg-base);
  --c-bg2:       var(--bg-surface);
  --c-surface:   var(--primary-soft);
  --c-surface2:  rgba(168, 85, 247, 0.12);
  --c-border:    var(--border);
  --c-border2:   var(--border-strong);

  --c-p:         var(--primary);
  --c-p2:        var(--primary-dark);
  --c-p3:        var(--primary-light);
  --c-accent:    var(--secondary);
  --c-success:   var(--accent-green);
  --c-warn:      var(--accent-warn);
  --c-danger:    var(--accent-red);

  --c-text:      var(--text-primary);
  --c-text2:     var(--text-secondary);
  --c-text3:     var(--text-muted);

  --glow-p:      var(--glow-primary);
  --glow-sm:     var(--glow-sm);
  --shadow:      var(--shadow);
  --shadow-sm:   var(--shadow-sm);

  --r:           var(--radius);
  --r-lg:        var(--radius-lg);
  --r-xl:        var(--radius-xl);
  --r-pill:      var(--radius-pill);

  --font:        var(--font);
  --ease:        var(--ease);
  --dur:         var(--dur);
}

/* ─── إعادة ضبط ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  direction: rtl;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font-family: var(--font); }

/* ─── خلفية متحركة ─── */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(124,58,237,.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 80%, rgba(236,72,153,.08) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(124,58,237,.05) 0%, transparent 70%),
    linear-gradient(180deg, #0d1117 0%, #06090f 100%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .4;
  background-image:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at center, #000, transparent 75%);
}

/* ─── Layout ─── */
.wfx-wrap {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 16px 14px 100px;
}

/* ─── Header ─── */
.wfx-header {
  background: rgba(13,17,23,.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--c-border2);
  border-radius: var(--r-xl);
  padding: 18px 20px;
  margin-bottom: 22px;
  position: sticky; top: 12px; z-index: 100;
  box-shadow: var(--glow-sm), var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wfx-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wfx-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wfx-brand-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--c-p), var(--c-accent));
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 20px;
  box-shadow: var(--glow-sm);
  flex-shrink: 0;
}
.wfx-brand-logo-img {
  height: 44px; width: auto;
  border-radius: 10px;
  object-fit: contain;
}
.wfx-brand-name {
  font-size: 18px; font-weight: 900;
  background: linear-gradient(135deg, #fff, var(--c-p3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.wfx-brand-sub {
  font-size: 11px; color: var(--c-text3); font-weight: 500;
  margin-top: 1px;
}
.wfx-header-actions { display: flex; gap: 8px; align-items: center; }
.wfx-menu-toggle, .wfx-lang-toggle {
  display: flex; align-items: center; gap: 6px;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  color: var(--c-text2);
  border-radius: var(--r);
  padding: 8px 14px;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.wfx-menu-toggle:hover, .wfx-lang-toggle:hover {
  background: rgba(124,58,237,.15);
  border-color: rgba(124,58,237,.4);
  color: var(--c-p3);
}
.wfx-social-row { display: flex; gap: 8px; flex-wrap: wrap; }
.wfx-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.wfx-social {
  width: 36px; height: 36px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 15px;
  transition: all var(--dur) var(--ease);
}
.wfx-social:hover {
  background: rgba(124,58,237,.2);
  border-color: rgba(124,58,237,.4);
  transform: translateY(-2px);
  box-shadow: var(--glow-sm);
}
.wfx-nav {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.wfx-nav-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  font-size: 13px; font-weight: 700;
  color: var(--c-text2);
  transition: all var(--dur) var(--ease);
}
.wfx-nav-btn:hover, .wfx-nav-btn.active {
  background: rgba(124,58,237,.15);
  border-color: rgba(124,58,237,.5);
  color: var(--c-p3);
}
.wfx-pages-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0; right: 0;
  background: rgba(13,17,23,.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--c-border2);
  border-radius: var(--r-lg);
  padding: 12px;
  z-index: 1000;
  box-shadow: var(--shadow);
  animation: wfxFadeInDown .3s var(--ease);
}
.wfx-pages-menu.open { display: block; }
.wfx-pages-menu-inner { display: flex; flex-direction: column; gap: 6px; }
.wfx-pages-menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-radius: var(--r);
  color: var(--c-text2);
  font-weight: 700;
  font-size: 14px;
  transition: all var(--dur) var(--ease);
}
.wfx-pages-menu-item:hover, .wfx-pages-menu-item.active {
  background: rgba(124,58,237,.15);
  color: var(--c-p3);
  transform: translateX(-4px);
}
.wfx-pages-menu-item i { font-size: 18px; width: 24px; text-align: center; color: var(--c-p2); }

@keyframes wfxFadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .wfx-nav-desktop { display: none !important; }
}

/* ─── Hero Section ─── */
.wfx-hero {
  background: linear-gradient(135deg, rgba(124,58,237,.1) 0%, rgba(236,72,153,.06) 100%);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: var(--r-xl);
  padding: 50px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  animation: fadeUp .7s var(--ease) both;
}
.wfx-hero::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 25% 50%, rgba(124,58,237,.18) 0%, transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(236,72,153,.12) 0%, transparent 50%);
}
.wfx-hero > * { position: relative; z-index: 1; }
.wfx-hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: var(--r-pill);
  color: var(--c-p3);
  font-size: 12px; font-weight: 900; letter-spacing: 1px;
  margin-bottom: 20px;
  animation: slideIn .5s var(--ease) .1s both;
}
.wfx-hero h1 {
  font-size: clamp(26px, 5.5vw, 46px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, var(--c-p3) 60%, var(--c-accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp .6s var(--ease) .2s both;
}
.wfx-hero p {
  font-size: 16px; color: var(--c-text2);
  max-width: 560px; margin: 0 auto 28px;
  line-height: 1.9;
  animation: fadeUp .6s var(--ease) .3s both;
}
.wfx-hero-btns {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp .6s var(--ease) .4s both;
}

/* ─── Stats ─── */
.wfx-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.wfx-stat {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--dur) var(--ease);
  animation: fadeUp .6s var(--ease) both;
}
.wfx-stat:hover {
  border-color: rgba(124,58,237,.4);
  box-shadow: var(--glow-sm);
  transform: translateY(-4px);
}
.wfx-stat-val {
  display: block;
  font-size: 22px; font-weight: 900;
  background: linear-gradient(135deg, var(--c-p2), var(--c-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.wfx-stat-fa { margin-left: 4px; }
.wfx-stat-lbl { font-size: 12px; color: var(--c-text3); font-weight: 600; }

/* ─── Card ─── */
.wfx-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 24px;
  margin-bottom: 16px;
  animation: fadeUp .6s var(--ease) both;
  transition: border-color var(--dur) var(--ease);
}
.wfx-card:hover { border-color: var(--c-border2); }
.wfx-card h2 {
  font-size: 18px; font-weight: 900;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
  color: var(--c-text);
}
.wfx-card h2 i { color: var(--c-p2); }

/* ─── Products Grid ─── */
.wfx-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.wfx-product {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
  animation: fadeUp .6s var(--ease) both;
  position: relative;
}
.wfx-product::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(124,58,237,.08) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.wfx-product:hover {
  transform: translateY(-6px);
  border-color: rgba(124,58,237,.4);
  box-shadow: var(--glow-p);
}
.wfx-product:hover::before { opacity: 1; }

.wfx-product-visual {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(236,72,153,.1));
  display: grid; place-items: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}
.wfx-product-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.wfx-product:hover .wfx-product-img { transform: scale(1.05); }
.wfx-product-icon { font-size: 52px; }

.wfx-product-body { padding: 18px; }
.wfx-product-title {
  font-size: 16px; font-weight: 900;
  margin-bottom: 6px; color: var(--c-text);
}
.wfx-product-desc {
  font-size: 13px; color: var(--c-text2);
  line-height: 1.7; margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wfx-product-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.wfx-product-price {
  font-size: 20px; font-weight: 900;
  background: linear-gradient(135deg, var(--c-p2), var(--c-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.wfx-product-currency { font-size: 12px; color: var(--c-text3); }

/* ─── Buttons ─── */
.wfx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r);
  font-size: 14px; font-weight: 900;
  font-family: 'Cairo', 'Cairo', system-ui, sans-serif;
  letter-spacing: .3px;
  cursor: pointer; border: none;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  position: relative; overflow: hidden;
  text-decoration: none;
}
.wfx-btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  transform: translateX(-100%);
  transition: transform .6s var(--ease);
}
.wfx-btn:hover::after { transform: translateX(100%); }

.wfx-btn.primary {
  background: linear-gradient(135deg, var(--c-p), var(--c-p2));
  color: #fff;
  box-shadow: 0 8px 25px rgba(124,58,237,.4);
}
.wfx-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(124,58,237,.55);
  filter: brightness(1.1);
}
.wfx-btn.secondary {
  background: var(--c-surface2);
  border: 1px solid var(--c-border2);
  color: var(--c-text);
}
.wfx-btn.secondary:hover {
  background: rgba(124,58,237,.15);
  border-color: rgba(124,58,237,.4);
  transform: translateY(-2px);
}
.wfx-btn.ghost {
  background: transparent;
  border: 1px solid var(--c-border2);
  color: var(--c-text2);
}
.wfx-btn.ghost:hover {
  background: var(--c-surface2);
  border-color: var(--c-p2);
  color: var(--c-p3);
}
.wfx-btn.danger {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
  box-shadow: 0 6px 20px rgba(239,68,68,.35);
}
.wfx-btn.danger:hover { transform: translateY(-2px); filter: brightness(1.1); }
.wfx-btn.success {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  box-shadow: 0 6px 20px rgba(16,185,129,.35);
}
.wfx-btn.success:hover { transform: translateY(-2px); filter: brightness(1.1); }
.wfx-btn:disabled { opacity: .5; pointer-events: none; }
.wfx-btn.full { width: 100%; }
.wfx-btn.sm { padding: 8px 14px; font-size: 12px; border-radius: 12px; }
.wfx-btn.lg { padding: 16px 32px; font-size: 16px; border-radius: var(--r-lg); }

/* ─── Payment Grid ─── */
.wfx-pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.wfx-pay-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 18px 12px;
  text-align: center;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}
.wfx-pay-item:hover {
  background: rgba(124,58,237,.1);
  border-color: rgba(124,58,237,.4);
  transform: translateY(-3px);
  box-shadow: var(--glow-sm);
}
.wfx-pay-item i { font-size: 26px; color: var(--c-p2); margin-bottom: 8px; display: block; }
.wfx-pay-item b { display: block; font-size: 13px; font-weight: 900; margin-bottom: 3px; }
.wfx-pay-item small { font-size: 11px; color: var(--c-text3); }

/* ─── Forms ─── */
.wfx-form-group { margin-bottom: 16px; }
.wfx-label {
  display: block;
  font-size: 13px; font-weight: 700; color: var(--c-text2);
  margin-bottom: 8px;
}
.wfx-input, input[type=text], input[type=email], input[type=tel],
input[type=number], input[type=password], textarea, select {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--c-border2);
  border-radius: var(--r);
  color: var(--c-text);
  padding: 13px 16px;
  font-size: 14px; font-family: var(--font);
  transition: all var(--dur) var(--ease);
  outline: none;
}
.wfx-input:focus, input[type=text]:focus, input[type=email]:focus,
input[type=tel]:focus, input[type=number]:focus, input[type=password]:focus,
textarea:focus, select:focus {
  border-color: var(--c-p);
  box-shadow: 0 0 0 4px rgba(124,58,237,.15);
  background: rgba(124,58,237,.05);
}
textarea { min-height: 100px; resize: vertical; }
select { appearance: none; cursor: pointer; }
select option { background: #1e293b; }

/* ─── Badges ─── */
.wfx-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 900;
}
.wfx-badge.purple { background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.3); color: var(--c-p3); }
.wfx-badge.green  { background: rgba(16,185,129,.15);  border: 1px solid rgba(16,185,129,.3);  color: #34d399; }
.wfx-badge.red    { background: rgba(239,68,68,.15);   border: 1px solid rgba(239,68,68,.3);   color: #f87171; }
.wfx-badge.yellow { background: rgba(245,158,11,.15);  border: 1px solid rgba(245,158,11,.3);  color: #fbbf24; }
.wfx-badge.blue   { background: rgba(59,130,246,.15);  border: 1px solid rgba(59,130,246,.3);  color: #60a5fa; }

/* ─── Note / Alert ─── */
.wfx-note {
  background: rgba(124,58,237,.08);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: var(--r);
  padding: 14px 16px;
  font-size: 13px; color: var(--c-text2);
}
.wfx-note.success { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.25); color: #6ee7b7; }
.wfx-note.danger  { background: rgba(239,68,68,.08);  border-color: rgba(239,68,68,.25);  color: #fca5a5; }
.wfx-note.warn    { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.25); color: #fde68a; }

/* ─── Footer ─── */
.wfx-footer {
  text-align: center;
  padding: 30px 16px 16px;
  color: var(--c-text3);
  font-size: 12px;
}
.wfx-footer a { color: var(--c-p3); }

/* ─── Bottom Nav ─── */
.wfx-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(13,17,23,.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--c-border);
  display: flex;
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom);
}
.wfx-bottom-btn {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px;
  color: var(--c-text3);
  font-size: 10px; font-weight: 700;
  transition: all var(--dur) var(--ease);
  border: none; background: none; cursor: pointer;
}
.wfx-bottom-btn i { font-size: 18px; }
.wfx-bottom-btn.active, .wfx-bottom-btn:hover {
  color: var(--c-p3);
}

/* ─── Divider ─── */
.wfx-divider {
  height: 1px;
  background: var(--c-border);
  margin: 20px 0;
}

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .6; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Themes ─── */
.wfx-product-theme-blue   { --t-c: #3b82f6; }
.wfx-product-theme-green  { --t-c: #10b981; }
.wfx-product-theme-purple { --t-c: #a855f7; }
.wfx-product-theme-orange { --t-c: #f97316; }
.wfx-product-theme-pink   { --t-c: #ec4899; }
.wfx-product-theme-teal   { --t-c: #14b8a6; }
.wfx-product-theme-red    { --t-c: #ef4444; }
.wfx-product-theme-gold   { --t-c: #f59e0b; }

[class*="wfx-product-theme-"] .wfx-product-visual {
  background: linear-gradient(135deg, color-mix(in srgb, var(--t-c) 20%, transparent), color-mix(in srgb, var(--t-c) 10%, transparent));
}
[class*="wfx-product-theme-"] .wfx-product-icon { color: var(--t-c); }
[class*="wfx-product-theme-"]:hover { border-color: color-mix(in srgb, var(--t-c) 50%, transparent); }
[class*="wfx-product-theme-"]:hover { box-shadow: 0 0 30px color-mix(in srgb, var(--t-c) 25%, transparent); }

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .wfx-hero { padding: 36px 20px; }
  .wfx-hero h1 { font-size: 26px; }
  .wfx-products { grid-template-columns: 1fr; }
  .wfx-stats { grid-template-columns: repeat(2, 1fr); }
  .wfx-pay-grid { grid-template-columns: repeat(2, 1fr); }
  .wfx-header { border-radius: var(--r-lg); top: 8px; }
}
@media (min-width: 641px) {
  .wfx-pages-menu { display: flex !important; }
}

/* =====================================================
   WOLFOX GLOBAL UI FIX — Mobile header/buttons/all pages
   إصلاح موحد للهيدر والأزرار والقائمة السفلية لكل الصفحات
===================================================== */

/* منع أي نص زر من الظهور عمودياً أو متقطعاً */
button, .wfx-btn, .wfx-menu-toggle, .wfx-lang-toggle, .wfx-nav-btn,
.wfx-bottom-nav-item, .wfx-product-buy, .payment-link, .track-btn, .copy-btn,
.wfx-pay-item, .wfx-social-item, .tutorial-card, .social-card {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}
button span, button i, .wfx-btn span, .wfx-btn i,
.wfx-menu-toggle span, .wfx-menu-toggle i,
.wfx-lang-toggle span, .wfx-lang-toggle i,
.wfx-nav-btn span, .wfx-nav-btn i,
.wfx-bottom-nav-item span, .wfx-bottom-nav-item i {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: nowrap !important;
  flex-shrink: 0;
}

/* شكل موحد للأزرار في كل الصفحات */
.wfx-btn, .wfx-menu-toggle, .wfx-lang-toggle, .wfx-nav-btn,
.wfx-product-buy, .payment-link, .track-btn, .copy-btn,
button[type="submit"], input[type="submit"] {
  min-height: 48px;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  border-radius: 18px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-align: center !important;
}

/* الهيدر العام */
.wfx-header {
  isolation: isolate;
}
.wfx-header-main {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  width: 100%;
}
.wfx-brand {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden;
}
.wfx-brand-text { min-width: 0 !important; }
.wfx-brand-name, .wfx-brand-sub {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.wfx-header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
  min-width: max-content !important;
}
.wfx-menu-toggle {
  min-width: 118px !important;
  height: 50px !important;
  padding: 0 16px !important;
  flex-direction: row !important;
}
.wfx-lang-toggle {
  min-width: 74px !important;
  height: 50px !important;
  padding: 0 14px !important;
  flex-direction: row !important;
}

/* القائمة المفتوحة داخل الهيدر */
.wfx-pages-menu.open, .wfx-nav.wfx-pages-menu.open {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  width: 100%;
}
.wfx-nav-btn {
  min-width: 112px;
  height: 48px;
  padding: 0 16px !important;
  flex-direction: row !important;
}

/* القائمة السفلية للجوال — إصلاح التداخل مع الإعلانات والمحتوى */
.wfx-bottom-nav {
  position: fixed !important;
  left: 10px !important;
  right: 10px !important;
  bottom: calc(8px + env(safe-area-inset-bottom)) !important;
  height: 58px !important;
  padding: 6px !important;
  border-radius: 18px !important;
  background: rgba(6, 9, 15, .92) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: 0 10px 34px rgba(0,0,0,.45) !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 4px !important;
  z-index: 999 !important;
}
.wfx-bottom-nav-item {
  min-width: 0 !important;
  height: 46px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  color: var(--c-text2) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  border-radius: 14px !important;
  white-space: nowrap !important;
}
.wfx-bottom-nav-item .icon {
  display: grid !important;
  place-items: center !important;
  font-size: 15px !important;
  line-height: 1 !important;
}
.wfx-bottom-nav-item.active {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(124,58,237,.55), rgba(168,85,247,.35)) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08) !important;
}

/* مساحة أسفل الصفحات حتى لا تغطي القائمة السفلية آخر المحتوى */
.wfx-wrap {
  padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
}

@media (max-width: 640px) {
  .wfx-wrap {
    padding: 14px 12px calc(96px + env(safe-area-inset-bottom)) !important;
  }
  .wfx-header {
    position: sticky !important;
    top: 8px !important;
    padding: 14px !important;
    border-radius: 28px !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
  }
  .wfx-header-main {
    gap: 10px !important;
  }
  .wfx-brand {
    gap: 10px !important;
    flex-direction: row !important;
  }
  .wfx-brand-icon, .wfx-brand-logo-img {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    border-radius: 16px !important;
  }
  .wfx-brand-name {
    font-size: 18px !important;
    line-height: 1.15 !important;
  }
  .wfx-brand-sub {
    font-size: 11px !important;
    line-height: 1.35 !important;
    max-width: 210px !important;
  }
  .wfx-header-actions {
    gap: 8px !important;
  }
  .wfx-menu-toggle {
    min-width: 112px !important;
    height: 48px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
  }
  .wfx-lang-toggle {
    min-width: 66px !important;
    height: 48px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
  }
  .wfx-social-row {
    margin-top: 2px !important;
  }
  .wfx-pages-menu.open, .wfx-nav.wfx-pages-menu.open {
    margin-top: 2px !important;
  }
  .wfx-nav-btn {
    flex: 1 1 calc(50% - 5px) !important;
    min-width: 0 !important;
    height: 46px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
  }
  .wfx-products {
    gap: 18px !important;
  }
  .wfx-product {
    border-radius: 26px !important;
  }
  .wfx-product-body {
    padding: 18px 16px 20px !important;
    text-align: right !important;
  }
  .wfx-product-title {
    font-size: 18px !important;
    line-height: 1.45 !important;
  }
  .wfx-product-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .wfx-product-price {
    text-align: center !important;
    font-size: 25px !important;
  }
  .wfx-product-footer .wfx-btn,
  .wfx-product-buy {
    width: 100% !important;
    min-height: 56px !important;
    border-radius: 20px !important;
    font-size: 16px !important;
  }
}

@media (max-width: 430px) {
  .wfx-header {
    padding: 12px !important;
  }
  .wfx-header-main {
    gap: 8px !important;
  }
  .wfx-brand-icon, .wfx-brand-logo-img {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
  }
  .wfx-brand-name {
    font-size: 16px !important;
  }
  .wfx-brand-sub {
    font-size: 10px !important;
    max-width: 155px !important;
  }
  .wfx-menu-toggle {
    min-width: 96px !important;
    height: 44px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
  }
  .wfx-lang-toggle {
    min-width: 58px !important;
    height: 44px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }
  .wfx-menu-toggle i, .wfx-lang-toggle i {
    font-size: 14px !important;
  }
}

@media (max-width: 360px) {
  .wfx-brand-sub { display: none !important; }
  .wfx-menu-toggle span { display: none !important; }
  .wfx-menu-toggle { min-width: 46px !important; width: 46px !important; padding: 0 !important; }
  .wfx-lang-toggle { min-width: 52px !important; }
}

@media (min-width: 641px) {
  .wfx-bottom-nav { display: none !important; }
}

/* =========================================================
   WOLFOX FINAL UI PATCH - all pages / mobile / product.php
   ========================================================= */
.wfx-header,.wfx-card,.wfx-product,.wfx-product-detail-card{overflow:visible!important}
.wfx-menu-toggle,.wfx-menu-toggle span,.wfx-lang-toggle,.wfx-lang-toggle span,.wfx-nav-btn,.wfx-bottom-nav-item{writing-mode:horizontal-tb!important;text-orientation:mixed!important;white-space:nowrap!important;letter-spacing:0!important;word-break:normal!important}
.wfx-header-main{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;flex-wrap:nowrap!important}
.wfx-brand{min-width:0!important;flex:1 1 auto!important;display:flex!important;align-items:center!important;gap:12px!important}.wfx-brand-text{min-width:0!important}.wfx-brand-name,.wfx-brand-sub{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.wfx-header-actions{display:flex!important;align-items:center!important;gap:10px!important;flex:0 0 auto!important}.wfx-menu-toggle,.wfx-lang-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex-direction:row!important;gap:8px!important}
.wfx-nav{align-items:center!important;justify-content:center!important;gap:10px!important}.wfx-nav-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex-direction:row!important;gap:8px!important;min-height:48px!important}
.wfx-pay-strip,.wfx-footer{text-align:center!important;margin-left:auto!important;margin-right:auto!important}.wfx-pay-strip{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:10px!important}.wfx-pay-icons{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;flex-wrap:wrap!important}
.wfx-bottom-nav{direction:rtl!important;display:flex!important;align-items:center!important;justify-content:space-around!important;gap:4px!important;padding:7px max(8px,env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-right))!important}.wfx-bottom-nav-item{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex-direction:row-reverse!important;gap:5px!important;min-width:0!important;font-size:14px!important;line-height:1!important}.wfx-bottom-nav-item .icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:15px!important}
.wfx-product-visual{display:flex!important;align-items:center!important;justify-content:center!important;min-height:190px!important;border-radius:22px!important;overflow:hidden!important}.wfx-product-img{width:100%!important;height:100%!important;min-height:190px!important;object-fit:cover!important;display:block!important}.wfx-product-icon,.wfx-product-detail-icon{display:grid!important;place-items:center!important;width:116px!important;height:116px!important;border-radius:28px!important;margin:auto!important;background:linear-gradient(135deg,rgba(59,130,246,.22),rgba(168,85,247,.18))!important;border:1px solid rgba(255,255,255,.10)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04),0 18px 45px rgba(0,0,0,.25)!important;color:#60a5fa!important;font-size:58px!important}.wfx-product-custom-icon{background:var(--custom-icon-bg,linear-gradient(135deg,rgba(59,130,246,.22),rgba(168,85,247,.18)))!important}.wfx-mask-icon{width:68px!important;height:68px!important;background:var(--custom-icon-color,#fff)!important;-webkit-mask:var(--icon-url) center/contain no-repeat!important;mask:var(--icon-url) center/contain no-repeat!important;display:block!important}
.wfx-product-body{text-align:center!important}.wfx-product-head{display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:10px!important;text-align:center!important}.wfx-product-title{text-align:center!important}.wfx-desc-btn{width:min(100%,520px)!important;margin:14px auto!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important}.wfx-product-bottom{display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:12px!important}.wfx-product-price{text-align:center!important}.wfx-product-buy{width:min(100%,520px)!important;margin:0 auto!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important}
.wfx-product-detail-page{padding:6px 0 18px}.wfx-product-detail-card{width:min(820px,100%);margin:0 auto;background:linear-gradient(180deg,rgba(15,23,42,.88),rgba(10,14,30,.92));border:1px solid var(--wfx-border);border-radius:34px;padding:20px;box-shadow:0 22px 80px rgba(0,0,0,.28)}.wfx-product-detail-media{min-height:230px;border-radius:26px;background:linear-gradient(135deg,rgba(30,41,59,.78),rgba(59,130,246,.12));border:1px solid rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;overflow:hidden;margin-bottom:18px}.wfx-product-detail-img{width:100%;height:100%;min-height:230px;object-fit:cover;display:block}.wfx-product-detail-body{text-align:center}.wfx-product-detail-body h1{margin:12px 0 8px;font-size:clamp(26px,6vw,42px);font-weight:900;line-height:1.35}.wfx-product-detail-stock{margin:0 auto 8px}.wfx-product-detail-price{font-size:clamp(30px,7vw,46px);font-weight:900;color:var(--wfx-p3);margin:10px 0 18px;text-align:center}.wfx-product-detail-price span{font-size:.62em}.wfx-product-detail-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:stretch;justify-content:center;margin-top:22px}.wfx-product-detail-buy,.wfx-product-detail-back{flex:1 1 240px;min-height:62px;border-radius:22px!important;display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:4px!important;text-align:center!important}.wfx-product-detail-buy small{display:block;font-size:12px;opacity:.85;font-weight:600}
.wfx-tabs{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;flex-wrap:wrap!important;margin-bottom:14px!important}.wfx-tab{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;border-radius:999px!important;padding:8px 14px!important;white-space:nowrap!important}.wfx-field{text-align:right!important}.wfx-field .wfx-label{display:block!important;text-align:right!important;margin-bottom:8px!important}.wfx-input.wfx{width:100%!important;min-height:56px!important;border-radius:20px!important;font-size:16px!important}.wfx-card form .wfx-btn.primary{width:100%!important;min-height:58px!important;border-radius:22px!important;margin-top:12px!important}
@media (max-width:768px){body{padding-bottom:74px!important}.wfx-wrap{padding-left:14px!important;padding-right:14px!important}.wfx-header{padding:16px!important;border-radius:28px!important}.wfx-header-main{gap:10px!important}.wfx-brand{order:1!important;max-width:calc(100% - 190px)!important}.wfx-header-actions{order:2!important}.wfx-menu-toggle{min-width:108px!important;height:46px!important;padding:0 12px!important}.wfx-lang-toggle{min-width:62px!important;height:46px!important;padding:0 9px!important}.wfx-social-row{display:none!important}.wfx-pages-menu{margin-top:14px!important;display:none!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.wfx-pages-menu.show{display:grid!important}.wfx-nav-btn{width:100%!important}.wfx-pay-strip{padding-bottom:8px!important}.wfx-footer{padding-bottom:6px!important}.wfx-product-detail-card{border-radius:28px;padding:16px}.wfx-product-detail-media{min-height:205px}.wfx-product-detail-img{min-height:205px}}
@media (max-width:430px){.wfx-header{padding:12px!important}.wfx-brand{max-width:calc(100% - 170px)!important}.wfx-brand-icon,.wfx-brand-logo-img{width:54px!important;height:54px!important;min-width:54px!important}.wfx-brand-name{font-size:18px!important}.wfx-brand-sub{font-size:12px!important;max-width:160px!important}.wfx-menu-toggle{min-width:100px!important;height:44px!important;font-size:13px!important}.wfx-lang-toggle{min-width:58px!important;height:44px!important;font-size:12px!important}.wfx-product-visual{min-height:175px!important}.wfx-product-img{min-height:175px!important}.wfx-product-icon{width:104px!important;height:104px!important;font-size:52px!important}.wfx-bottom-nav-item{font-size:13px!important}}
@media (max-width:360px){.wfx-brand{max-width:calc(100% - 118px)!important}.wfx-brand-sub{display:none!important}.wfx-menu-toggle span{display:none!important}.wfx-menu-toggle{min-width:46px!important;width:46px!important;padding:0!important}.wfx-lang-toggle{min-width:56px!important}.wfx-bottom-nav-item{font-size:12px!important;gap:3px!important}}
@media (min-width:641px){.wfx-bottom-nav{display:none!important}}


/* ===== WOLFOX final fixes v2: hide nav, product icons, buttons, track, footer ===== */
.wfx-product-visual,.wfx-product-detail-media{display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
.wfx-product-img,.wfx-product-detail-img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:22px!important}
.wfx-product-icon,.wfx-product-detail-icon{display:flex!important;align-items:center!important;justify-content:center!important;margin-inline:auto!important;text-align:center!important}
.wfx-mask-icon{display:block!important;width:72%!important;height:72%!important;background:var(--custom-icon-color,#fff)!important;-webkit-mask:var(--icon-url) center/contain no-repeat!important;mask:var(--icon-url) center/contain no-repeat!important}
.wfx-product-bottom,.wfx-product-detail-actions{display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;flex-wrap:wrap!important;text-align:center!important}
.wfx-product-price,.wfx-product-detail-price{text-align:center!important;white-space:nowrap!important}
.wfx-product-buy,.wfx-product-detail-buy,.wfx-product-detail-back{display:inline-flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;white-space:nowrap!important}
.wfx-pay-strip,.wfx-footer{text-align:center!important;margin-inline:auto!important}
.wfx-pay-icons{justify-content:center!important}
.wfx-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}.wfx-tab{width:100%!important;min-width:0!important;text-align:center!important;white-space:normal!important;line-height:1.25!important}
@media(max-width:520px){.wfx-tabs{grid-template-columns:1fr!important}.wfx-tab{min-height:48px!important}.wfx-product-bottom,.wfx-product-detail-actions{display:grid!important;grid-template-columns:1fr!important}.wfx-product-buy,.wfx-product-detail-buy,.wfx-product-detail-back{width:100%!important}.wfx-product-visual{min-height:190px!important}.wfx-product-detail-media{min-height:220px!important}}


/* =========================================================
   WOLFOX GPS UI V3 — center products, fix track buttons, remove language switch
   ========================================================= */
.wfx-lang-toggle{display:none!important;visibility:hidden!important;width:0!important;min-width:0!important;padding:0!important;margin:0!important;border:0!important;overflow:hidden!important}
.wfx-header-actions{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:0!important;flex-shrink:0!important}
.wfx-menu-toggle{writing-mode:horizontal-tb!important;text-orientation:mixed!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex-direction:row!important;gap:10px!important;white-space:nowrap!important;min-width:132px!important;height:54px!important;border-radius:22px!important}
.wfx-menu-toggle span,.wfx-menu-toggle i{writing-mode:horizontal-tb!important;text-orientation:mixed!important;white-space:nowrap!important;line-height:1!important;display:inline-flex!important;align-items:center!important}
.wfx-header-main{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex-wrap:nowrap!important}
.wfx-brand{min-width:0!important;flex:1 1 auto!important;max-width:none!important;overflow:hidden!important}
.wfx-brand-text{min-width:0!important;overflow:hidden!important}.wfx-brand-name,.wfx-brand-sub{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important}

/* Center product listing cards */
.wfx-products{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(270px,360px))!important;justify-content:center!important;align-items:stretch!important;gap:18px!important;width:100%!important;margin-inline:auto!important}
.wfx-product{width:100%!important;max-width:360px!important;margin-inline:auto!important;text-align:center!important;padding:18px!important;border-radius:30px!important;overflow:hidden!important}
.wfx-product-visual{width:100%!important;max-width:300px!important;margin:0 auto 16px!important;min-height:205px!important;border-radius:24px!important;display:flex!important;align-items:center!important;justify-content:center!important}
.wfx-product-img{width:100%!important;height:100%!important;min-height:205px!important;object-fit:cover!important;object-position:center!important;border-radius:22px!important}
.wfx-product-icon{margin:0 auto!important}
.wfx-product-body,.wfx-product-head{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:10px!important;width:100%!important}
.wfx-product-title{font-size:22px!important;line-height:1.45!important;text-align:center!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:100%!important}
.wfx-desc-btn{width:100%!important;max-width:260px!important;margin:8px auto 0!important;min-height:54px!important;border-radius:20px!important;justify-content:center!important;display:flex!important;align-items:center!important;gap:8px!important}
.wfx-product-bottom{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:12px!important;width:100%!important;margin-top:12px!important;text-align:center!important}
.wfx-product-price{width:100%!important;text-align:center!important;font-size:32px!important;line-height:1.1!important;white-space:nowrap!important;color:var(--wfx-p3)!important;font-weight:900!important}
.wfx-product-buy{width:100%!important;max-width:280px!important;min-height:58px!important;border-radius:22px!important;margin-inline:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;text-align:center!important;white-space:nowrap!important}

/* Center product.php detail view */
.wfx-product-detail-page{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;padding:10px 0 28px!important}
.wfx-product-detail-card{width:min(760px,100%)!important;margin-inline:auto!important;text-align:center!important;padding:20px!important;border-radius:34px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important}
.wfx-product-detail-media{width:100%!important;max-width:560px!important;margin:0 auto 18px!important;min-height:240px!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:28px!important}
.wfx-product-detail-body{width:100%!important;max-width:620px!important;margin-inline:auto!important;text-align:center!important;display:flex!important;flex-direction:column!important;align-items:center!important}
.wfx-product-detail-body h1{width:100%!important;text-align:center!important;line-height:1.45!important;overflow-wrap:anywhere!important}.wfx-product-detail-price{text-align:center!important;width:100%!important}.wfx-product-detail-actions{width:100%!important;max-width:620px!important;margin:22px auto 0!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important}.wfx-product-detail-buy,.wfx-product-detail-back{width:100%!important;min-height:62px!important;border-radius:24px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;white-space:normal!important}

/* Track page buttons and search card */
.wfx-page-track .wfx-card{overflow:visible!important}.wfx-page-track .wfx-tabs,.wfx-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin:0 auto 18px!important;width:100%!important;max-width:640px!important}.wfx-page-track .wfx-tab,.wfx-tab{width:100%!important;min-width:0!important;min-height:56px!important;border-radius:20px!important;padding:10px 8px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;line-height:1.25!important;text-align:center!important;white-space:normal!important;background:rgba(255,255,255,.08)!important;color:#dbeafe!important;border:1px solid rgba(255,255,255,.14)!important;font-weight:900!important}.wfx-page-track .wfx-tab.active,.wfx-tab.active{background:linear-gradient(135deg,rgba(124,58,237,.88),rgba(217,70,239,.78))!important;color:#fff!important;border-color:rgba(216,180,254,.65)!important;box-shadow:0 14px 34px rgba(124,58,237,.26)!important}.wfx-page-track #track-form{max-width:640px!important;margin:0 auto!important;text-align:center!important}.wfx-page-track .wfx-field{text-align:right!important;margin-top:8px!important}.wfx-page-track .wfx-label{display:block!important;margin-bottom:8px!important;font-weight:900!important;color:#cbd5e1!important}.wfx-page-track .wfx-input.wfx{width:100%!important;min-height:60px!important;border-radius:24px!important;text-align:center!important;font-size:17px!important;background:rgba(15,23,42,.62)!important}.wfx-page-track .wfx-card form .wfx-btn.primary{width:100%!important;max-width:360px!important;margin:16px auto 0!important;min-height:60px!important;border-radius:24px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important}.wfx-page-track .wfx-card [style*="display:flex"][style*="flex-wrap:wrap"]{justify-content:center!important}.wfx-page-track a.wfx-btn{min-height:54px!important;border-radius:20px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important}

@media(max-width:768px){
  .wfx-header{padding:14px!important;border-radius:26px!important}.wfx-header-main{gap:10px!important}.wfx-menu-toggle{min-width:126px!important;height:50px!important;padding:0 14px!important}.wfx-brand{max-width:calc(100% - 136px)!important}.wfx-brand-icon,.wfx-brand-logo-img{width:58px!important;height:58px!important;min-width:58px!important}.wfx-brand-name{font-size:20px!important}.wfx-brand-sub{font-size:12px!important}
  .wfx-products{grid-template-columns:minmax(0,1fr)!important;gap:18px!important}.wfx-product{max-width:100%!important;padding:18px!important}.wfx-product-visual{max-width:100%!important;min-height:220px!important}.wfx-product-img{min-height:220px!important}.wfx-product-title{font-size:23px!important}.wfx-product-buy,.wfx-desc-btn{max-width:100%!important}
  .wfx-product-detail-card{padding:16px!important;border-radius:30px!important}.wfx-product-detail-media{min-height:220px!important}.wfx-product-detail-actions{grid-template-columns:1fr!important}.wfx-product-detail-buy,.wfx-product-detail-back{min-height:60px!important}
  .wfx-page-track .wfx-tabs,.wfx-tabs{grid-template-columns:1fr!important;gap:10px!important}.wfx-page-track .wfx-tab,.wfx-tab{min-height:58px!important;border-radius:22px!important;font-size:16px!important}.wfx-page-track .wfx-card form .wfx-btn.primary{max-width:100%!important}
}

@media(max-width:420px){
  .wfx-wrap{padding-left:12px!important;padding-right:12px!important}.wfx-menu-toggle{min-width:116px!important;height:48px!important;font-size:14px!important}.wfx-brand{max-width:calc(100% - 126px)!important}.wfx-brand-icon,.wfx-brand-logo-img{width:54px!important;height:54px!important;min-width:54px!important}.wfx-brand-name{font-size:18px!important}.wfx-brand-sub{font-size:11px!important}.wfx-product-visual,.wfx-product-img{min-height:205px!important}.wfx-product-price{font-size:30px!important}
}


/* ===== WOLFOX GPS UI V4 — product-page buttons + cleaner bottom nav ===== */
.wfx-product-link-grid{
  width:100%!important;
  max-width:620px!important;
  margin:18px auto!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
}
.wfx-product-link-btn{
  width:100%!important;
  min-height:58px!important;
  border-radius:22px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  text-align:center!important;
  font-weight:900!important;
  line-height:1.35!important;
  white-space:normal!important;
}
.wfx-product-link-btn.success{
  background:rgba(34,197,94,.16)!important;
  border:1px solid rgba(34,197,94,.35)!important;
  color:#86efac!important;
}
.wfx-product-detail-card .wfx-product-detail-body > div[style*="background:rgba(255,255,255,.03)"],
.wfx-product-detail-card .wfx-product-detail-body > div[style*="background:rgba(245,158,11,.12)"],
.wfx-product-detail-card .wfx-product-detail-body > div[style*="background:rgba(59,130,246,.12)"]{
  width:100%!important;
  max-width:620px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.wfx-bottom-nav{
  width:min(96vw,600px)!important;
  left:50%!important;
  right:auto!important;
  transform:translateX(-50%)!important;
  bottom:calc(12px + env(safe-area-inset-bottom))!important;
  border-radius:24px!important;
  padding:8px!important;
  justify-content:space-around!important;
  gap:6px!important;
  background:rgba(13,17,23,.85)!important;
  backdrop-filter:blur(24px) saturate(180%)!important;
  -webkit-backdrop-filter:blur(24px) saturate(180%)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:0 15px 35px rgba(0,0,0,.5)!important;
}
.wfx-bottom-nav .wfx-bottom-nav-item{
  flex:1!important;
  min-height:52px!important;
  border-radius:18px!important;
  font-size:11px!important;
  font-weight:800!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  background:transparent!important;
  color:#94a3b8!important;
}
.wfx-bottom-nav .wfx-bottom-nav-item.active{
  background:rgba(124,58,237,.15)!important;
  color:#c084fc!important;
  box-shadow:none!important;
}
.wfx-bottom-nav .wfx-bottom-nav-item .icon{
  font-size:20px!important;
  height:24px!important;
  width:24px!important;
  display: flex!important;
  align-items: center!important;
  justify-content: center!important;
  margin-bottom: 2px!important;
}
.wfx-nav.wfx-pages-menu{
  justify-content:center!important;
  gap:10px!important;
}
.wfx-nav.wfx-pages-menu .wfx-nav-btn{
  min-width:132px!important;
  justify-content:center!important;
  min-height:50px!important;
  border-radius:18px!important;
}
@media(max-width:640px){
  .wfx-product-link-grid{grid-template-columns:1fr!important;gap:10px!important}
  .wfx-product-link-btn{min-height:56px!important}
  .wfx-bottom-nav{width:calc(100vw - 28px)!important;bottom:calc(8px + env(safe-area-inset-bottom))!important}
  .wfx-bottom-nav .wfx-bottom-nav-item{min-height:54px!important;font-size:15px!important}
  .wfx-nav.wfx-pages-menu{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .wfx-nav.wfx-pages-menu .wfx-nav-btn{min-width:0!important;width:100%!important}
  .wfx-product-admin-buttons > div[style*="grid-template-columns"]{grid-template-columns:1fr!important}
}


/* ===== WOLFOX DESCRIPTION DISPLAY FIX V5 ===== */
#wfx-product-desc-modal{
  position:fixed!important;
  inset:0!important;
  z-index:99999!important;
  display:none!important;
  align-items:center!important;
  justify-content:center!important;
  padding:18px!important;
  background:rgba(3,7,18,.72)!important;
  backdrop-filter:blur(16px)!important;
  -webkit-backdrop-filter:blur(16px)!important;
  direction:rtl!important;
}
#wfx-product-desc-modal.show{display:flex!important;}
.wfx-desc-modal-card{
  position:relative!important;
  width:min(94vw,620px)!important;
  max-height:72vh!important;
  overflow:auto!important;
  border-radius:30px!important;
  padding:56px 22px 24px!important;
  background:linear-gradient(145deg,rgba(15,23,42,.98),rgba(30,20,54,.98))!important;
  border:1px solid rgba(168,85,247,.32)!important;
  box-shadow:0 30px 100px rgba(0,0,0,.65),0 0 45px rgba(168,85,247,.18)!important;
  color:#f8fafc!important;
  text-align:right!important;
}
.wfx-desc-modal-card h3{
  margin:0 0 14px!important;
  color:#fff!important;
  font-size:clamp(22px,5vw,32px)!important;
  font-weight:900!important;
  line-height:1.45!important;
  text-align:center!important;
}
.wfx-desc-modal-text{
  width:100%!important;
  color:#dbeafe!important;
  font-size:17px!important;
  line-height:2!important;
  white-space:pre-wrap!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
  text-align:right!important;
}
.wfx-desc-close{
  position:absolute!important;
  top:14px!important;
  left:14px!important;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  padding:0!important;
  border-radius:14px!important;
  border:1px solid rgba(255,255,255,.14)!important;
  background:rgba(255,255,255,.08)!important;
  color:#fff!important;
  font-size:24px!important;
  font-weight:900!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1!important;
  box-shadow:none!important;
}
.wfx-desc-close:hover{background:rgba(239,68,68,.2)!important;border-color:rgba(248,113,113,.4)!important;}
.wfx-product-info-block{
  width:100%!important;
  max-width:620px!important;
  margin:14px auto!important;
  padding:18px!important;
  border-radius:22px!important;
  line-height:2!important;
  font-size:16px!important;
  text-align:right!important;
  white-space:pre-wrap!important;
  overflow-wrap:anywhere!important;
}
.wfx-product-info-block.desc{
  background:rgba(255,255,255,.055)!important;
  color:#e5e7eb!important;
  border:1px solid rgba(255,255,255,.12)!important;
}
.wfx-product-info-block.warning{
  background:rgba(245,158,11,.13)!important;
  color:#fed7aa!important;
  border:1px solid rgba(245,158,11,.36)!important;
}
.wfx-product-info-block.tutorial{
  background:rgba(59,130,246,.13)!important;
  color:#bfdbfe!important;
  border:1px solid rgba(59,130,246,.36)!important;
}
@media(max-width:640px){
  #wfx-product-desc-modal{
    align-items:flex-end!important;
    padding:12px 12px calc(92px + env(safe-area-inset-bottom))!important;
  }
  .wfx-desc-modal-card{
    width:100%!important;
    max-height:62vh!important;
    border-radius:28px 28px 22px 22px!important;
    padding:54px 18px 20px!important;
  }
  .wfx-desc-modal-text{font-size:16px!important;line-height:1.95!important;}
  .wfx-product-info-block{font-size:15px!important;padding:16px!important;border-radius:20px!important;}
}

/* =========================================================
   WOLFOX v10 - Product Icons + Admin Cleanup + WebApp
========================================================= */
.wfx-product.premium{max-width:680px!important;margin-inline:auto!important;overflow:hidden!important;}
.wfx-products.premium{display:grid!important;grid-template-columns:1fr!important;justify-items:center!important;gap:22px!important;}
.wfx-product-visual{width:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:18px 18px 0!important;}
.wfx-product-img{width:min(100%,520px)!important;aspect-ratio:1/1!important;height:auto!important;object-fit:cover!important;border-radius:32px!important;display:block!important;margin:0 auto!important;background:#10182b!important;box-shadow:0 18px 55px rgba(124,58,237,.28)!important;}
.wfx-product-icon,.wfx-product-detail-icon{box-shadow:0 18px 55px rgba(124,58,237,.25)!important;}
.wfx-product-detail-card{max-width:760px!important;margin:0 auto!important;text-align:center!important;}
.wfx-product-detail-media{display:flex!important;justify-content:center!important;align-items:center!important;}
.wfx-product-detail-img{width:min(100%,540px)!important;aspect-ratio:1/1!important;height:auto!important;object-fit:cover!important;border-radius:34px!important;margin:0 auto!important;box-shadow:0 18px 55px rgba(124,58,237,.28)!important;}
.wfx-product-detail-actions{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;max-width:560px!important;margin:18px auto 0!important;}
.wfx-admin-menu{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))!important;gap:10px!important;}
.wfx-admin-menu a{border-radius:16px!important;min-height:50px!important;text-align:center!important;justify-content:center!important;}
.wfx-product-row{display:grid!important;grid-template-columns:auto 1fr!important;gap:12px!important;align-items:center!important;border:1px solid var(--wfx-border)!important;border-radius:20px!important;padding:12px!important;background:rgba(255,255,255,.035)!important;}
.wfx-product-row-actions{grid-column:1/-1!important;display:flex!important;flex-wrap:wrap!important;gap:8px!important;justify-content:flex-start!important;}
.wfx-admin-product-row-icon{width:58px!important;height:58px!important;border-radius:16px!important;display:grid!important;place-items:center!important;background:linear-gradient(135deg,rgba(124,58,237,.35),rgba(14,165,233,.22))!important;overflow:hidden!important;}
.wfx-admin-product-row-icon .wfx-mask-icon{width:36px!important;height:36px!important;display:block!important;background:var(--custom-icon-color,#fff)!important;-webkit-mask:var(--icon-url) center/contain no-repeat!important;mask:var(--icon-url) center/contain no-repeat!important;}
.wfx-card form .wfx-card{border-radius:20px!important;}
@media(max-width:768px){
  .wfx-products.premium{gap:18px!important;}
  .wfx-product.premium{width:100%!important;max-width:100%!important;border-radius:28px!important;}
  .wfx-product-img{border-radius:26px!important;max-width:92%!important;}
  .wfx-product-detail-img{border-radius:28px!important;max-width:92%!important;}
  .wfx-admin-menu{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-height:360px!important;overflow:auto!important;}
  .wfx-admin-menu a{font-size:12px!important;padding:10px 6px!important;}
  .wfx-product-row{grid-template-columns:66px 1fr!important;}
  .wfx-product-row-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .wfx-product-row-actions .wfx-btn,.wfx-product-row-actions .wfx-badge{width:100%!important;justify-content:center!important;text-align:center!important;}
}

/* WOLFOX V11 */
.wfx-product-visual,.wfx-product-detail-media{aspect-ratio:4/3!important;min-height:0!important;height:auto!important;border-radius:28px!important;overflow:hidden!important}.wfx-product-img,.wfx-product-detail-img{aspect-ratio:4/3!important;min-height:0!important;height:100%!important;object-fit:cover!important;border-radius:26px!important}.tw-product-image{aspect-ratio:4/3!important;border-radius:24px!important;object-fit:cover!important}.tw-btn,.tw-pay,.tw-invoice a{background:linear-gradient(135deg,#7c3aed,#a855f7 48%,#d946ef)!important;border:1px solid rgba(216,180,254,.45)!important;color:#fff!important;box-shadow:0 16px 40px rgba(124,58,237,.30)!important}.tw-pay::before{content:"🔗 "}.wfx-checkout-product-icon img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:22px!important}


/* v14: Product icons separation
   - Website product cards keep the original FontAwesome icons.
   - Telegram Web App uses the new rectangular product images only. */
.wfx-product-icon i,
.wfx-product-detail-icon i{
  font-size:58px!important;
  line-height:1!important;
}
.tw-product-image{
  aspect-ratio:4/3!important;
  border-radius:24px!important;
  object-fit:cover!important;
  width:100%!important;
  display:block!important;
}


/* ─── Navigation Bar Styling ─── */
.wfx-nav-bar {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.wfx-nav-btn {
  transition: all var(--dur) var(--ease) !important;
  font-family: var(--font) !important;
}

.wfx-nav-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.25) !important;
}

@media (max-width: 768px) {
  .wfx-nav-bar {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .wfx-nav-btn {
    font-size: 13px !important;
    padding: 10px 12px !important;
  }
}
