/* =========================================
   إعدادات عامة (الخطوط والألوان الأساسية)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif; 
}

body {
  background-color: #050505; 
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  direction: rtl;
}

/* =========================================
   الصندوق الرئيسي (Wrapper)
   ========================================= */
.wrapper {
  position: relative; 
  overflow: hidden; 
  z-index: 2;
  width: 90%;
  max-width: 450px;
  padding: 40px 30px;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 0 30px rgba(237, 201, 103, 0.15); /* إضاءة باللون الجديد */
  border: 1px solid rgba(237, 201, 103, 0.2); /* إطار باللون الجديد */
  background-color: transparent; 
  margin: 20px auto;
}

.wrapper h1 {
  color: #edc967; /* اللون الجديد */
  font-size: 1.8rem;
  margin-bottom: 5px;
  font-weight: 700;
}

/* تقريب "العاب عمار" و"حسكل كروب" من بعض */
.wrapper h1:first-of-type {
  margin-bottom: -5px;
}

.wrapper p {
  color: #ffffff; /* أبيض */
  font-weight: 700; /* بولد */
  font-size: 0.95rem;
  margin-bottom: 2px; /* تقريب الجملتين من بعض */
}

.wrapper p:last-of-type {
  margin-bottom: 25px;
  font-size: 0.95rem;
  color: #ffffff; /* أبيض */
  font-weight: 700; /* بولد */
}

/* =========================================
   شبكة الأزرار (Social Grid)
   ========================================= */
.social-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.first-row, .second-row {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 18px;
  background: rgba(20, 20, 20, 0.6); 
  border: 1px solid rgba(237, 201, 103, 0.25); /* إطار باللون الجديد */
  color: #edc967; /* اللون الجديد */
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.icon i {
  font-size: 26px;
  margin-bottom: 8px;
}

.icon span {
  font-size: 12px;
  font-weight: 600;
}

.icon:hover {
  transform: translateY(-5px);
  background: rgba(237, 201, 103, 0.1); /* إضاءة خلفية باللون الجديد */
  box-shadow: 0 8px 20px rgba(237, 201, 103, 0.2); /* ظل باللون الجديد */
  border-color: #edc967; 
}

/* =========================================
   نافذة الواتساب المنبثقة (Modal)
   ========================================= */
.modal {
  display: none; 
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh; 
  background: rgba(0, 0, 0, 0.7); 
  z-index: 9999; 
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px); 
}

.modal-content {
  background: rgba(15, 15, 15, 0.85); 
  backdrop-filter: blur(15px); 
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(237, 201, 103, 0.3); /* إطار باللون الجديد */
  border-radius: 20px;
  padding: 35px 25px;
  width: 90%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8); 
  position: relative;
  animation: popIn 0.3s ease-out; 
}

.modal-content h3 {
  color: #edc967; /* اللون الجديد */
  margin-bottom: 25px;
  font-size: 1.3rem;
  font-weight: 700;
}

.option-box {
  background: rgba(255, 255, 255, 0.03); 
  border: 1px solid rgba(237, 201, 103, 0.2); /* إطار باللون الجديد */
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: #ffffff; 
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.option-box:hover {
  background: rgba(237, 201, 103, 0.12); /* إضاءة باللون الجديد */
  border-color: #edc967; /* اللون الجديد */
  transform: translateY(-2px); 
}

.option-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.close-x {
  position: absolute;
  top: 15px;
  left: 20px; 
  color: #888;
  font-size: 24px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
  line-height: 1;
}

.close-x:hover {
  color: #ff4444; 
  transform: scale(1.1);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
