/* Final public overrides loaded after the main theme layers. */
:root {
  --vala-public-shell: min(1180px, calc(100% - 42px));
}

body:not(.page-home):not(.dashboard) {
  background: #07070c !important;
}

body:not(.page-home):not(.dashboard)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 84% -2%, rgba(124,58,237,.24), transparent 60%),
    radial-gradient(46% 38% at 10% 16%, rgba(79,70,229,.12), transparent 62%),
    radial-gradient(55% 45% at 80% 56%, rgba(124,58,237,.10), transparent 62%),
    radial-gradient(52% 42% at 16% 92%, rgba(34,211,238,.07), transparent 60%),
    linear-gradient(180deg,#0a0a13 0%,#08080f 55%,#07070c 100%) !important;
}

body:not(.page-home):not(.dashboard)::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.032) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask: radial-gradient(140% 96% at 72% -6%, #000 0%, rgba(0,0,0,.42) 48%, transparent 82%);
          mask: radial-gradient(140% 96% at 72% -6%, #000 0%, rgba(0,0,0,.42) 48%, transparent 82%);
}

@media (min-width: 769px) {
  body:not(.dashboard) .header {
    background: linear-gradient(180deg,rgba(7,7,12,.86),rgba(7,7,12,.42)) !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
    box-shadow: 0 18px 46px -38px rgba(0,0,0,.9) !important;
  }

  body:not(.dashboard) .header-inner {
    width: var(--vala-public-shell) !important;
    max-width: none !important;
    height: 72px !important;
    padding-inline: 0 !important;
  }

  body:not(.dashboard) .nav {
    display: flex;
    align-items: center;
    gap: 6px !important;
    padding: 6px !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.035) !important;
    box-shadow: none !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  body:not(.dashboard) .nav a {
    min-height: 40px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px !important;
    border-radius: 999px !important;
    border-color: transparent !important;
    color: rgba(244,244,251,.70) !important;
    background: transparent !important;
    font-weight: 800 !important;
    line-height: 1.2;
  }

  body:not(.dashboard) .nav a:hover {
    color: #fff !important;
    background: rgba(255,255,255,.055) !important;
    border-color: rgba(255,255,255,.09) !important;
  }

  body:not(.dashboard) .nav a.active {
    color: #fff !important;
    background: linear-gradient(120deg,rgba(124,58,237,.34),rgba(34,211,238,.12)) !important;
    border-color: rgba(255,255,255,.07) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.07) !important;
  }
}

