/* تصميم المتجر - موبايل أولاً، بدون أي ملفات من الإنترنت */

@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("../fonts/cairo-arabic.4d90a59cb181.woff2") format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E,
                 U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("../fonts/cairo-latin.3c9597566d23.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f3f6f4;
  --surface: #ffffff;
  --ink: #13211c;
  --muted: #5c6b65;
  --line: #dfe7e3;
  --brand: #0a7a5a;
  --brand-dark: #075f46;
  --brand-soft: #e2f4ed;
  --warn-soft: #fff4d6;
  --warn-ink: #725000;
  --danger: #b93227;
  --danger-soft: #fdebe9;
  --info-soft: #e7f0fb;
  --info-ink: #1b4d86;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(19, 33, 28, .05), 0 6px 20px rgba(19, 33, 28, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Cairo', 'Segoe UI', Tahoma, 'Noto Sans Arabic', system-ui, sans-serif;
  font-size: 16px; line-height: 1.7;
  min-height: 100vh; display: flex; flex-direction: column;
  padding-bottom: 68px; /* مكان شريط التنقل السفلي */
}
h1, h2, h3, p { margin: 0; }
a { color: var(--brand-dark); }
img, svg { max-width: 100%; }
.wrap { width: 100%; max-width: 980px; margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 460px; margin-inline: auto; }
.mid { max-width: 620px; margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.row--between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
[hidden] { display: none !important; }

/* ---- الرأس ---- */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.1rem; color: var(--ink);
         text-decoration: none; margin-inline-end: auto; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff;
               display: grid; place-items: center; flex-shrink: 0; }
.brand__mark svg { width: 20px; height: 20px; }
.top__links { display: none; gap: 4px; }
.top__link { padding: 6px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.top__link:hover, .top__link.is-active { background: var(--brand-soft); color: var(--brand-dark); }
.top form { margin: 0; }

/* ---- شريط التنقل السفلي (موبايل) ---- */
.tabs { position: fixed; inset-inline: 0; bottom: 0; z-index: 20; background: var(--surface);
        border-top: 1px solid var(--line); display: flex; padding-bottom: env(safe-area-inset-bottom); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 6px;
       color: var(--muted); text-decoration: none; font-size: .78rem; font-weight: 700; }
.tab svg { width: 24px; height: 24px; }
.tab.is-active { color: var(--brand); }

main { flex: 1; padding-block: 20px 28px; }
.foot { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 8px; padding: 22px 16px 26px;
        border-top: 1px solid var(--line); }
.foot a { font-weight: 700; }

@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .tabs { display: none; }
  .top__links { display: flex; }
  main { padding-block: 32px 40px; }
}

/* ---- أزرار ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px;
       padding: 8px 18px; border-radius: 12px; border: 1px solid transparent; background: var(--brand); color: #fff;
       font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
       transition: background .15s; }
.btn:hover { background: var(--brand-dark); }
.btn:focus-visible, .input:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(10, 122, 90, .35); outline-offset: 2px; }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 4px 14px; font-size: .9rem; border-radius: 10px; }
.btn--ghost { background: var(--surface); color: var(--brand-dark); border-color: var(--line); }
.btn--ghost:hover { background: var(--brand-soft); }
.btn--off, .btn[disabled] { background: #e6ebe8; color: #84918c; cursor: not-allowed; }
.btn.is-done { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand-soft); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-dark); cursor: pointer;
            text-decoration: underline; }
.link-btn--danger { color: var(--danger); }

/* ---- بطاقة عامة ---- */
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel__title { font-size: 1.25rem; font-weight: 800; margin-bottom: 14px; }
.page-title { font-size: 1.35rem; font-weight: 800; margin-bottom: 14px; }
.section-title { font-size: 1.05rem; font-weight: 800; margin: 26px 0 10px; }
.crumbs { font-size: .9rem; margin-bottom: 10px; color: var(--muted); }

/* ---- تنبيهات ---- */
.note { border-radius: 12px; padding: 12px 14px; background: var(--info-soft); color: var(--info-ink);
        margin-bottom: 14px; font-weight: 600; }
