@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&family=Lalezar&family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

* {
  font-family: "Cairo", sans-serif;
}
:root{
  --bg-1: #0f1724;
  --bg-2: #081025;
  --accent: #2f9fff;
  --accent-2: #9b5cff;
  --glass: rgba(255,255,255,0.05);
  --muted: rgba(255,255,255,0.75);
  --card-radius: 14px;
  --card-shadow: 0 10px 40px rgba(3,10,30,0.6);
  --max-width: 980px;
  font-family: "Inter", system-ui, Arial, sans-serif;
  color-scheme: dark;
}

/* منع النسخ والتحديد في الموقع كامل */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* استثناء حقول الإدخال */
input, textarea {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* صفحة كاملة */
*{box-sizing:border-box}
html,body{
  height:100%;
  margin:0;
  background:
    radial-gradient(900px 600px at 10% 10%, rgba(47,159,255,0.06), transparent 12%),
    radial-gradient(700px 450px at 90% 90%, rgba(155,92,255,0.05), transparent 12%),
    linear-gradient(180deg,var(--bg-1),var(--bg-2));
  color:#fff;
  direction:rtl;
  -webkit-font-smoothing:antialiased;
  overflow-x: hidden;
}

.page{
  min-height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:36px 20px;
  gap:22px;
  width: 100%;
  position: relative;
}

/* فاصل مرئي */
.separator {
    width: 100%;
    max-width: var(--max-width);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 20px 0;
}

/* ⬅️ القائمة الجانبية (Sidebar) ⬅️ */
#sidebar {
  position: fixed;
  top: 0;
  right: -250px; 
  width: 250px;
  height: 100%;
  background-color: var(--bg-1);
  border-left: 1px solid var(--glass);
  box-shadow: -4px 0 10px rgba(0,0,0,0.5);
  transition: right 0.3s ease;
  padding: 20px;
  z-index: 1000;
}
#sidebar.open {
  right: 0; 
}

/* طبقة التعتيم خلف القائمة */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}
.overlay.active {
  display: block;
}

.sidebar-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  position: absolute;
  left: 10px;
  top: 10px;
  cursor: pointer;
}
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 50px;
}
.sidebar-link {
  padding: 12px;
  text-decoration: none;
  background: rgba(255,255,255,0.05);
  border-radius: var(--card-radius);
  color: #fff;
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--glass);
  transition: background 0.2s;
}
.sidebar-link:hover {
  background: var(--glass);
}

/* زر القائمة العلوية */
.top-bar {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.sidebar-toggle-btn {
  width: 50px;
  height: 50px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 12px;
  border: none;
  cursor: pointer;
}

.sidebar-toggle-btn .bar {
  width: 70%;
  height: 6px;
  background: #041225;
  border-radius: 3px;
  margin-bottom: 2px; /* 👈 المسافة بين الشخطات */
}

.sidebar-toggle-btn .bar:last-child {
  margin-bottom: 0;
}


/* المنطقة اللي فيها البطاقات */
.cards{
  width:100%;
  max-width:var(--max-width);
  display:flex;
  flex-direction:column;
  gap:20px;
  align-items:center;
}

/* 🏆 البطاقة (CARD) - قواعد تثبيت الحجم 🏆 */
.card{
  width:100%;
  max-width: 720px;
  aspect-ratio: 16 / 9; 
  padding: 0; 
  display:flex;
  justify-content:center;
  align-items:center;
  border-radius:var(--card-radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: var(--card-shadow);
  transition: transform .18s cubic-bezier(.2,.9,.3,1), box-shadow .18s ease;
  overflow: hidden; 
  position: relative; 
}

/* نصوص وصف البث */
.stream-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 10px;
}

/* محتوى البطاقة الداخلي */
.card-inner{
  width:100%;
  max-width: clamp(320px, 60vw, 740px);
  display:flex;
  flex-direction:column;
  gap:14px;
  align-items:center;
  text-align:center;
  padding:18px;
  z-index: 2; 
  position: relative;
}

/* زر المشاهدة والقواعد العامة للأزرار */
.btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:12px;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color:#041225;
  border:none;
  text-decoration:none;
  box-shadow: 0 8px 28px rgba(47,159,255,0.12);
  transition: transform .12s cubic-bezier(.2,.9,.3,1), box-shadow .12s ease;
  -webkit-tap-highlight-color: transparent;
  user-select:none;
}
.btn:hover{ transform: translateY(-2px); box-shadow: 0 12px 34px rgba(47,159,255,0.18); }
.btn:active{ transform: scale(0.98); box-shadow: 0 6px 18px rgba(47,159,255,0.12); }
.btn:focus, .btn:focus-visible, button:focus, a:focus { outline:none !important; box-shadow:none !important; border:none !important; }
.btn::-moz-focus-inner{ border:0; }

