/* ---------------------------- 1. عام ---------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #f0f2f5, #e6eafc);
  color: #333;
  line-height: 1.6;
  transition: background 0.5s;
  overflow-x: hidden;
}

/* ---------------------------- 2. الهيدر ---------------------------- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  padding: 18px 25px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  z-index: 200;
  font-size: 22px;
  font-weight: 600;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  transition: 0.3s;
}
header:hover {
  box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

/* ---------------------------- 3. الفوتر ---------------------------- */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #fff;
  padding: 12px 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.07);
  z-index: 200;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
footer a {
  font-size: 17px;
  font-weight: 500;
  color: #6200ea;
  transition: 0.3s;
}
footer a:hover {
  color: #3700b3;
  transform: scale(1.1);
}

/* ---------------------------- 4. الحاوية ---------------------------- */
.container {
  padding: 100px 25px 80px;
  max-width: 1300px;
  margin: auto;
}

/* ---------------------------- 5. البطاقات ---------------------------- */
.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 20px;
  margin: 15px 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: 0.4s;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* ---------------------------- 6. الأزرار ---------------------------- */
button {
  background: linear-gradient(135deg, #6200ea, #3700b3);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  transition: 0.35s;
}
button:hover {
  background: linear-gradient(135deg, #3700b3, #6200ea);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}
button:active {
  transform: scale(0.97);
  box-shadow: 0 4px 12px rgba(0,0,0,0.22);
}

/* ---------------------------- 7. النماذج ---------------------------- */
input, select {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 16px;
  transition: 0.3s;
}
input:focus, select:focus {
  border-color: #6200ea;
  box-shadow: 0 0 10px rgba(98,0,234,0.25);
  outline: none;
}

/* ---------------------------- 8. طرق الدفع ---------------------------- */
.pay-methods {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.pay-methods label {
  background: #f8f8f8;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
.pay-methods input[type="checkbox"] {
  margin-right: 8px;
}
.pay-methods label:hover {
  background: #e2d7ff;
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

/* ---------------------------- 9. النصوص ---------------------------- */
h2 {
  margin-bottom: 18px;
  font-weight: 600;
  color: #222;
}
p {
  font-size: 16px;
  color: #555;
}

/* ---------------------------- 10. تفاعلات عند الضغط ---------------------------- */
.card:active, button:active {
  transform: scale(0.97);
  box-shadow: 0 3px 12px rgba(0,0,0,0.22);
}

/* ---------------------------- 11. تأثيرات عامة ---------------------------- */
.hidden { display: none; }
.shadow-light { box-shadow: 0 2px 6px rgba(0,0,0,0.08); }

/* ---------------------------- 12. التدرجات للبطاقات ---------------------------- */
.card.gradient {
  background: linear-gradient(135deg, #ffffff, #f3f3ff);
}

/* ---------------------------- 13. خطوط العناوين ---------------------------- */
h2.gradient {
  background: linear-gradient(to right, #6200ea, #3700b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------------------------- 14. تأثير hover على البطاقات ---------------------------- */
.card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* ---------------------------- 15. زر مع أيقونة ---------------------------- */
button.icon-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------------------------- 16. الظلال للزر ---------------------------- */
button.shadow-btn {
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

/* ---------------------------- 17. تأثير ripple عند الضغط ---------------------------- */
button:active::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  background: rgba(255,255,255,0.15);
  border-radius: inherit;
}

/* ---------------------------- 18. البطاقات القابلة للسحب ---------------------------- */
.card.draggable {
  cursor: grab;
}

/* ---------------------------- 19. تباين النصوص ---------------------------- */
.card p, .card span {
  color: #444;
}

/* ---------------------------- 20. الحواف المدورة ---------------------------- */
.card, button, input, select {
  border-radius: 16px;
}

/* ---------------------------- 21. تدرج الخلفية ---------------------------- */
body.gradient-bg {
  background: linear-gradient(135deg, #e0d7ff, #f0f2f5);
}

/* ---------------------------- 22. قائمة جانبية ---------------------------- */
.sidebar {
  width: 250px;
  background: #fff;
  height: 100vh;
  position: fixed;
  left: -250px;
  top: 0;
  transition: 0.4s;
  box-shadow: 4px 0 15px rgba(0,0,0,0.1);
}
.sidebar.active { left: 0; }

/* ---------------------------- 23. شريط أسفل متحرك ---------------------------- */
.bottom-bar {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(90deg,#6200ea,#3700b3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
}

/* ---------------------------- 24. التأثيرات البصرية عند التمرير ---------------------------- */
.scroll-anim {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}
.scroll-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------- 25. متجاوب كامل ---------------------------- */
@media (max-width: 992px) {
  .container { padding: 120px 20px 100px; }
  footer { flex-direction: column; gap: 15px; }
  footer a { font-size: 18px; }
  .sidebar { width: 200px; }
}
@media (max-width: 600px) {
  header { font-size: 20px; padding: 15px 18px; }
  button { width: 100%; padding: 14px 0; }
  .card { padding: 18px 15px; }
  .bottom-bar { height: 70px; }
}