:root {
  --red:         #C41A1A;
  --red-dark:    #9B1515;
  --red-deep:    #7A0F0F;
  --red-light:   #F87171;
  --gold:        #F59E0B;
  --gold-light:  #FCD34D;
  --dark:        #0D0101;
  --dark-mid:    #160404;
  --dark-card:   #1F0707;
  --white:       #FFFFFF;
  --off-white:   #FFF8F8;
  --muted:       #64748B;
  --border:      #E5E0E0;
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   22px;
  --shadow:      0 4px 16px rgba(13,1,1,.10);
  --shadow-lg:   0 10px 40px rgba(13,1,1,.14);
  --shadow-xl:   0 20px 60px rgba(13,1,1,.18);
  --shadow-red:  0 8px 28px rgba(196,26,26,.38);
  --font:        'Noto Sans Arabic', sans-serif;
  --transition:  0.25s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font); color: var(--dark); background: var(--white);
  line-height: 1.7; direction: rtl; text-align: right; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section-pad    { padding: 96px 0; }
.section-pad-sm { padding: 72px 0; }

.label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700;
  color: var(--red); background: rgba(196,26,26,.10);
  padding: 5px 12px; border-radius: 100px; margin-bottom: 14px;
}
.section-title { font-size: clamp(1.6rem,3.5vw,2.4rem); font-weight: 900; color: var(--dark); line-height: 1.3; margin-bottom: 16px; }
.section-subtitle { font-size: 1.05rem; color: var(--muted); max-width: 640px; line-height: 1.8; }
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 26px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 700; transition: all var(--transition);
  white-space: nowrap; min-height: 48px; font-family: var(--font);
}
.btn-primary { background: linear-gradient(135deg,var(--red),var(--red-dark)); color: var(--white); box-shadow: var(--shadow-red); }
.btn-primary:hover { background: linear-gradient(135deg,var(--red-dark),var(--red-deep)); box-shadow: 0 12px 36px rgba(196,26,26,.52); transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg,var(--gold),#D97706); color: var(--dark); box-shadow: 0 8px 24px rgba(245,158,11,.35); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-dark { background: #1C0505; color: var(--white); }
.btn-dark:hover { background: #2C0808; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.2); }
.btn-ghost:hover { border-color: var(--red-light); color: var(--red-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-outline:hover { background: var(--red); color: var(--white); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; min-height: 38px; }

/* HEADER */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13,1,1,.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(196,26,26,.15); transition: all var(--transition);
}
#header.scrolled { box-shadow: 0 4px 28px rgba(0,0,0,.45); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.logo-name { font-size: 1rem; font-weight: 900; color: var(--white); }
.logo-name span { color: var(--red-light); }
nav { display: flex; align-items: center; gap: 2px; }
.nav-link { color: rgba(255,255,255,.72); font-size: 0.875rem; font-weight: 600; padding: 8px 12px; border-radius: var(--radius-sm); transition: all var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,.08); }
.header-cta { margin-right: 12px; }
.hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; width: 40px; height: 40px; gap: 5px; background: rgba(255,255,255,.08); border-radius: var(--radius-sm); transition: background var(--transition); }
.hamburger:hover { background: rgba(255,255,255,.15); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; background: var(--dark-mid); border-top: 1px solid rgba(196,26,26,.15); padding: 12px 20px 20px; gap: 4px; }
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { padding: 10px 14px; }
.mobile-nav .btn { margin-top: 8px; width: 100%; justify-content: center; }

/* PAGE HERO */
.page-hero {
  padding: 130px 0 70px; background: var(--dark); position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -150px; left: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(196,26,26,.16) 0%, transparent 70%); border-radius: 50%;
}
.page-hero::after {
  content: ''; position: absolute; bottom: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,.07) 0%, transparent 70%); border-radius: 50%;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.page-hero .label { color: var(--red-light); background: rgba(196,26,26,.14); }
.page-hero-title { font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 900; color: var(--white); line-height: 1.25; margin-bottom: 16px; }
.page-hero-title .hl { background: linear-gradient(135deg,var(--red-light),var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.65); line-height: 1.8; margin-bottom: 28px; }
.hero-wave { position: absolute; bottom: -2px; left: 0; right: 0; }

/* BREADCRUMB */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: rgba(255,255,255,.4); flex-wrap: wrap; margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,.55); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--red-light); }
.breadcrumb i { font-size: 0.6rem; }

