/* ==========================================================================
   مونتاجك — طبقة الهوية فوق القالب: ليموني كهربائي على أسود كحلي
   ========================================================================== */
:root {
  --amber: #C8FF3D;
  --amber-2: #E4FF7A;
  --amber-glow: rgba(200, 255, 61, 0.42);
}

/* الشعار: إطار + مثلّث تشغيل */
.loader__mark rect, .nav__brand svg rect { fill: none; stroke: var(--smoke); stroke-width: 5; }
.loader__mark .play { fill: var(--amber); stroke: var(--amber); stroke-linejoin: round; }
.nav__brand svg rect { stroke-width: 9; }
.nav__brand svg path { fill: var(--amber); stroke: var(--amber); stroke-width: 4; stroke-linejoin: round; }
.nav__brand { font-family: var(--font-display); font-weight: 800; letter-spacing: 0; text-indent: 0; font-size: 1.25rem; }

/* الزر العائم: رفع بدل واتساب */
.wa { background: var(--amber); color: var(--ink); box-shadow: 0 10px 34px var(--amber-glow); }
.wa svg { fill: none; }

.hero__btn { margin-top: 1.6rem; font-size: 1.02rem; padding: 0.95rem 2rem; }
@media (max-width: 760px) { .hero__btn { width: 100%; max-width: 420px; } }

/* ---------- ٠٣ شغلنا: نص + هاتف ---------- */
.work { position: relative; overflow: hidden; padding: clamp(5rem, 12vw, 10rem) 0; background: var(--ink-2); }
.work__bg { position: absolute; inset: -20%; z-index: 0; }
.work__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.02); opacity: 0.55; }
.work__scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to left, rgba(6,8,11,.92) 0%, rgba(6,8,11,.66) 55%, rgba(6,8,11,.25) 100%); }
.work__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
@media (max-width: 900px) { .work__grid { grid-template-columns: 1fr; } }
.work__note { margin-top: 1.2rem; color: var(--faint); font-size: 0.86rem; font-weight: 500; }

.ticks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.55rem; }
.ticks li { position: relative; padding-inline-start: 1.9rem; color: var(--muted); font-weight: 500; line-height: 1.7; }
.ticks li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.55em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--amber); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23000'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' stroke='%23fff' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23000'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' stroke='%23fff' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

.phone { display: grid; justify-items: center; }
.phone__frame { position: relative; width: min(320px, 78vw); aspect-ratio: 9 / 19.2; border-radius: 42px; padding: 10px;
  background: #0d1117; border: 1px solid rgba(236,231,221,.14);
  box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.04), 0 0 80px var(--amber-glow); }
.phone__frame::before { content: ''; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 34%; height: 24px; border-radius: 20px; background: #000; z-index: 3; }
.phone__video { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; background: #000; display: block; }
.phone__sound { position: absolute; bottom: 22px; inset-inline-end: 22px; z-index: 4; width: 46px; height: 46px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: rgba(6,8,11,.72); color: var(--smoke); cursor: pointer; backdrop-filter: blur(8px);
  transition: background .3s, color .3s, transform .3s; }
.phone__sound:hover { transform: scale(1.06); }
.phone__sound.is-on { background: var(--amber); color: var(--ink); }
.phone__sound svg { width: 22px; height: 22px; fill: currentColor; }
.phone__sound svg .w { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; opacity: .35; }
.phone__sound.is-on svg .w { opacity: 1; }

/* ---------- ٠٤ السعر ---------- */
.price { position: relative; overflow: hidden; padding: clamp(5rem, 12vw, 10rem) 0; background: var(--ink); }
.price__bg { position: absolute; inset: -18%; z-index: 0; }
.price__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.price__inner { position: relative; z-index: 2; display: grid; gap: .6rem; justify-items: start; }
.plan { margin-top: 2.2rem; width: min(560px, 100%); padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: 28px;
  background: rgba(11,16,22,.78); border: 1px solid rgba(200,255,61,.28); backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 60px rgba(200,255,61,.08); display: grid; gap: 1.3rem; }
.plan__price { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.plan__price bdi { font-family: var(--font-latin); font-size: clamp(3.4rem, 9vw, 5.6rem); line-height: 1; color: var(--amber); direction: ltr; }
.plan__price small { color: var(--muted); font-weight: 500; font-size: .95rem; }
.plan__inc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem .9rem; }
@media (max-width: 520px) { .plan__inc { grid-template-columns: 1fr; } }
.plan__inc li { position: relative; padding-inline-start: 1.5rem; color: var(--muted); font-weight: 500; font-size: .95rem; line-height: 1.6; }
.plan__inc li::before { content: ''; position: absolute; inset-inline-start: 0; top: .6em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--amber); }
.plan__note { margin: 0; color: var(--faint); font-size: .84rem; font-weight: 500; }

/* ---------- ٠٥ الرفع ---------- */
.upload { padding: clamp(5rem, 12vw, 10rem) 0; background: var(--ink-2); }
.upform { margin-top: 2.2rem; display: grid; gap: 1.4rem; max-width: 760px; }
.drop { position: relative; display: grid; gap: 1.2rem; justify-items: center; text-align: center; padding: clamp(1.8rem, 5vw, 3rem);
  border-radius: 28px; border: 1.5px dashed rgba(200,255,61,.45); background: rgba(6,8,11,.55); cursor: pointer;
  transition: border-color .3s, background .3s, transform .3s; }
.drop:hover, .drop.is-over { border-color: var(--amber); background: rgba(200,255,61,.06); }
.drop.has-file { border-style: solid; border-color: var(--amber); }
.drop.is-shake { animation: shake .45s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-8px)} 75%{transform:translateX(8px)} }
.drop__inner { display: grid; gap: .35rem; justify-items: center; }
.drop__inner svg { width: 48px; height: 48px; fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .4rem; }
.drop__inner b { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.drop__inner span { color: var(--faint); font-weight: 500; font-size: .88rem; }
.drop__file { margin-top: .6rem; color: var(--amber); font-weight: 600; font-size: .92rem; word-break: break-all; }
.drop__btn { pointer-events: auto; }
.upform__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .upform__fields { grid-template-columns: 1fr; } }
.upform__wide { grid-column: 1 / -1; }
.upform label { display: grid; gap: .45rem; font-weight: 600; font-size: .9rem; color: var(--muted); }
.upform input, .upform textarea { width: 100%; padding: .85rem 1rem; border-radius: 14px; border: 1px solid rgba(236,231,221,.16);
  background: rgba(6,8,11,.6); color: var(--smoke); font: inherit; font-size: 1rem; outline: none; transition: border-color .3s, box-shadow .3s; }
