/* ============================================================
   الكاشف — alkashif.app
   Palette: deep Saudi green + warm gold + sand
   Type: Lalezar (display) + IBM Plex Sans Arabic (body)
   ============================================================ */

:root {
  --ink:        #071f19;
  --deep:       #0c2e25;
  --deep-2:     #123a30;
  --green:      #1a5c4c;
  --green-soft: #2a7a66;
  --gold:       #e2b04a;
  --gold-hi:    #f2c766;
  --gold-dim:   rgba(226, 176, 74, .14);
  --sand:       #f6f1e6;
  --sand-2:     #ece3d0;
  --paper:      #fbf8f1;
  --text:       #24332d;
  --muted:      #5f6f68;
  --danger:     #d95f43;
  --ok:         #2e8b6e;

  --font-display: 'Lalezar', 'IBM Plex Sans Arabic', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;

  --radius: 14px;
  --shadow-lg: 0 24px 60px -18px rgba(7, 31, 25, .45);
  --shadow-sm: 0 6px 18px -8px rgba(7, 31, 25, .28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* خلفية زخرفية هندسية خفيفة */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%231a5c4c' stroke-opacity='0.05' stroke-width='1'%3E%3Cpath d='M36 8l7 14 15 2-11 11 3 15-14-8-14 8 3-15-11-11 15-2z'/%3E%3C/g%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- أزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-align: center;
}
.btn-gold {
  background: linear-gradient(160deg, var(--gold-hi), var(--gold));
  color: var(--ink);
  box-shadow: 0 8px 22px -8px rgba(226, 176, 74, .65);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(226, 176, 74, .75); }
.btn-gold:active { transform: translateY(0); }
.btn-sm { padding: .55rem 1.2rem; font-size: .9rem; }

/* ---------- شريط علوي ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(7, 31, 25, .92);
  backdrop-filter: blur(10px);
  color: var(--sand);
}
.brand { display: flex; align-items: center; gap: .55rem; }
.brand-mark {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid rgba(226, 176, 74, .35);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
  color: var(--gold);
}
.topnav { display: flex; gap: 1.4rem; font-size: .92rem; }
.topnav a { color: rgba(246, 241, 230, .8); transition: color .18s; }
.topnav a:hover { color: var(--gold); }
@media (max-width: 760px) { .topnav { display: none; } }

/* ---------- قسم الكاشف ---------- */
.dialer-wrap {
  position: relative;
  background: radial-gradient(1200px 600px at 70% -10%, var(--deep-2), var(--ink) 60%);
  color: var(--sand);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.dialer-glow {
  position: absolute;
  width: 520px; height: 520px;
  top: -180px; left: -140px;
  background: radial-gradient(circle, rgba(226, 176, 74, .16), transparent 65%);
  animation: drift 9s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.12); }
}

.dialer {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.dialer-head {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  padding: .35rem 1rem;
  font-size: .85rem;
  color: rgba(246, 241, 230, .85);
}
.dialer-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(46, 139, 110, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46, 139, 110, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(46, 139, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 139, 110, 0); }
}

.dialer-h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.25;
  margin: 1.1rem 0 .5rem;
}
.dialer-h1 em {
  font-style: normal;
  color: var(--gold);
  position: relative;
  white-space: nowrap;
}
.dialer-h1 em::after {
  content: "";
  position: absolute;
  right: 0; left: 0; bottom: 4px;
  height: 8px;
  background: var(--gold-dim);
  border-radius: 4px;
  z-index: -1;
}
.dialer-sub {
  color: rgba(246, 241, 230, .75);
  font-size: 1.02rem;
  max-width: 46ch;
  margin-bottom: 1.8rem;
}

.dialer-form {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  padding: 1.3rem;
  box-shadow: var(--shadow-lg);
}
.dialer-input-row {
  display: flex;
  align-items: stretch;
  gap: .7rem;
  background: var(--paper);
  border-radius: 14px;
  padding: .4rem;
  margin-bottom: .9rem;
}
.country-chip {
  display: grid; place-items: center;
  padding: 0 .9rem;
  font-weight: 700;
  color: var(--green);
  background: var(--sand-2);
  border-radius: 10px;
  font-size: .95rem;
  letter-spacing: .5px;
}
#phoneInput {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 1.5px;
  padding: .5rem .4rem;
  text-align: left;
}
#phoneInput::placeholder { color: #b9c4bd; font-weight: 400; letter-spacing: 1px; }