/* حاوية الفيديو */
.video-holder {
  width: 100%;
  height: 100%; 
  position: absolute; 
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* عنصر الفيديو نفسه */
.stream-video {
  width: 100%;
  height: 100%;
  border-radius: var(--card-radius);
  object-fit: cover; 
}

/* 🖼️ معرض الصور المتحرك 🖼️ (القواعد الجديدة) */
.image-gallery-section {
    width: 100%;
    max-width: var(--max-width);
    text-align: center;
    margin-top: 40px;
}
.gallery-container {
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    border-radius: var(--card-radius);
    margin-top: 20px;
    box-shadow: var(--card-shadow);
    height: 500px;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}
.gallery-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-slide {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: auto;
    height: auto;
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 📧 نموذج إرسال الصورة 📧 */
.add-image-form-section {
    width: 100%;
    max-width: 720px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.show-form-btn {
    margin-bottom: 20px;
}

.hidden-form {
    width: 100%;
    display: none;
}
.hidden-form.visible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* إصلاح كامل للنموذج - إزالة aspect-ratio */
.image-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--card-shadow);
    border-radius: var(--card-radius);
    width: 100%;
    min-height: auto;
    position: relative;
    overflow: visible;
}

.image-form h4 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: var(--accent);
    text-align: center;
}
.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    color: var(--muted);
    font-weight: 600;
}
.input-group input[type="text"], .input-group input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid var(--glass);
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
}
.input-group input[type="text"]:focus, .input-group input[type="file"]:focus {
    border-color: var(--accent);
    background: rgba(0,0,0,0.35);
    outline: none;
}

/* إصلاح زر الإرسال نهائياً */
.submit-btn {
    width: 100%;
    text-align: center;
    padding: 16px 20px;
    font-size: 16px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #041225;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    margin-top: 10px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(47, 159, 255, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-message {
    font-weight: 600;
    margin: 10px 0 0 0;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
}

