/* ===== 🌈 تنسيق عام ===== */
body.single-page {
  margin: 0;
  font-family: "Cairo", "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #0a0a1a, #001b44, #002f6c);
  background-attachment: fixed;
  color: #f0f0f0;
  line-height: 1.9;
  font-weight: 700;
  overflow-x: hidden;
}

/* ======= رأس الصفحة ======= */
header.glass-header {
  background: linear-gradient(90deg, #002f6c, #004aad, #ff9800);
  padding: 6px 14px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
  color: #fff;
  border-bottom: 2px solid rgba(255,255,255,0.2);
}

.site-title-top {
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* شعار */
.logo img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid #fff;
  background: #fff;
  object-fit: contain;
}

/* روابط التنقل */
.nav-buttons {
  display: flex;
  gap: 15px;
}

.nav-buttons a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
  font-size: 15px;
}

.nav-buttons a:hover {
  color: #ffcc70;
  transform: scale(1.08);
}

/* ===== 🎬 الفيديو ===== */
.video-section {
  display: flex;
  justify-content: center;
  margin: 25px auto;
  padding: 15px;
  background: #fff;
  border: 3px solid #004aad;
  border-radius: 18px;
  max-width: 900px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.video-section video {
  width: 100%;
  max-width: 700px;
  border-radius: 10px;
}

/* ===== 📘 غلاف الكتاب ===== */
.book-cover-container {
  text-align: center;
  margin: 25px 0;
}

.book-cover {
  width: 230px;
  height: 320px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 50, 200, 0.3);
}

/* ===== 🧊 صناديق المحتوى ===== */
.book-section {
  max-width: 950px;
  margin: auto;
  padding: 25px;
}

.glass-box {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 22px;
  margin: 22px 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.glass-box h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  font-weight: 900;
  color: #ffcc70;
}

.glass-box p {
  font-size: 1.1rem;
  line-height: 1.9;
  font-weight: 700;
  color: #fff;
}

/* ===== 🎨 ألوان مميزة للصناديق ===== */
.orange-box {
  background: rgba(255, 165, 0, 0.1);
  border-left: 4px solid #ff9800;
}
.purple-box {
  background: rgba(0, 47, 108, 0.1);
  border-left: 4px solid #004aad;
}

/* ===== 💳 صندوق الدفع ===== */
.payment-box {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #ffcc70;
  border-radius: 16px;
  padding: 25px;
  margin: 35px auto;
  max-width: 700px;
  text-align: center;
  font-weight: 900;
  box-shadow: 0 8px 25px rgba(0, 47, 108, 0.3);
}

.payment-box h3 {
  color: #ffcc70;
  margin-bottom: 18px;
  font-size: 22px;
}

/* ===== أزرار الدفع ===== */
.buy-buttons, .pay-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  list-style: none;
  padding: 0;
}

.buy-buttons a, .pay-buttons button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 30px;
  padding: 10px 20px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  transition: 0.3s;
  font-size: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.buy-buttons a.orange { background: linear-gradient(90deg, #ff9800, #ffb74d); }
.buy-buttons a.green { background: linear-gradient(90deg, #25D366, #57e389); }

.pay-buttons button img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.pay-buttons button {
  background: linear-gradient(90deg, #002f6c, #004aad);
  color: #fff;
}

.pay-buttons button:hover {
  transform: scale(1.08);
  background: linear-gradient(90deg, #ff9800, #ffb74d);
}

/* ===== 🌐 أزرار مواقع التواصل ===== */
.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 40px 0 20px;
}

.social-links a {
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}

.social-links a.facebook { background: linear-gradient(90deg, #1877f2, #4b94ff); }
.social-links a.whatsapp { background: linear-gradient(90deg, #25D366, #57e389); }
.social-links a.github { background: linear-gradient(90deg, #333, #555); }
.social-links a.paypal { background: linear-gradient(90deg, #003087, #009cde); }

.social-links a:hover {
  transform: scale(1.08);
}

/* ===== 🔗 أزرار الشرح والروابط ===== */
.guide-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 35px auto;
  text-align: center;
}

.guide-buttons a {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 900;
  text-decoration: none;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  transition: 0.3s ease;
}

.guide-buttons a.white {
  background: linear-gradient(90deg, #ffffff, #e0e0e0);
  color: #222;
  border: 2px solid #fff;
}

.guide-buttons a.orange {
  background: linear-gradient(90deg, #ff9800, #ffb74d);
}

.guide-buttons a.green {
  background: linear-gradient(90deg, #25D366, #57e389);
}

.guide-buttons a:hover {
  transform: scale(1.08);
  opacity: 0.9;
}

/* ===== 📤 زر رفع الملف (بنفسجي) ===== */
.upload-button {
  background: linear-gradient(90deg, #6a00ff, #b266ff);
  color: #fff;
  font-weight: 800;
  border: none;
  border-radius: 30px;
  padding: 12px 25px;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.upload-button:hover {
  transform: scale(1.08);
  background: linear-gradient(90deg, #7b2fff, #c17dff);
}

/* ===== من نحن ===== */
.about-me {
  text-align: center;
  margin-top: 40px;
}

.about-me h3 {
  font-size: 22px;
  color: #ffcc00;
  margin-bottom: 15px;
}

.about-me p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #eee;
}

.contact-image img {
  width: 150px;
  height: 150px;
  border-radius: 10px; /* مربع بدل الدائري */
  object-fit: cover;
  margin-top: 10px;
}

/* تجاوب مع الموبايل */
@media screen and (max-width: 768px) {
  header.glass-header { padding: 6px 12px; }
  .site-title-top { font-size: 18px; }
  .logo img { width: 34px; height: 34px; }
  .glass-box { padding: 18px; }
  .book-cover { width: 200px; height: 280px; }
  .buy-buttons a, .pay-buttons button { padding: 9px 16px; font-size: 14px; }
  .upload-button { width: 90%; text-align: center; }
}