.btn-reveal {
  width: 100%;
  padding: .95rem;
  font-size: 1.1rem;
  font-weight: 700;
}
.btn-reveal.loading { pointer-events: none; opacity: .8; }

.dialer-hint {
  margin-top: .7rem;
  font-size: .82rem;
  color: rgba(246, 241, 230, .55);
  text-align: center;
  transition: color .2s;
}
.dialer-hint.error { color: var(--danger); font-weight: 600; }

/* ---------- بطاقة النتيجة ---------- */
.result-card {
  margin-top: 1.4rem;
  background: var(--paper);
  color: var(--text);
  border-radius: 18px;
  padding: 1.3rem;
  box-shadow: var(--shadow-lg);
  animation: cardIn .45s cubic-bezier(.22, 1, .36, 1);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* حالة الهيكل العظمي (شيمر) أثناء الكشف */
.result-card.skeleton .result-avatar,
.result-card.skeleton .result-name,
.result-card.skeleton .result-number,
.result-card.skeleton .result-badge,
.result-card.skeleton .result-fact strong {
  color: transparent;
  background: linear-gradient(90deg, var(--sand) 25%, var(--sand-2) 45%, var(--sand) 65%);
  background-size: 220% 100%;
  animation: shimmer 1.1s ease-in-out infinite;
  border-radius: 8px;
}
.result-card.skeleton .result-avatar { border-radius: 50%; }
.result-card.skeleton .result-name { width: 60%; height: 1.15rem; }
.result-card.skeleton .result-number { width: 45%; height: .9rem; }
.result-card.skeleton .result-badge {
  display: inline-block;
  width: 72px;
  height: 1.4rem;
  padding: 0;
  background-color: transparent;
}
.result-card.skeleton .result-fact strong {
  display: block;
  width: 70%;
  height: 1rem;
}
.result-card.skeleton .result-blur-note,
.result-card.skeleton .result-port-note { display: none; }
@keyframes shimmer {
  from { background-position: 130% 0; }
  to   { background-position: -90% 0; }
}
/* RTL: امسح من اليمين لليسار */
[dir="rtl"] .result-card.skeleton .result-avatar,
[dir="rtl"] .result-card.skeleton .result-name,
[dir="rtl"] .result-card.skeleton .result-number,
[dir="rtl"] .result-card.skeleton .result-badge,
[dir="rtl"] .result-card.skeleton .result-cell strong {
  animation-name: shimmer-rtl;
}
@keyframes shimmer-rtl {
  from { background-position: -90% 0; }
  to   { background-position: 130% 0; }
}
.result-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.result-avatar {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--green-soft), var(--green));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  flex-shrink: 0;
}
.result-id { flex: 1; min-width: 0; }
.result-name {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: .5px;
}
.result-number { font-size: .9rem; color: var(--muted); letter-spacing: 1px; }
.result-badge {
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-ok   { background: rgba(46, 139, 110, .14); color: var(--ok); }
.badge-warn { background: rgba(217, 95, 67, .14); color: var(--danger); }

.result-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .85rem;
  margin: 0 0 .75rem;
  padding: .7rem .85rem;
  border-top: 1px solid var(--sand-2);
  border-bottom: 1px solid var(--sand-2);
  color: var(--muted);
}
.result-fact {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  min-width: 0;
  min-height: 1.35rem;
}
.result-fact + .result-fact::before {
  content: "•";
  color: rgba(95, 111, 104, .55);
  margin-inline-end: .6rem;
}
.result-fact small {
  font-size: .7rem;
  line-height: 1.35;
  white-space: nowrap;
}
.result-fact strong {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-cell {
  background: var(--sand);
  border: 1px solid var(--sand-2);
  border-radius: 12px;
  padding: .7rem .9rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.rc-label { font-size: .75rem; color: var(--muted); }
.result-cell strong { font-size: .95rem; color: var(--ink); }

.result-port-note {
  font-size: .76rem;
  color: var(--muted);
  margin: 0;
  padding: 0 .1rem;
  line-height: 1.6;
}

.result-blur-note {
  font-size: .78rem;
  color: var(--green);
  background: rgba(26, 92, 76, .08);
  border-radius: 8px;
  padding: .4rem .7rem;
  margin-bottom: .9rem;
  text-align: center;
  font-weight: 500;
}

/* ---------- تنزيل التطبيق داخل بطاقة النتيجة ---------- */
.result-download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1.35rem;
  align-items: stretch;
  margin: 0 0 1.1rem;
  padding: 1.25rem;
  border: 1px solid rgba(26, 92, 76, .16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(26, 92, 76, .06), rgba(226, 176, 74, .13));
}
.result-download-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .35rem;
  padding: .4rem .55rem;
}
.result-download-kicker {
  color: var(--green);
  font-size: .78rem;
  font-weight: 700;
}
.result-download-copy strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.35;
}
.result-download-copy p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}
.result-download-features {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-top: .45rem;
  list-style: none;
}
.result-download-features li {
  color: var(--text);
  font-size: .82rem;
}
.result-download-features li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-inline-end: .45rem;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: .68rem;
}
.result-download-panel {
  min-width: 0;
  padding: 1rem;
  border-radius: 15px;
  color: var(--sand);
  background: radial-gradient(350px 180px at 10% 0, var(--deep-2), var(--ink) 72%);
  box-shadow: 0 16px 34px -22px rgba(7, 31, 25, .95);
}
.result-download-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-bottom: .85rem;
}
.result-download-panel-head strong {
  color: var(--gold-hi);
  font-size: .95rem;
}
.download-badge {
  padding: .23rem .6rem;
  border: 1px solid rgba(226, 176, 74, .42);
  border-radius: 999px;
  color: var(--gold);
  font-size: .7rem;
  white-space: nowrap;
}
.result-download-panel-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .7rem;
}
.result-download-panel .store-qr {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  justify-content: center;
  flex-wrap: nowrap;
}
.result-download-panel .store-qr-copy {
  min-width: 0;
}
.result-download-panel .store-qr-copy strong {
  color: var(--gold-hi);
  font-size: .9rem;
}
.result-download-panel .store-qr-copy span {
  color: rgba(246, 241, 230, .75);
  font-size: .75rem;
}
.qr-frame {
  display: grid;
  place-items: center;
  width: 184px;
  height: 184px;
  padding: 8px;
  flex-shrink: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .8);
}
.qr-frame .store-qr-canvas {
  width: 168px;
  height: 168px;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}