/* نافذة تأكيد الإرسال */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.modal-content {
    background: var(--bg-1);
    padding: 30px;
    border-radius: var(--card-radius);
    text-align: center;
    max-width: 400px;
    width: 90%;
    border: 1px solid var(--glass);
    box-shadow: var(--card-shadow);
}
.modal-content h3 {
    color: #4CAF50;
    margin-bottom: 15px;
}
.modal-ok-btn {
    margin-top: 20px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #041225;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

/* تحذيرات منع النسخ */
.copy-warning {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.warning-content {
    text-align: center;
}

.warning-content p {
    margin: 0;
    font-size: 14px;
}

/* باقي القواعد... */
.small-note{color:var(--muted);font-size:13px;text-align:center;max-width:var(--max-width);}
.card:hover{ transform: translateY(-4px); }

/* تحسينات الاستجابة لجميع الشاشات */
@media (max-width: 768px) {
    .page {
        padding: 20px 15px;
        gap: 16px;
    }
    
    .card {
        aspect-ratio: 16 / 9;
        max-width: 100%;
    }
    
    .card-inner {
        padding: 15px;
    }
    
    .stream-title {
        font-size: 14px;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .gallery-container {
        max-width: 100%;
        height: 400px;
    }
    
    .image-form {
        padding: 25px 20px;
        gap: 15px;
    }
    
    .submit-btn {
        padding: 15px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .page {
        padding: 15px 10px;
        gap: 12px;
    }
    
    .card {
        aspect-ratio: 16 / 9;
    }
    
    .card-inner {
        padding: 12px;
    }
    
    .stream-title {
        font-size: 13px;
    }
    
    .btn {
        padding: 11px 14px;
        font-size: 13px;
    }
    
    .gallery-container {
        height: 300px;
    }
    
    .image-form {
        padding: 20px 15px;
        gap: 12px;
    }
    
    .image-form h4 {
        font-size: 18px;
    }
    
    .input-group label {
        font-size: 14px;
    }
    
    .input-group input[type="text"], 
    .input-group input[type="file"] {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 14px 16px;
        font-size: 14px;
    }
}

@media (min-width: 1200px) {
    .page {
        padding: 40px 30px;
    }
    
    .cards {
        max-width: 1100px;
    }
    
    .card {
        max-width: 900px;
    }
    
    .gallery-container {
        height: 550px;
    }
}

@media (max-width: 360px) {
    .page {
        padding: 12px 8px;
    }
    
    .card-inner {
        padding: 10px;
    }
    
    .btn {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .gallery-container {
        height: 250px;
    }
    
    .image-form {
        padding: 15px 12px;
    }
    
    .submit-btn {
        padding: 12px 14px;
        font-size: 13px;
    }
}

/* تحسينات إضافية للتأكد من ظهور الزر */
#imageUploadFormContainer {
    position: relative;
    z-index: 100;
}

.image-form * {
    position: relative;
    z-index: 5;
}

/* منع التكبير والتصغير */
html, body {
  touch-action: pan-x pan-y;
  -webkit-text-size-adjust: 100%;
}
/* قسم المطورين - التصميم الجديد بدون خلفية */
.developers-section {
  width: 100%;
  max-width: var(--max-width);
  text-align: center;
  margin-top: 40px;
}

.developers-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  margin-top: 30px;
}

.developer-card {
  display: flex;
  align-items: center;
  gap: 25px;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.developer-card:hover {
  transform: translateY(-5px);
}

.developer-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--accent);
  flex-shrink: 0;
  box-shadow: 0 15px 40px rgba(47, 159, 255, 0.3);
}

.developer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.developer-info {
  text-align: right;
}

.developer-info h4 {
  margin: 0;
  color: var(--accent);
  font-size: 32px;
  font-weight: 700;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* تحسينات للجوال */
@media (max-width: 768px) {
  .developers-container {
    gap: 40px;
  }
  
  .developer-card {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .developer-avatar {
    width: 160px;
    height: 160px;
  }
  
  .developer-info {
    text-align: center;
  }
  
  .developer-info h4 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .developers-container {
    gap: 35px;
  }
  
  .developer-avatar {
    width: 140px;
    height: 140px;
    border-width: 4px;
  }
  
  .developer-info h4 {
    font-size: 26px;
  }
}

@media (max-width: 360px) {
  .developer-avatar {
    width: 130px;
    height: 130px;
  }
  
  .developer-info h4 {
    font-size: 24px;
  }
}


/* خلفيات البطاقات مع الصور والتأثيرات */
.card[data-stream="https://stream.alkafeel.net/live/alkafeel/playlist.m3u8"] {
  background: 
    linear-gradient(
      rgba(0, 52, 97, 0.555),
      rgba(26, 0, 68, 0.555)
    ),
    url('image/11.jpg') center/cover no-repeat;
}

.card[data-stream="https://live.aljawadain.org/live/broadcast/playlist.m3u8"] {
  background: 
    linear-gradient(
      rgba(0, 52, 97, 0.555),
      rgba(26, 0, 68, 0.555)
    ),
    url('image/11.jpg') center/cover no-repeat;
}

/* تحسين ظهور النص على الخلفية */
.card-inner {
  background: rgba(15, 23, 36, 0.7);
  backdrop-filter: blur(10px);
  border-radius: var(--card-radius);
  margin: 20px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stream-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  margin-bottom: 15px;
}


/* 🖼️ تنسيق أسماء الصور في المعرض 🖼️ */
.image-name-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    left: 20px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* تحسينات للجوال */
@media (max-width: 768px) {
    .image-name-overlay {
        font-size: 16px;
        padding: 10px 15px;
        bottom: 15px;
        right: 15px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .image-name-overlay {
        font-size: 14px;
        padding: 8px 12px;
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
}

/* تحسينات تنسيق صفحة الادعية للجوال */
.dua-content {
    text-align: center;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding: 10px;
}

.dua-text {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: var(--card-radius);
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
    line-height: 1.8;
    max-height: 300px;
    overflow-y: auto;
}

.dua-text p {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--muted);
    word-wrap: break-word;
}

.dua-text p:last-child {
    margin-bottom: 0;
}

.back-btn {
    background: linear-gradient(90deg, #ff6b6b, #ee5a24);
    margin-top: 15px;
    width: 100%;
    max-width: 200px;
    position: sticky;
    bottom: 10px;
}

.back-btn:hover {
    background: linear-gradient(90deg, #ff5252, #e74c3c);
    transform: translateY(-2px);
    box-shadow: 0 12px 34px rgba(255, 82, 82, 0.18);
}

/* تحسينات خاصة للجوال */
@media (max-width: 768px) {
    .dua-content {
        padding: 5px;
        max-height: 100%;
    }
    
    .dua-text {
        padding: 12px;
        max-height: 250px;
        margin-bottom: 10px;
        font-size: 14px;
    }
    
    .dua-text p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .back-btn {
        padding: 14px 20px;
        font-size: 15px;
        max-width: 150px;
        position: relative;
        bottom: auto;
    }
    
    .card-inner {
        padding: 15px;
        margin: 15px;
    }
}

@media (max-width: 480px) {
    .dua-content {
        padding: 5px;
    }
    
    .dua-text {
        padding: 10px;
        max-height: 200px;
        margin-bottom: 8px;
    }
    
    .dua-text p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 10px;
    }
    
    .back-btn {
        padding: 12px 16px;
        font-size: 14px;
        max-width: 120px;
        margin-top: 10px;
    }
    
    .card-inner {
        padding: 12px;
        margin: 10px;
    }
}

@media (max-width: 360px) {
    .dua-text {
        max-height: 180px;
        padding: 8px;
    }
    
    .dua-text p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .back-btn {
        padding: 10px 14px;
        font-size: 13px;
        max-width: 110px;
    }
    
    .card-inner {
        padding: 10px;
        margin: 8px;
    }
}

/* تحسين ظهور النص في البطاقات */
.card-inner {
    background: rgba(15, 23, 36, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--card-radius);
    margin: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* تحسينات للعرض العمودي على الجوال */
@media (max-height: 700px) {
    .dua-text {
        max-height: 80px;
    }
    
    .card-inner {
        padding: 15px;
        margin: 15px;
    }
}

@media (max-height: 600px) {
    .dua-text {
        max-height: 150px;
    }
    
    .card-inner {
        padding: 12px;
        margin: 12px;
    }
}


/* تحسينات خاصة لبطاقات الأدعية */
.dua-card .card-inner {
    background: rgba(15, 23, 36, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    margin: 15px;
    padding: 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.dua-card {
    background: linear-gradient(135deg, rgba(47, 159, 255, 0.15), rgba(155, 92, 255, 0.15));
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* تحسينات للعرض على جميع الشاشات */
@media (max-width: 768px) {
    .dua-card .card-inner {
        padding: 20px;
        margin: 12px;
        width: calc(100% - 24px);
        height: calc(100% - 24px);
        border-radius: 18px;
    }
    
    .dua-text-container {
        padding: 15px;
        max-height: 450px;
        border-radius: 16px;
    }
    
    .dua-text p {
        font-size: 19px;
        line-height: 1.9;
    }
    
    .back-btn {
        max-width: 220px;
        padding: 16px 22px;
        font-size: 19px;
    }
}

@media (max-width: 480px) {
    .dua-card .card-inner {
        padding: 18px;
        margin: 10px;
        width: calc(100% - 20px);
        height: calc(100% - 20px);
        border-radius: 16px;
    }
    
    .dua-text-container {
        padding: 12px;
        max-height: 500px;
        border-radius: 14px;
    }
    
    .dua-text p {
        font-size: 18px;
        line-height: 1.8;
    }
    
    .back-btn {
        max-width: 200px;
        padding: 15px 20px;
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .dua-card .card-inner {
        padding: 15px;
        margin: 8px;
        width: calc(100% - 16px);
        height: calc(100% - 16px);
        border-radius: 14px;
    }
    
    .dua-text p {
        font-size: 17px;
    }
    
    .back-btn {
        max-width: 180px;
        font-size: 17px;
    }
}

/* تحسينات للعرض العمودي على الجوال */
@media (max-height: 700px) {
    .dua-text-container {
        max-height: 350px;
    }
}

@media (max-height: 600px) {
    .dua-text-container {
        max-height: 300px;
    }
}

@media (max-height: 500px) {
    .dua-text-container {
        max-height: 250px;
    }
}

/* تحسينات للعرض الأفقي */
@media (max-width: 768px) and (orientation: landscape) {
    .dua-card .card-inner {
        padding: 15px;
    }
    
    .dua-text-container {
        max-height: 200px;
    }
    
    .dua-text p {
        font-size: 16px;
        line-height: 1.6;
    }
}




/* =================================================== */
/* ⬅️ أنماط صفحة الدعاء لزينب (Zeinab Dua Page Styles) ⬅️ */
/* =================================================== */
.zeinab-page {
    /* استخدام نفس نمط الخلفية والخط الأساسي للموقع */
    background:
        radial-gradient(900px 600px at 10% 10%, rgba(47,159,255,0.06), transparent 12%),
        radial-gradient(700px 450px at 90% 90%, rgba(155,92,255,0.05), transparent 12%),
        linear-gradient(180deg,var(--bg-1),var(--bg-2));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 20px;
    gap: 30px;
    width: 100%;
}

.zeinab-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    border-radius: var(--card-radius);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.03);
    box-shadow: var(--card-shadow);
    text-align: center;
}

/* نمط دائرة الصورة والإطار */
.developer-image-container {
    width: 200px; /* حجم الإطار الخارجي */
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); /* لون الإطار */
    padding: 4px; /* سمك الإطار */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 0 6px rgba(47,159,255,0.2), 0 0 20px rgba(47,159,255,0.5);
}

.developer-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    /* لضمان أن الصورة أصغر بقليل من الإطار (تحويل مقياس بنسبة 96%) */
    transform: scale(0.96); 
    border: 2px solid var(--bg-1);
}

/* نمط الزر الخاص الذي لا يجب أن يحتوي على تأثير التحويل (Hover/Active) */
.no-transform-btn {
    /* إلغاء تأثير الانتقال على التحويم والضغط */
    transition: box-shadow .12s ease !important;
    transform: none !important;
    user-select: none;
    -webkit-user-select: none;
}
.no-transform-btn:hover {
    transform: none !important;
}
.no-transform-btn:active {
    transform: none !important;
}

/* =================================================== */
/* ⬅️ أنماط زر الرجوع (Home Button Styles) ⬅️ */
/* =================================================== */
/* هذا النمط يغطي التأثيرات البصرية الأخرى */
.zeinab-page .home-btn {
    /* تم نقل الحجم الأساسي إلى الأنماط المضمنة (Inline Styles) في HTML */
    
    font-weight: 800;  
    max-width: 350px;  
    width: 100%;
    margin-top: 30px; 
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(155,92,255,0.6); 
    
    /* تأكيد الحجم باستخدام !important كخطة احتياطية */
    padding: 22px 45px !important; 
    font-size: 28px !important; 
    
    font-weight: 800;  
    max-width: 350px;  
    width: 100%;
    margin-top: 30px; 
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(155,92,255,0.6); 
}

/* التعديل على أنماط القلوب المتحركة لزيادة الوضوح (تم تنفيذها مسبقاً) */
.heart-animation {
    position: fixed;
    bottom: -50px; 
    transform: translateX(-50%); 
    font-size: 35px;
    opacity: 0;
    pointer-events: none; 
    animation: riseAndFade 2s ease-out forwards;
    z-index: 9999;
    text-shadow: 0 0 8px rgba(0,0,0,0.8); 
}

@keyframes riseAndFade {
    0% {
        bottom: 0;
        opacity: 9; 
        transform: translateX(-50%) scale(1);
    }
    10% {
        transform: translateX(-50%) scale(1.3); 
    }
    100% {
        bottom: 100%; 
        opacity: 0;
        transform: translateX(-50%) scale(1);
    }
}
