/* Pentester Market — الستايل المشترك لكل الصفحات:
   الألوان، الخط، القائمة، الفوتر، وشريط العرض.
   ستايل كل صفحة لوحدها موجود جوه الصفحة نفسها (أو package.css لصفحات الباقات). */

:root {
  --bg: #0b1020;
  --bg-deep: #071124;
  --card: #0f1724;
  --card-2: #0b1626;
  --accent: #06d6a0;
  --accent-2: #0de5b3;
  --muted: #94a3b8;
  --text: #e6eef8;
  --red: #dc2626;
  --red-text: #f05252;
  --gold: #ffd700;
  --whatsapp: #25D366;
  --telegram: #0088cc;
  --line: rgba(6, 214, 160, 0.2);
  --font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* أي جزء متخفي من لوحة التحكم يفضل متخفي حتى لو الستايل بتاعه فيه display */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul { margin-top: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ===== القائمة ===== */
.site-nav {
  background: var(--card);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.site-nav .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.site-nav .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}
.site-nav .logo svg { flex-shrink: 0; }
.site-nav .nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}
.site-nav .nav-links a {
  display: block;
  color: var(--text);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.site-nav .nav-links a:hover,
.site-nav .nav-links a[aria-current="page"] { color: var(--accent); background: rgba(6, 214, 160, 0.1); }
.site-nav .nav-links .cta-nav { background: var(--accent); color: var(--bg-deep); font-weight: 700; margin-inline-start: 6px; }
.site-nav .nav-links .cta-nav:hover { background: var(--accent-2); color: var(--bg-deep); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(6, 214, 160, 0.4); }

/* ===== الأيقونات (icons.js) ===== */
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
.icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(6, 214, 160, 0.1);
  border: 1px solid rgba(6, 214, 160, 0.25);
  color: var(--accent);
  font-size: 30px;
  line-height: 1;
}
.icon-tile .ic { vertical-align: 0; }
.site-footer .ic-whatsapp, .contact-card .ic-whatsapp { color: var(--whatsapp); }
.site-footer .ic-telegram, .contact-card .ic-telegram { color: #26a5e4; }
.nav-toggle .ic-x { display: none; }
.nav-toggle[aria-expanded="true"] .ic-menu { display: none; }
.nav-toggle[aria-expanded="true"] .ic-x { display: inline-block; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(6, 214, 160, 0.4);
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav .logo { font-size: 20px; }
  .site-nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--card);
    padding: 12px 20px 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  }
  .site-nav .nav-links.open { display: flex; }
  .site-nav .nav-links a { text-align: center; padding: 12px; }
  .site-nav .nav-links .cta-nav { margin: 6px 0 0; }
}

/* ===== الفوتر ===== */
.site-footer {
  background: var(--card);
  padding: 50px 20px 20px;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}
.site-footer .footer-content {
  max-width: 1200px;
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px 40px;
}
.site-footer .footer-title { color: var(--accent); margin: 0 0 16px; font-size: 20px; }
.site-footer p { color: var(--muted); line-height: 1.9; margin: 0; }
.site-footer .footer-section > a { display: block; color: var(--muted); text-decoration: none; line-height: 2.1; transition: color 0.3s, transform 0.3s; }
.site-footer .footer-section > a:hover { color: var(--accent); transform: translateX(-5px); }
.site-footer .contact-line { color: var(--muted); line-height: 2.1; }
.site-footer .contact-line a { color: var(--accent); text-decoration: none; }
.site-footer .contact-line a:hover { text-decoration: underline; }
.site-footer .social-links { display: flex; gap: 12px; margin-top: 16px; }
.site-footer .social-links a {
  width: 42px;
  height: 42px;
  background: rgba(6, 214, 160, 0.1);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
}
.site-footer .social-links a:hover { background: rgba(6, 214, 160, 0.2); transform: translateY(-3px); border-color: var(--accent); }
.site-footer .footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== شريط العرض والعداد (الرئيسية وصفحة الباقات) ===== */
@keyframes slowPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: 0.95; } }