.store-link-desktop {
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.store-badge-image {
  display: block;
  width: 150px;
  height: auto;
}
.app-cta-store-badge { display: inline-block; }
body.is-mobile .store-link-desktop { display: none !important; }
body.is-desktop .app-cta .store-link-mobile { display: none !important; }
body.is-mobile .result-download {
  grid-template-columns: 1fr;
  gap: .65rem;
  padding: 1rem;
}
body.is-mobile .result-download-copy {
  padding: 0;
}
body.is-mobile .result-download-copy strong {
  font-size: 1.22rem;
}
body.is-mobile .result-download-features {
  display: none;
}
body.is-mobile .result-download-panel {
  padding: 0;
  background: transparent;
  box-shadow: none;
}
body.is-mobile .result-download-panel-head {
  display: none;
}
body.is-mobile .result-download-panel-body {
  align-items: flex-start;
}
body.is-mobile #lockCta {
  display: inline-block;
}

@media (max-width: 760px) {
  .result-download { grid-template-columns: 1fr; }
  .result-download-panel { max-width: 440px; }
  .result-download-panel-body { align-items: center; }
  .result-facts { gap: .25rem .55rem; }
  .result-fact + .result-fact::before { margin-inline-end: .35rem; }
}
@media (max-width: 420px) {
  .result-download { padding: 1rem; }
  .qr-frame { width: 160px; height: 160px; }
  .qr-frame .store-qr-canvas { width: 144px; height: 144px; }
}

.enhance-indicator {
  font-size: .78rem;
  color: var(--gold);
  text-align: center;
  margin: .4rem 0;
  animation: pulse-text 1.5s ease-in-out infinite;
}
@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* ---------- شريط الثقة ---------- */
.trust-strip {
  max-width: 1080px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  overflow: hidden;
}
@media (min-width: 640px) { .trust-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust-item {
  background: rgba(255, 255, 255, .04);
  padding: 1.1rem .5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  transition: background .2s;
}
.trust-item:hover { background: rgba(255, 255, 255, .08); }
.trust-item strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold); line-height: 1.1; }
.trust-item span { font-size: .82rem; color: rgba(246, 241, 230, .7); white-space: nowrap; }