.upform input:focus, .upform textarea:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(200,255,61,.14); }
.upform textarea { resize: vertical; }
.upform__foot { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.upform__foot .btn { font-size: 1.02rem; padding: .95rem 2rem; }
.upform__foot .btn:disabled { opacity: .55; cursor: wait; transform: none; }
.upprog { display: flex; align-items: center; gap: .8rem; flex: 1; min-width: 200px; opacity: 0; transition: opacity .3s; }
.is-busy .upprog { opacity: 1; }
.upprog__bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(236,231,221,.12); overflow: hidden; }
.upprog__bar i { display: block; height: 100%; background: var(--amber); transform-origin: right center; transform: scaleX(0); transition: transform .25s linear; }
.upprog span { font-family: var(--font-latin); font-size: 1.1rem; color: var(--amber); min-width: 3.2ch; direction: ltr; }
.upform__state { margin: 0; min-height: 1.4em; color: var(--muted); font-weight: 500; font-size: .92rem; }
.upform__state.is-err { color: #ff8a80; }
.updone { padding: 1.6rem 1.8rem; border-radius: 22px; background: rgba(200,255,61,.1); border: 1px solid rgba(200,255,61,.45); display: grid; gap: .4rem; }
.updone b { font-family: var(--font-display); font-size: 1.5rem; color: var(--amber); }
.updone p { margin: 0; color: var(--muted); font-weight: 500; }
.is-done .drop, .is-done .upform__fields, .is-done .upform__foot { display: none; }

/* الإحصاءات: أرقام لاتينية واضحة */
.stat b bdi { direction: ltr; unicode-bidi: isolate; }

@media (prefers-reduced-motion: reduce) { .drop.is-shake { animation: none; } }

/* ---------- تركيز: ثلاثة مشاهد بالرحلة + السعر والرفع بشاشة وحدة ---------- */
.reel--3 { height: 320svh; }
.upload { position: relative; overflow: hidden; background: var(--ink); }
.upload__bg { position: absolute; inset: -18%; z-index: 0; }
.upload__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.upload__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .upload__grid { grid-template-columns: 1fr; } }
.upload__copy { display: grid; gap: .6rem; justify-items: start; }
.plan--side { margin-top: 1.4rem; width: min(520px, 100%); }
.upform { margin-top: 0; }
@media (min-width: 901px) { .upform { margin-top: 4.2rem; } }

.updone[hidden] { display: none; }

.updone--warn { border-color: rgba(255,138,128,.5); background: rgba(255,138,128,.08); }
.updone--warn b { color: #ff8a80; }
.updone--warn[hidden] { display: none; }

/* ---------- الباقات ---------- */
.plans { margin-top: 1.6rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; width: 100%; max-width: 620px; }
@media (max-width: 520px) { .plans { grid-template-columns: repeat(2, 1fr); } }
.planopt { display: grid; gap: .15rem; justify-items: center; padding: 1rem .6rem .85rem; border-radius: 20px; cursor: pointer;
  background: rgba(11,16,22,.78); border: 1.5px solid rgba(236,231,221,.14); color: var(--smoke); font: inherit; transition: border-color .3s, transform .3s, box-shadow .3s; }
.planopt:hover { transform: translateY(-3px); border-color: rgba(200,255,61,.5); }
.planopt.is-on { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber), 0 18px 50px rgba(200,255,61,.14); }
.planopt b { font-family: var(--font-latin); font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1; color: var(--amber); direction: ltr; }
.planopt span { font-weight: 700; font-size: .95rem; }
.planopt small { color: var(--faint); font-weight: 500; font-size: .76rem; direction: ltr; }
.plan__inc--flat { margin-top: 1.4rem; max-width: 620px; }
.upform__code input { text-transform: uppercase; letter-spacing: .12em; }
.updone__code { margin-top: .8rem; padding: .9rem 1rem; border-radius: 14px; background: rgba(6,8,11,.55); display: grid; gap: .3rem; }
.updone__code span { color: var(--muted); font-size: .86rem; font-weight: 500; }
.updone__code b { font-family: var(--font-latin); font-size: 2rem; letter-spacing: .18em; color: var(--amber); direction: ltr; text-align: center; }
.updone__code em { font-style: normal; color: var(--faint); font-size: .84rem; }
.updone__code[hidden] { display: none; }