.offer-banner { max-width: 1200px; margin: 50px auto; padding: 0 20px; }
.offer-banner-inner {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(6, 214, 160, 0.15));
  border: 2px solid rgba(220, 38, 38, 0.4);
  border-radius: 20px;
  padding: 20px 30px;
  box-shadow: 0 10px 40px rgba(220, 38, 38, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
}
.offer-banner .offer-label { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.offer-banner .offer-label span { font-size: 24px; color: var(--red-text); animation: slowPulse 2s ease-in-out infinite; }
.offer-banner .offer-hint { color: var(--red-text); font-size: 16px; font-weight: 700; }
.countdown { display: flex; gap: 12px; align-items: center; }
.countdown .cd-box {
  background: rgba(220, 38, 38, 0.2);
  padding: 10px 14px;
  border-radius: 12px;
  min-width: 64px;
  animation: slowPulse 2s ease-in-out infinite;
}
.countdown .cd-box:nth-of-type(2) { animation-delay: 0.3s; }
.countdown .cd-box:nth-of-type(3) { animation-delay: 0.6s; }
.countdown .cd-num { display: block; font-size: 28px; font-weight: 800; color: var(--red-text); line-height: 1.2; font-variant-numeric: tabular-nums; }
.countdown .cd-unit { display: block; font-size: 12px; color: var(--muted); }
.countdown .cd-sep { font-size: 24px; color: var(--red-text); font-weight: 700; }

@media (max-width: 600px) {
  .offer-banner-inner { padding: 18px 14px; gap: 14px; }
  .countdown { gap: 8px; }
  .countdown .cd-box { min-width: 58px; padding: 8px 10px; }
}

/* ===== تبديل العملة (بيظهر لما اللوحة تختار "الاتنين") ===== */
.cur-toggle { display: inline-flex; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; margin-inline-start: auto; }
.cur-toggle button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 7px; cursor: pointer; min-width: 40px; }
.cur-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--bg-deep); }
@media (min-width: 961px) { .cur-toggle { order: 3; margin-inline-start: 0; } }

/* ===== التقسيط ===== */
.inst-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(255, 215, 0, 0.08); border: 1px dashed rgba(255, 215, 0, 0.35); color: var(--gold); font-size: 14px; font-weight: 700; line-height: 1.6; }
.inst-note .ic { flex-shrink: 0; }

/* ===== وسائل الدفع ===== */
.pay-strip { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; }
.pay-strip .pay-label { color: var(--muted); font-weight: 700; font-size: 14px; margin-inline-end: 4px; }
.pay-logo { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 12px; width: 124px; height: 52px; padding: 4px 6px; }
.pay-logo img { display: block; max-width: 100%; height: auto; }
.site-footer .pay-strip { max-width: 1200px; margin: 0 auto 26px; }
@media (max-width: 600px) {
  .pay-logo { width: calc(50% - 6px); max-width: 150px; }
  .pay-strip .pay-label { width: 100%; text-align: center; margin: 0; }
}