/* ---------- أقسام عامة ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 2.5rem); }
.section-head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section-kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--green);
  background: rgba(26, 92, 76, .1);
  border: 1px solid rgba(26, 92, 76, .2);
  border-radius: 999px;
  padding: .3rem 1rem;
  margin-bottom: .9rem;
}
.section-kicker.light { color: var(--gold); background: var(--gold-dim); border-color: rgba(226, 176, 74, .35); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  color: var(--ink);
  line-height: 1.35;
}
.section-head h2 em { font-style: normal; color: var(--green); }
.section-lead { color: var(--muted); margin-top: .6rem; }

/* ---------- كيف يعمل ---------- */
.how { background: var(--sand); }
.how-steps {
  max-width: 680px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.how-step {
  display: flex;
  gap: 1.3rem;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--sand-2);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.how-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--gold);
  background: var(--ink);
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  flex-shrink: 0;
  line-height: 1;
}
.how-step h3 { font-size: 1.1rem; color: var(--ink); margin-bottom: .2rem; }
.how-step p { color: var(--muted); font-size: .95rem; }

/* ---------- مفاتيح الشبكات ---------- */
.prefix-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .9rem;
}
@media (min-width: 640px) { .prefix-grid { grid-template-columns: repeat(4, 1fr); } }
.prefix-card {
  background: var(--paper);
  border: 1px solid var(--sand-2);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative;
  overflow: hidden;
}
.prefix-card::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0; bottom: 0;
  width: 4px;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform .25s ease;
}
.prefix-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(226, 176, 74, .5); }
.prefix-card:hover::after { transform: scaleY(1); }
.pfx { font-family: var(--font-display); font-size: 1.9rem; color: var(--green); line-height: 1.1; }
.pfx-carrier { font-weight: 700; color: var(--ink); font-size: .95rem; }
.pfx-type { font-size: .78rem; color: var(--muted); }
.prefix-note {
  max-width: 720px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  background: var(--sand);
  border: 1px dashed var(--sand-2);
  border-radius: 12px;
  padding: .8rem 1.2rem;
}

/* ---------- دعوة التطبيق ---------- */
.app-cta { background: var(--sand); }
.app-cta-inner {
  max-width: 980px;
  margin: 0 auto;
  background: radial-gradient(900px 500px at 85% 20%, var(--deep-2), var(--ink) 65%);
  color: var(--sand);
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
@media (max-width: 820px) {
  .app-cta-inner { grid-template-columns: 1fr; }
  .app-cta-visual { display: none; }
}
.app-cta-text h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  margin: .8rem 0 1.2rem;
}
.app-cta-text h2 em { font-style: normal; color: var(--gold); }
.app-features { list-style: none; display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.8rem; }
.app-features li {
  display: flex; align-items: center; gap: .6rem;
  color: rgba(246, 241, 230, .85);
  font-size: .98rem;
}
.app-features li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
  background: var(--gold-dim);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .8rem;
  flex-shrink: 0;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: .7rem 1.4rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.store-badge:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -10px rgba(0,0,0,.5); }
.store-badge small { display: block; font-size: .7rem; color: var(--muted); line-height: 1.2; }
.store-badge strong { font-size: 1.15rem; line-height: 1.2; }