.note--success { background: var(--brand-soft); color: var(--brand-dark); }
.note--error { background: var(--danger-soft); color: var(--danger); }
.note--warning { background: var(--warn-soft); color: var(--warn-ink); }
.note--plain { background: #edf1ef; color: var(--ink); font-weight: 400; }
.note > :last-child { margin-bottom: 0; }

/* ---- الرئيسية ---- */
.hero { text-align: center; padding: 8px 0 4px; }
.hero h1 { font-size: 1.6rem; font-weight: 800; line-height: 1.4; }
.hero p { color: var(--muted); margin-top: 6px; }
.num { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800;
       display: grid; place-items: center; flex-shrink: 0; }
/* تعريف بالموقع بأعلى الرئيسية */
.intro { position: relative; overflow: hidden; color: #fff; border-radius: 20px; padding: 22px 18px;
         margin-bottom: 18px; background: linear-gradient(140deg, #0c8a66, var(--brand-dark)); }
.intro::before, .intro::after { content: ""; position: absolute; border-radius: 50%; inset-inline-end: -70px;
                                top: -70px; width: 200px; height: 200px; border: 18px solid rgba(255, 255, 255, .07); }
.intro::after { width: 110px; height: 110px; inset-inline-end: -25px; top: -25px; }
.intro__logo { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
               background: #fff; color: var(--brand); margin-bottom: 12px; }
.intro__logo svg { width: 31px; height: 31px; }
.intro__name { position: relative; font-size: 1.75rem; font-weight: 800; line-height: 1.3; }
.intro__text { position: relative; font-size: .93rem; opacity: .9; margin-top: 6px; max-width: 26em; }
@media (min-width: 720px) {
  .intro { padding: 30px 28px; }
  .intro__name { font-size: 2.1rem; }
  .intro__text { font-size: 1rem; }
}
/* إعلان من لوحة الإدارة */
.announce { display: flex; gap: 10px; align-items: center; background: var(--warn-soft); color: var(--warn-ink);
            border-radius: 14px; padding: 10px 14px; margin-bottom: 18px; }
.announce__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
                  background: rgba(114, 80, 0, .12); flex-shrink: 0; }
.announce__icon svg { width: 20px; height: 20px; }
.announce b { display: block; font-size: .9rem; line-height: 1.5; }
.announce div span { display: block; font-size: .8rem; line-height: 1.5; }
/* كيف تشتري: شريط أخضر غامق بثلاث خطوات مربوطة بخط */
.band { background: var(--brand-dark); color: #fff; border-radius: 18px; padding: 18px 8px 16px; margin-top: 30px; }
.band h2 { font-size: 1rem; font-weight: 800; text-align: center; margin-bottom: 14px; }
.band ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.band li { text-align: center; position: relative; padding: 0 4px; }
.band .num { margin: 0 auto 6px; background: #fff; color: var(--brand-dark); position: relative; z-index: 1; }
.band li:not(:last-child)::before { content: ""; position: absolute; top: 15px; inset-inline-start: 50%; width: 100%;
                                    height: 2px; background: rgba(255, 255, 255, .3); }
.band b { display: block; font-size: .9rem; line-height: 1.4; }
.band__d { display: block; font-size: .74rem; opacity: .8; line-height: 1.5; margin-top: 2px; }
@media (min-width: 720px) {
  .hero h1 { font-size: 2rem; }
  .band { padding: 24px 16px 22px; }
  .band b { font-size: 1rem; }
  .band__d { font-size: .85rem; }
}

/* ---- اختيار الشبكة ---- */
.nets { display: grid; gap: 12px; margin-top: 20px; }
@media (min-width: 720px) { .nets { grid-template-columns: repeat(2, 1fr); } }
.net { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: var(--radius);
       box-shadow: var(--shadow); padding: 20px 16px; color: var(--ink); text-decoration: none;
       border: 1.5px solid transparent; transition: border-color .15s, transform .15s; }
.net:hover { border-color: var(--brand); transform: translateY(-2px); }
.net__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand);
             display: grid; place-items: center; flex-shrink: 0; }
.net__icon svg { width: 28px; height: 28px; }
.net__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.net__name { font-size: 1.2rem; font-weight: 800; line-height: 1.4; display: flex; align-items: center; gap: 8px;
             flex-wrap: wrap; }
.net__badge { font-size: .72rem; font-weight: 800; background: var(--brand-soft); color: var(--brand-dark);
              padding: 1px 10px; border-radius: 999px; }
.net__area { font-size: .85rem; color: var(--muted); }
.net__meta { font-size: .88rem; font-weight: 700; color: var(--brand-dark); margin-top: 2px; }
.net__go { font-size: 1.8rem; color: var(--muted); line-height: 1; }
.net--out .net__icon { background: #edf1ef; color: #9aa6a1; }
.net--out .net__meta { color: var(--muted); }

.tower { margin-top: 30px; }
.tower__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.tower__name { font-size: 1.3rem; font-weight: 800; }
.tower__name a { color: inherit; text-decoration: none; }
.tower__desc { color: var(--muted); font-size: .92rem; margin: -6px 0 12px; }

/* ---- الباقات ---- */
.pkgs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 620px) { .pkgs { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .pkgs { grid-template-columns: repeat(4, 1fr); } }
.pkg { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 14px 14px;
       display: flex; flex-direction: column; text-align: center; border: 1px solid transparent; }
.pkg:hover { border-color: var(--brand); }
.pkg__size { font-size: 2.3rem; font-weight: 800; line-height: 1.1; color: var(--brand-dark); }
.pkg__unit { font-weight: 700; color: var(--muted); }
.pkg__meta { font-size: .85rem; color: var(--muted); min-height: 1.5em; }
.pkg__price { font-size: 1.2rem; font-weight: 800; margin: 8px 0 10px; margin-top: auto; padding-top: 8px; }
.pkg__price small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.pkg__left { font-size: .78rem; font-weight: 700; color: var(--warn-ink); margin-top: 6px; }
.pkg--out .pkg__size { color: #9aa6a1; }
.pkg form { margin: 0; }

/* ---- الطلب ---- */
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.order-ref { font-size: 1.35rem; font-weight: 800; }
.order-what { margin: 6px 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.order-what strong { font-weight: 800; }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700;
         background: #e9eeeb; color: var(--muted); white-space: nowrap; }
.badge--ok { background: var(--brand-soft); color: var(--brand-dark); }
.badge--wait { background: var(--warn-soft); color: var(--warn-ink); }

.steps { list-style: none; margin: 0; padding: 0; }
.steps > li { display: flex; gap: 12px; padding-bottom: 18px; }
.steps > li:last-child { padding-bottom: 0; }
.step__title { font-weight: 800; }

.copybox { display: flex; gap: 8px; align-items: stretch; margin-top: 8px; }
.copybox__value { flex: 1; min-width: 0; background: #eef3f0; border-radius: 12px; padding: 8px 12px;
                  font-family: ui-monospace, Consolas, 'Courier New', monospace; font-size: 1.25rem; font-weight: 700;
                  letter-spacing: .5px; direction: ltr; text-align: center; overflow-wrap: anywhere;
                  display: grid; place-items: center; }
.copybox__label { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.copybox .btn { min-width: 78px; }
/* عنوان محفظة طويل (32 خانة): خط أصغر ليضل مرتب بسطرين متساويين */
.copybox__value--long { font-size: .95rem; letter-spacing: 0; line-height: 1.5; }
@media (max-width: 350px) { .copybox--long { flex-direction: column; } }

/* لمين التحويل: رمز QR + اسم صاحب الحساب */
.payto { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
         margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f7faf8; }
.payto__qr { width: 100%; max-width: 210px; height: auto; background: #fff; padding: 8px; border-radius: 12px;
             border: 1px solid var(--line); }
.payto__label { font-size: .8rem; color: var(--muted); }
.payto__name { font-size: 1.1rem; font-weight: 800; line-height: 1.5; }
.payto__hint { font-size: .85rem; color: var(--muted); margin-top: 6px; }
@media (min-width: 520px) {
  .payto { flex-direction: row; text-align: start; gap: 16px; }
  .payto__qr { width: 170px; flex-shrink: 0; }
}

.input { width: 100%; min-height: 46px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--line);
         background: #fff; font: inherit; color: var(--ink); }
.input:focus { border-color: var(--brand); outline: none; }
.input.is-invalid { border-color: var(--danger); }
.input--ltr { direction: ltr; text-align: left; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
.field__error { color: var(--danger); font-size: .88rem; font-weight: 600; margin-top: 4px; }
.field__help { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.inline-form { display: flex; gap: 8px; margin-top: 8px; }
.inline-form .input { flex: 1; min-width: 0; }

.waiting { display: flex; gap: 12px; align-items: flex-start; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--brand-soft);
           border-top-color: var(--brand); animation: spin 1s linear infinite; flex-shrink: 0; margin-top: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

.timer { font-weight: 800; font-variant-numeric: tabular-nums; }
.order-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
              margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem;
              color: var(--muted); }
.order-foot form { margin: 0; }
details.fix { margin-top: 14px; }
details.fix summary { cursor: pointer; font-weight: 700; color: var(--brand-dark); }
.help { margin-top: 16px; text-align: center; font-size: .92rem; color: var(--muted); }

/* ---- بطاقاتي ---- */
.cards { display: grid; gap: 12px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.ticket { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px;
          border-inline-start: 5px solid var(--brand); }
.ticket--wait { border-inline-start-color: #e2b100; }
.ticket__title { font-weight: 800; }
.ticket__sub { font-size: .82rem; color: var(--muted); }
.ticket .copybox__value { font-size: 1.05rem; }
.ticket .btn { margin-top: 10px; }
.ticket .copybox .btn { margin-top: 0; }
.history { margin-top: 26px; }
.history summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.history ul { list-style: none; padding: 0; margin: 10px 0 0; }
.history li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0;
              border-bottom: 1px solid var(--line); font-size: .9rem; }
.empty { text-align: center; padding: 32px 16px; }
.empty p { color: var(--muted); margin-bottom: 14px; }

.summary { list-style: none; margin: 0 0 16px; padding: 0; }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0;
              border-bottom: 1px solid var(--line); }
.summary li span:first-child { color: var(--muted); }
.summary li span:last-child { font-weight: 800; }

/* ---- إضافات ---- */
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 50; background: var(--brand); color: #fff;
        padding: 8px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; }
.mt { margin-top: 18px; }
.mt-s { margin-top: 8px; }
.mb { margin-bottom: 12px; }
.section-title--first { margin-top: 0; }
.ticket__help { font-size: .82rem; margin-top: 10px; text-align: center; }
.foot__links { display: flex; justify-content: center; gap: 6px 14px; flex-wrap: wrap; margin: 0 0 12px;
               font-size: .82rem; }
.foot__links a { font-weight: 600; white-space: nowrap; }
.foot__small { font-size: .78rem; }

/* صفحة التواصل والدعم */
.contact__who { text-align: center; }
.contact__who .btn { margin-top: 10px; }
.btn--wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.btn--wa:hover { background: #178a45; }
.btn svg { width: 20px; height: 20px; flex: none; }
.contact__list { display: grid; gap: 8px; margin-top: 10px; }
.contact__send { margin: 6px 0 0; padding-inline-start: 22px; color: var(--muted); }

/* صفحات النصوص: الأسئلة الشائعة، الشروط، الخصوصية */
.prose h2 { font-size: 1.08rem; font-weight: 800; margin: 22px 0 6px; }
.prose p { margin-bottom: 10px; }
.prose ul { margin: 0 0 10px; padding-inline-start: 22px; }
.prose li { margin-bottom: 4px; }
.qa { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 16px;
      margin-bottom: 10px; }
.qa summary { cursor: pointer; font-weight: 800; }
.qa p { margin: 8px 0 2px; color: var(--muted); }

/* شاشات ضيقة كتير: الباقات عمود واحد، وفورم رقم العملية تحت بعضه */
@media (max-width: 340px) {
  .pkgs { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; }
  .copybox__value { font-size: 1.05rem; }
}
