:root {
  --bg: #0b0b0d;
  --surface: #141418;
  --surface-2: #1b1a1f;
  --border: #2b2720;
  --text: #f3f0e8;
  --muted: #a9a292;
  --gold: #e7c46a;
  --gold-2: #c9962f;
  --gold-soft: rgba(231, 196, 106, 0.12);
  --ok: #3ddc97;
  --warn: #e8c468;
  --err: #ef5d5d;
  --radius: 16px;
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans Arabic", Tahoma, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section.tight { padding: 32px 0; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.center { text-align: center; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 11, 13, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.2rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-inline-start: auto; align-items: center; }
.nav a { color: var(--muted); font-size: .95rem; }
.nav a[aria-current="page"], .nav a:hover { color: var(--text); text-decoration: none; }
.nav a.btn-gold, .nav a.btn-gold:hover { color: #16130c; }
@media (max-width: 520px) {
  .site-header .wrap { gap: 6px 12px; padding-top: 8px; padding-bottom: 8px; }
  .nav { width: 100%; margin-inline-start: 0; justify-content: space-between; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important;
  transition: transform .15s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-gold { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #16130c; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--gold-2); }
.btn-tg { background: #229ed9; color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .92rem; }
.btn-block { width: 100%; }

/* hero */
.hero { padding: 40px 0 24px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.hero .kicker { color: var(--gold); font-weight: 600; letter-spacing: .5px; margin-bottom: 8px; }
.hero p.lead { color: var(--muted); font-size: 1.1rem; max-width: 36em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-art { justify-self: center; max-width: 320px; width: 100%; }
.hero-art img { border-radius: 24px; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(231, 196, 106, .08); }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 150px; order: -1; }
  .hero { padding-top: 24px; }
}

/* cards & grids */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.card h3 { color: var(--text); }
.card .icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold); margin-bottom: 12px;
}
.card .icon svg { width: 22px; height: 22px; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold); font-weight: 700; margin-bottom: 10px;
}

/* packages */
.packages { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.pkg { display: flex; flex-direction: column; position: relative; }
.pkg.featured { border-color: var(--gold-2); box-shadow: 0 0 0 1px var(--gold-2) inset; }
.pkg .badge {
  position: absolute; top: -12px; inset-inline-start: 20px;
  background: var(--gold); color: #16130c; font-size: .8rem; font-weight: 700; padding: 2px 12px; border-radius: 999px;
}
.pkg .price { font-size: 2.2rem; font-weight: 700; color: var(--gold); line-height: 1.2; margin: 6px 0 2px; }
.pkg .price small { font-size: 1rem; color: var(--muted); font-weight: 400; }
.pkg ul { list-style: none; padding: 0; margin: 14px 0 20px; flex: 1; }
.pkg li { padding: 6px 0; padding-inline-start: 26px; position: relative; color: var(--text); }
.pkg li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--gold); font-weight: 700; }
.skeleton { min-height: 320px; background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: sk 1.4s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* notices */
.notice { border-radius: 12px; padding: 14px 16px; border: 1px solid var(--border); background: var(--surface-2); }
.notice.warn { border-color: rgba(232, 196, 104, .4); background: rgba(232, 196, 104, .07); }
.notice.err { border-color: rgba(239, 93, 93, .45); background: rgba(239, 93, 93, .08); }
.notice.ok { border-color: rgba(61, 220, 151, .4); background: rgba(61, 220, 151, .07); }
.disclaimer { font-size: .88rem; color: var(--muted); border-inline-start: 3px solid var(--gold-2); padding: 4px 14px; }

/* forms */
.form-row { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="email"], input[type="text"] {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px;
  background: var(--bg); color: var(--text); border: 1px solid var(--border); font: inherit;
}
input:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 7px; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.checkout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 820px) { .checkout { grid-template-columns: 1fr; } }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.summary-row:last-child { border-bottom: 0; }
.mysr-form { direction: ltr; background: #fff; border-radius: 14px; padding: 16px; color: #111; }

/* success */
.code-box {
  margin: 18px auto; max-width: 420px; background: var(--bg); border: 1px dashed var(--gold-2);
  border-radius: 14px; padding: 18px; text-align: center;
}
.code-box .code { font-family: Consolas, "Courier New", monospace; font-size: clamp(1.5rem, 6vw, 2.1rem); letter-spacing: 3px; color: var(--gold); font-weight: 700; direction: ltr; word-break: break-all; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--gold); animation: spin 1s linear infinite; margin: 10px auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* prose (legal pages) */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.3rem; color: var(--gold); }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose .updated { color: var(--muted); font-size: .9rem; }

/* faq */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details[open] summary { color: var(--gold); margin-bottom: 8px; }

/* footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 32px 0 40px; color: var(--muted); font-size: .92rem; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer nav a { color: var(--muted); }
.pay-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pay-badges span { border: 1px solid var(--border); border-radius: 8px; padding: 2px 10px; font-size: .82rem; color: var(--text); direction: ltr; }
.hidden { display: none !important; }