@media (max-width: 768px) {
  body:not(.dashboard) {
    --vala-public-shell: min(100% - 28px, 1180px);
  }

  body:not(.dashboard)::after {
    background-size: 34px 34px;
  }

  body:not(.dashboard) .header-inner {
    width: calc(100% - 28px) !important;
    padding-inline: 0 !important;
  }

  body:not(.dashboard) .nav {
    inset-inline: 14px !important;
    width: auto !important;
    border-radius: 20px !important;
    align-items: stretch !important;
    padding: 8px !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    background: rgba(10,10,18,.96) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  body:not(.dashboard) .nav a {
    min-height: 46px !important;
    border-radius: 14px !important;
    font-weight: 800 !important;
  }
}

.pp-card.popular {
  padding-top: 44px !important;
}

.pp-card .pp-badge,
html[dir="rtl"] .pp-card .pp-badge {
  top: -15px !important;
  left: 50% !important;
  right: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: auto !important;
  width: max-content;
  max-width: calc(100% - 36px);
  transform: translateX(-50%) !important;
  margin: 0 !important;
  z-index: 30 !important;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .pp-card .pp-badge {
    top: -14px !important;
    max-width: calc(100% - 28px);
  }
}

.about-store-panel {
  border-radius: 24px !important;
  background: linear-gradient(160deg,var(--px-panel-2),var(--px-panel)) !important;
  border-color: rgba(255,255,255,.09) !important;
  box-shadow: 0 20px 60px -34px rgba(0,0,0,.82) !important;
}

.about-store-top {
  border-bottom-color: rgba(255,255,255,.06) !important;
}

.about-store-row,
.about-store-body li,
.about-mini-metrics div,
.about-value-card,
.about-process-step {
  border-radius: 14px !important;
}

.about-store-row {
  background: rgba(255,255,255,.035) !important;
  border: 1px solid rgba(255,255,255,.07);
}

.about-store-preview span,
.about-store-preview span:first-child,
.about-store-preview span:nth-child(4) {
  background: linear-gradient(135deg,rgba(124,58,237,.34),rgba(167,139,250,.18)) !important;
}

/* ════════════════════════════════════════════════════════════════════════
   UX REFINEMENTS — contact WhatsApp field, footer, animations
   (calm/premium; new selectors only, no redesign)
   ════════════════════════════════════════════════════════════════════════ */

/* ── Contact form: phone field with GCC country-code selector + WhatsApp hint ── */
.phone-field { display:flex; gap:8px; align-items:stretch; direction:ltr; }
.phone-field .form-input { flex:1; min-width:0; text-align:left; }
.phone-field .phone-cc-select {
  flex:0 0 auto; width:auto; min-width:108px;
  padding:0 32px 0 12px;
  font-family:inherit; font-weight:800; font-size:.92rem; line-height:1.2;
  color:var(--text-primary,#f4f4fb);
  border:1px solid var(--border,rgba(255,255,255,.1)); border-radius:var(--radius,12px);
  background-color:rgba(255,255,255,.045);
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa0b4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat:no-repeat; background-position:right .7rem center; background-size:11px;
  -webkit-appearance:none; -moz-appearance:none; appearance:none; cursor:pointer;
  transition:border-color var(--ux-fast,.18s), background-color var(--ux-fast,.18s);
}
.phone-field .phone-cc-select:hover { border-color:rgba(167,139,250,.32); }
.phone-field .phone-cc-select:focus { outline:none; border-color:rgba(167,139,250,.62); box-shadow:var(--ux-ring,0 0 0 4px rgba(124,58,237,.18)); }
.phone-field .phone-cc-select option { color:#0b0b12; background:#fff; }
.phone-hint { display:flex; align-items:center; gap:7px; margin-top:8px; font-size:.82rem; color:var(--text-muted,#9090a8); }
.phone-hint i { color:#25d366; font-size:1rem; }

/* ── Contact info: clickable WhatsApp item ── */
.contact-page .info-item-wa { text-decoration:none; color:inherit; cursor:pointer; }
.contact-page .info-item-wa .info-icon {
  background:linear-gradient(135deg,#25d366,#128c7e) !important; color:#fff !important;
  transition:transform .2s var(--ux-ease,ease);
}
.contact-page .info-item-wa:hover { border-color:rgba(37,211,102,.35) !important; }
.contact-page .info-item-wa:hover .info-icon { transform:translateY(-2px); }

/* ── Footer: WhatsApp-only contact ── */
.footer-contact .footer-wa { display:inline-flex; align-items:center; gap:10px; text-decoration:none; }
.footer-contact .footer-wa i { font-size:1.5rem; color:#25d366; }
.footer-contact .footer-wa-text { display:flex; flex-direction:column; line-height:1.35; }
.footer-contact .footer-wa-text strong { color:var(--text-primary,#f4f4fb); font-size:.92rem; }
.footer-contact .footer-wa-text small { color:var(--text-secondary,#b8b8c8); font-size:.86rem; }
.footer-contact .footer-wa:hover .footer-wa-text small { color:#25d366; }

/* ── Animations: staggered reveals must hold their first keyframe during the
   delay so they never flash visible→hidden→in (premium, smooth). ── */
.animate.fadeInUp,
.animate.slideInLeft,
.animate.slideInRight { animation-fill-mode: both !important; }

/* ── About mockup: kept calm and static — it rides the section's single fade-in
   with NO independent per-tile movement (the earlier stagger felt fidgety). ── */

/* ── About: trust strip under the hero — calm reassurance chips. ── */
.about-trust-strip {
  display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:12px;
  margin:0 0 clamp(30px, 5vw, 52px);
}
.about-trust-item {
  display:flex; align-items:center; gap:10px; padding:14px 16px;
  border:1px solid rgba(255,255,255,.08); border-radius:14px;
  background:linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  color:var(--text-primary,#f4f4fb); font-weight:700; font-size:.9rem; line-height:1.45;
}
.about-trust-item i { color:#22d3ee; font-size:1.15rem; flex-shrink:0; }
@media (max-width: 920px) { .about-trust-strip { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .about-trust-strip { grid-template-columns:1fr; } }

/* ── Reduced motion: keep all reveal targets visible regardless of JS. ── */
@media (prefers-reduced-motion: reduce) {
  .animate { opacity:1 !important; transform:none !important; animation:none !important; }
}

/* ── Packages: three tiers (ستارتر / برو / إيليت) sit in one balanced row on
   desktop. An earlier 2-tier layout pinned .pp-cards.salla to 2 columns, which
   left Elite stranded on a second row. Restore 3-up; stays 1-up on mobile. ── */
@media (min-width: 921px) {
  .pp-cards.salla {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    max-width: 1180px !important;
    margin-inline: auto;
  }
  .pp-compare-summary { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