/* GUIDE STEPS */
.guide-section { background: var(--white); }
.guide-section:nth-child(even) { background: var(--off-white); }
.guide-steps { display: flex; flex-direction: column; gap: 32px; }
.guide-step { display: flex; gap: 24px; align-items: flex-start; }
.guide-step-num {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,var(--red),var(--gold));
  color: var(--white); font-size: 1.1rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(196,26,26,.35);
}
.guide-step-body { flex: 1; }
.guide-step-title { font-size: 1.05rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.guide-step-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.75; }
.guide-step-desc strong { color: var(--dark); }
.guide-step-desc code {
  background: rgba(196,26,26,.08); color: var(--red-dark);
  padding: 2px 8px; border-radius: 5px; font-family: monospace; font-size: 0.9em;
}
.step-divider { display: flex; align-items: center; gap: 12px; color: rgba(196,26,26,.3); }
.step-divider::before, .step-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* TIP BOX */
.tip-box {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(196,26,26,.06); border: 1px solid rgba(196,26,26,.18);
  border-radius: var(--radius); padding: 18px 20px; margin-top: 16px;
}
.tip-box i { color: var(--red); flex-shrink: 0; margin-top: 2px; }
.tip-box-text { font-size: 0.875rem; color: #475569; line-height: 1.7; }
.tip-box-text strong { color: var(--dark); }

/* INFO GRID */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 20px; }
.info-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px;
  transition: all var(--transition);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--red-light); }
.info-card-icon { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg,var(--red),var(--red-dark)); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; box-shadow: 0 4px 14px rgba(196,26,26,.28); }
.info-card-icon i { color: var(--white); font-size: 1rem; }
.info-card-title { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.info-card-desc  { font-size: 0.84rem; color: var(--muted); line-height: 1.65; }

/* COPY BOX */
.copy-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px;
}
.copy-box-value { flex: 1; font-size: 1rem; font-weight: 700; color: var(--dark); direction: ltr; text-align: left; }
.copy-box-btn {
  flex-shrink: 0; padding: 8px 16px;
  background: var(--red); color: var(--white);
  border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 700;
  transition: all var(--transition); font-family: var(--font);
}
.copy-box-btn:hover { background: var(--red-dark); }
.copy-box-btn.copied { background: #16A34A; }

/* DARK SECTION */
.dark-section { background: var(--dark); position: relative; overflow: hidden; }
.dark-section::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 700px; height: 320px; background: radial-gradient(ellipse,rgba(196,26,26,.12) 0%,transparent 70%); pointer-events: none; }
.dark-section .section-title  { color: var(--white); }
.dark-section .section-subtitle { color: rgba(255,255,255,.52); }
.dark-section .label { color: var(--red-light); background: rgba(196,26,26,.14); }

/* FOOTER */
#footer { background: var(--dark); border-top: 1px solid rgba(196,26,26,.1); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,.38); line-height: 1.75; max-width: 280px; margin-top: 14px; }
.footer-col-title { font-size: 0.78rem; font-weight: 800; color: rgba(255,255,255,.28); margin-bottom: 16px; letter-spacing: 0.05em; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-link { font-size: 0.875rem; color: rgba(255,255,255,.48); transition: color var(--transition); }
.footer-link:hover { color: var(--red-light); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.05); margin-bottom: 28px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-disclaimer { font-size: 0.78rem; color: rgba(255,255,255,.25); line-height: 1.7; max-width: 680px; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,.25); white-space: nowrap; }

.scroll-top { position: fixed; bottom: 28px; left: 28px; width: 46px; height: 46px; background: linear-gradient(135deg,var(--red),var(--gold)); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(196,26,26,.48); opacity: 0; pointer-events: none; transition: all var(--transition); z-index: 999; border: none; cursor: pointer; }
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-3px); }

/* LEGAL */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { font-size: 1.25rem; font-weight: 800; color: var(--dark); margin: 40px 0 12px; }
.legal-content h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin: 24px 0 8px; }
.legal-content p  { font-size: 0.95rem; color: #475569; line-height: 1.85; margin-bottom: 16px; }
.legal-content ul { margin-bottom: 16px; padding-right: 24px; }
.legal-content ul li { font-size: 0.95rem; color: #475569; line-height: 1.85; margin-bottom: 8px; list-style: disc; }
.legal-date { font-size: 0.85rem; color: var(--muted); margin-bottom: 36px; }

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 768px) {
  nav { display: none; } .header-cta { display: none; } .hamburger { display: flex; }
  .section-pad { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .guide-step { gap: 16px; }
  .page-hero { padding: 110px 0 60px; }
}
@media (max-width: 480px) {
  .guide-step-num { width: 38px; height: 38px; font-size: 0.9rem; }
  .info-grid { grid-template-columns: 1fr; }
}