/* ===== اشتراك TryHackMe / Hack The Box مع الدبلومة ===== */
.addons-box { margin: 22px auto 0; max-width: 560px; text-align: start; background: rgba(6, 214, 160, 0.05); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.addons-title { margin: 0 0 12px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.addons-title .ic { color: var(--accent); }
.addons-list { display: grid; gap: 8px; }
.addon { display: flex; align-items: center; gap: 10px; background: var(--card-2); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 10px; padding: 10px 12px; cursor: pointer; transition: border-color 0.2s; }
.addon:hover, .addon:has(input:checked) { border-color: rgba(6, 214, 160, 0.5); }
.addon input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.addon-name { flex: 1; color: var(--text); font-size: 14px; }
.addon-price { color: var(--accent); font-weight: 700; font-size: 14px; white-space: nowrap; }
.addons-total { margin: 10px 0 0; color: var(--gold); font-weight: 700; font-size: 15px; }
.addons-total:empty { display: none; }

/* ===== شريط الإعلان (من لوحة التحكم) ===== */
.announce { position: relative; display: flex; align-items: center; justify-content: center; padding: 10px 48px; font-weight: 700; font-size: 15px; line-height: 1.6; text-align: center; }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.announce-ic { display: inline-flex; font-size: 18px; }
.announce-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.announce-close { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: inherit; opacity: 0.75; font-size: 16px; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.announce-close:hover { opacity: 1; background: rgba(0, 0, 0, 0.12); }
.announce-accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--bg-deep); }
.announce-red { background: linear-gradient(135deg, var(--red), #ef4444); color: #fff; }
.announce-gold { background: linear-gradient(135deg, #f5b301, var(--gold)); color: #1a1200; }
@media (max-width: 600px) { .announce { padding: 9px 40px 9px 14px; font-size: 14px; } }

/* ===== زرار واتساب عايم ===== */
#pm-float-wa {
  position: fixed; left: 18px; bottom: 18px; z-index: 1500; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--whatsapp); color: #fff; font-size: 30px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45); transition: transform 0.2s;
}
#pm-float-wa:hover { transform: scale(1.08); }
#pm-float-wa.with-bar { bottom: 66px; }

/* ===== لوجوهات السوشيال في الفوتر ===== */
.site-footer .social-links { flex-wrap: wrap; }
.site-footer .ic-facebook { color: #4f8cff; }
.site-footer .ic-instagram { color: #f56fa1; }
.site-footer .ic-youtube { color: #ff4d4d; }
.site-footer .ic-tiktok { color: #e6eef8; }
.site-footer .ic-x { color: #e6eef8; }
.site-footer .ic-linkedin { color: #4ea3e8; }

/* ===== اللوجو واسم البراند (من لوحة التحكم) ===== */
.site-nav .logo .brand-img { display: inline-flex; width: 44px; height: 44px; overflow: hidden; flex-shrink: 0; background: #fff; }
.site-nav .logo .brand-img.round { border-radius: 50%; box-shadow: 0 0 0 2px rgba(6, 214, 160, 0.65), 0 0 18px rgba(6, 214, 160, 0.3); }
.site-nav .logo .brand-img.sq { border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.site-nav .logo .brand-img img { width: 100%; height: 100%; object-fit: cover; }
.site-nav .logo.has-hl { color: var(--text); }
.brand-hl { font-weight: 800; }
.brand-accent { color: var(--accent); }
.brand-red { color: #ff2d4b; }
.brand-gold { color: var(--gold); }
.brand-white { color: var(--text); }

/* ===== كبسولة أسعار اللابات تحت القائمة (زي شريط موقع الاشتراكات) ===== */
.subs-bar { background: rgba(7, 17, 36, 0.92); border-bottom: 1px solid var(--line); }
.subs-in { max-width: 1200px; margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.subs-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.subs-pill { list-style: none; margin: 0; padding: 4px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-radius: 999px; background: var(--card); border: 1px solid rgba(255, 255, 255, 0.08); max-width: 100%; }
.subs-pill::-webkit-scrollbar { display: none; }
.subs-pill li { flex: none; }
.subs-pill a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px; text-decoration: none; white-space: nowrap; font-weight: 800; font-size: 14px; color: var(--text); transition: background 0.25s; }
.subs-pill a:hover { background: rgba(255, 255, 255, 0.05); }
.subs-pill small { font-size: 12.5px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.tone-red { background: #ff2d4b; box-shadow: 0 0 8px #ff2d4b; }
.tone-lime { background: #a8f034; box-shadow: 0 0 8px #a8f034; }
.tone-green { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.tone-blue { background: #4ea3e8; box-shadow: 0 0 8px #4ea3e8; }
.tone-gold { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
@media (max-width: 700px) {
  .subs-label { display: none; }
  .subs-in { justify-content: flex-start; padding: 6px 12px; }
  .subs-pill a { padding: 6px 11px; font-size: 13px; gap: 6px; }
}

/* ===== الإضافات: واضح إنها مش ضمن سعر الدبلومة ===== */
.addons-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.addons-head .addons-title { margin: 0; }
.addons-badge { background: rgba(255, 215, 0, 0.12); color: var(--gold); border: 1px solid rgba(255, 215, 0, 0.35); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; letter-spacing: 0.3px; white-space: nowrap; }
.addons-note { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.addons-note .ic { color: var(--gold); margin-top: 4px; }
.addons-note b { color: var(--gold); }
.addon .dot { margin-inline-start: 2px; }
.addons-total { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 215, 0, 0.06); border: 1px dashed rgba(255, 215, 0, 0.35); color: var(--muted); font-size: 14px; }
.addons-total b { color: var(--text); }
.addons-total .plus { color: var(--muted); font-weight: 800; }
.addons-total .sum b { color: var(--gold); font-size: 16px; }

/* ===== شريط الإعلان: حركة ولمعة وعداد ===== */
@keyframes annShine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }
@keyframes annIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes annTicker { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes annWiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } }
.announce { overflow: hidden; min-height: 44px; isolation: isolate; }
.announce::after { content: ''; position: absolute; top: 0; bottom: 0; width: 30%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); animation: annShine 4.5s ease-in-out infinite; pointer-events: none; z-index: -1; }
.announce-ic { animation: annWiggle 2.8s ease-in-out infinite; transform-origin: 50% 60%; }
.announce-inner { position: relative; max-width: 100%; }
.announce-msgs { position: relative; min-width: 0; }
.mode-rotate .announce-msgs { display: grid; }
.mode-rotate .announce-text { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity 0.5s, transform 0.5s; pointer-events: none; }
.mode-rotate .announce-text.is-on { opacity: 1; transform: none; pointer-events: auto; }
.mode-rotate .announce-text.is-out { opacity: 0; transform: translateY(-14px); }
.mode-static .announce-text + .announce-text { display: none; }
.mode-static .announce-text { animation: annIn 0.6s ease both; }
.mode-ticker .announce-inner { width: 100%; justify-content: flex-start; flex-wrap: nowrap; }
.mode-ticker .announce-msgs { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.announce-track { display: inline-flex; gap: 48px; white-space: nowrap; animation: annTicker linear infinite; padding-inline-start: 48px; }
.announce-track:hover { animation-play-state: paused; }
.announce-item::after { content: '•'; margin-inline-start: 48px; opacity: 0.6; }
.announce-cd { display: inline-flex; align-items: center; gap: 5px; background: rgba(0, 0, 0, 0.18); padding: 3px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.announce-link { background: rgba(0, 0, 0, 0.16); padding: 4px 12px; border-radius: 999px; text-decoration: none; transition: background 0.2s; }
.announce-link:hover { background: rgba(0, 0, 0, 0.28); }
.announce-red .announce-cd, .announce-red .announce-link { background: rgba(255, 255, 255, 0.18); }

/* ===== أنيميشن الظهور (لوحة التحكم ← الهوية والشكل) ===== */
.pm-anim-rich .pm-reveal { animation: none !important; opacity: 0; transform: translateY(28px) scale(0.98); transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) !important; transition-delay: var(--pm-d, 0ms) !important; }
.pm-anim-rich .pm-reveal.pm-in { opacity: 1; transform: none; }
.pm-anim-rich .pm-done { animation: none !important; opacity: 1; }
.pm-anim-off *, .pm-anim-off *::before, .pm-anim-off *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }

/* ===== المعاينة جوه لوحة التحكم ===== */
.pm-frame .pm-hidden { opacity: 0.28 !important; outline: 2px dashed var(--red-text) !important; outline-offset: -2px; }
.pm-hl { outline: 3px solid var(--gold) !important; outline-offset: 3px; box-shadow: 0 0 0 8px rgba(255, 215, 0, 0.18) !important; border-radius: 10px; transition: outline-color 0.2s; }

/* ===== وضع الصيانة ===== */
html.pm-maint body > *:not(#pm-maint):not(#pm-preview-bar):not(#pm-icons) { display: none !important; }
#pm-maint { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; text-align: center; background: radial-gradient(circle at 50% 40%, rgba(6, 214, 160, 0.12), transparent 60%), var(--bg); }
.pm-maint-box { max-width: 520px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 40px 28px; }
.pm-maint-box .icon-tile { margin: 0 auto 20px; width: 72px; height: 72px; font-size: 34px; }
.pm-maint-box h1 { color: var(--accent); font-size: 30px; margin: 0 0 12px; }
.pm-maint-box p { color: var(--muted); font-size: 17px; line-height: 1.9; margin: 0 0 24px; }
.pm-maint-wa { display: inline-flex; align-items: center; gap: 8px; background: var(--whatsapp); color: #fff; font-weight: 700; padding: 13px 26px; border-radius: 12px; text-decoration: none; }
#pm-admin-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 3000; background: var(--red); color: #fff; text-align: center; font-weight: 700; font-size: 14px; padding: 8px 14px; }
#pm-admin-bar a { color: #fff; text-decoration: underline; }

/* اللي مفعّل تقليل الحركة في جهازه مايشوفش أنيميشن */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