/* ---------- رمز QR في بطاقة النتيجة ---------- */
.store-qr[hidden] { display: none !important; }
.store-qr {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.store-qr-canvas {
  display: grid;
  place-items: center;
  width: 168px;
  height: 168px;
  border-radius: 12px;
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 24px -12px rgba(0,0,0,.45);
  overflow: hidden;
  padding: 8px;
  box-sizing: border-box;
}
.store-qr-canvas img { display: block; width: 100% !important; height: auto !important; }
.store-qr-copy {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 140px;
}
.store-qr-copy strong {
  font-size: 1.05rem;
  color: var(--gold);
}
.store-qr-copy span {
  font-size: .85rem;
  color: rgba(246, 241, 230, .78);
  line-height: 1.45;
}

/* الهاتف: أخفِ رمز QR وشارة المتجر المكتبية */
body.is-mobile .store-qr-desktop { display: none !important; }
/* سطح المكتب: رمز QR هو نقطة التحويل الأساسية */
body.is-desktop #lockCta { display: none !important; }

/* محاكاة هاتف */
.phone-mock {
  width: 240px;
  margin: 0 auto;
  background: #0a1f1a;
  border: 6px solid #1c3a32;
  border-radius: 36px;
  padding: 2.2rem 1.2rem 1.6rem;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.pm-notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 18px;
  background: #1c3a32;
  border-radius: 10px;
}
.pm-call { text-align: center; }
.pm-avatar {
  width: 74px; height: 74px;
  margin: .5rem auto .8rem;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--gold-hi), var(--gold));
  color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 2rem;
  animation: ring 2.4s ease-in-out infinite;
}
@keyframes ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226, 176, 74, .35); }
  50%      { box-shadow: 0 0 0 14px rgba(226, 176, 74, 0); }
}
.pm-name { font-weight: 700; font-size: 1.05rem; }
.pm-num { font-size: .8rem; color: rgba(246, 241, 230, .6); letter-spacing: 1px; margin-top: .2rem; }
.pm-actions { display: flex; justify-content: center; gap: 2.2rem; margin: 1.4rem 0 .9rem; }
.pm-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.2rem;
}
.pm-decline { background: var(--danger); color: #fff; }
.pm-answer { background: var(--ok); color: #fff; }
.pm-tag { font-size: .72rem; color: var(--gold); background: var(--gold-dim); border-radius: 999px; padding: .25rem .8rem; display: inline-block; }

/* ---------- الأسئلة الشائعة ---------- */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--sand-2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: rgba(26, 92, 76, .3); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 400;
  transition: transform .25s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.4rem 1.2rem; color: var(--muted); font-size: .95rem; }

/* ---------- تذييل ---------- */
.footer { background: var(--ink); color: var(--sand); padding: 3rem clamp(1rem, 4vw, 2.5rem) 2rem; }
.footer-inner { max-width: 980px; margin: 0 auto; text-align: center; }
.footer-brand .brand-name { font-size: 1.8rem; }
.footer-brand p { color: rgba(246, 241, 230, .6); font-size: .9rem; margin-top: .3rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  margin: 1.6rem 0;
  font-size: .9rem;
}
.footer-links a { color: rgba(246, 241, 230, .75); transition: color .18s; }
.footer-links a:hover { color: var(--gold); }
.footer-legal { font-size: .78rem; color: rgba(246, 241, 230, .4); border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.4rem; }

/* ---------- صفحات المفاتيح (号段页) ---------- */
.prefix-hero {
  background: radial-gradient(1000px 500px at 70% -10%, var(--deep-2), var(--ink) 60%);
  color: var(--sand);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.prefix-hero::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  top: -160px; right: -120px;
  background: radial-gradient(circle, rgba(226, 176, 74, .14), transparent 65%);
  pointer-events: none;
}
.prefix-hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.prefix-big {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 7rem);
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 8px 40px rgba(226, 176, 74, .35);
  margin: .8rem 0 .4rem;
  letter-spacing: 4px;
}
.prefix-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  line-height: 1.4;
}
.prefix-hero h1 span { color: var(--gold); }
.prefix-answer {
  margin-top: .8rem;
  color: rgba(246, 241, 230, .8);
  font-size: 1.05rem;
}
.prefix-answer strong { color: var(--gold-hi); }

.prefix-content {
  max-width: 760px;
  margin: 0 auto;
}
.prefix-content h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 2.2rem 0 .6rem;
}
.prefix-content h2 span { color: var(--green); }
.prefix-content p { color: var(--muted); margin-bottom: .9rem; }
.prefix-content p a { color: var(--green); font-weight: 600; border-bottom: 2px solid var(--gold-dim); }
.prefix-content p a:hover { border-bottom-color: var(--gold); }

.prefix-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .prefix-facts { grid-template-columns: repeat(4, 1fr); } }
.prefix-facts .result-cell {
  background: var(--paper);
  border: 1px solid var(--sand-2);
  box-shadow: var(--shadow-sm);
}

.prefix-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  background: linear-gradient(160deg, var(--deep), var(--deep-2));
  color: var(--sand);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
}
.prefix-cta strong { font-size: 1.15rem; color: var(--gold); }

/* ---------- كشف عند التمرير ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
