/* ============================================================================
   التخطيط العام، البار العلوي الطافي، الهيرو، القائمة الجانبية، والفوتر
   ============================================================================ */

.app-wrapper {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 14px 14px 36px;
  position: relative;
  z-index: 1;
}

/* ----------------------------------------------------------------------------
   1. البار العلوي الطافي (Floating Pill Navbar)
   خلفية بنفسجية ملكية (#4A2E76)، حواف دائرية 30px
   اليمين = زر القائمة (3 شخطات)، الوسط = شارة الدوام، اليسار = اللوغو الأفقي الأبيض
   ---------------------------------------------------------------------------- */
.floating-navbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(-140%);
  width: calc(100% - 24px);
  max-width: calc(var(--container-max-width) - 16px);
  background: var(--royal-purple);
  border: 1.5px solid rgba(232, 160, 63, 0.55);
  border-radius: var(--pill-navbar-radius);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 900;
  box-shadow: 0 12px 28px rgba(45, 22, 82, 0.35), 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.floating-navbar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.floating-navbar.static-sticky {
  position: sticky;
  top: 12px;
  left: auto;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  margin: 12px auto 0;
}

/* زر القائمة (3 شخطات) */
.menu-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 212, 138, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.menu-toggle-btn.on-light {
  background: var(--royal-purple);
  border-color: rgba(232, 160, 63, 0.55);
  box-shadow: 0 6px 14px rgba(74, 46, 118, 0.22);
}

.menu-toggle-btn:hover,
.menu-toggle-btn:active {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.menu-toggle-btn span {
  display: block;
  width: 19px;
  height: 2.3px;
  background: var(--royal-gold-light);
  border-radius: 2px;
}

.hero-top-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.top-services-link {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--royal-purple);
  background: #FFFFFF;
  border: 1.5px solid rgba(74, 46, 118, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(74, 46, 118, 0.08);
  transition: var(--transition-smooth);
}

.top-services-link:hover {
  background: var(--royal-purple);
  color: #FFFFFF;
  border-color: var(--royal-purple);
}

/* شارة حالة الدوام وسط البار الطافي */
.navbar-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  background: rgba(20, 10, 38, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

/* الشعار الأفقي الأبيض في يسار البار الطافي */
.navbar-logo-horiz {
  display: flex;
  align-items: center;
  height: 34px;
  flex-shrink: 0;
}

.navbar-logo-horiz img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

/* ----------------------------------------------------------------------------
   2. قسم الهيرو والخلفية المزخرفة بالتيجان الملكية + الشعار الرسمي العمودي
   ---------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  text-align: center;
  padding: 8px 6px 14px;
  overflow: hidden;
}

.crowns-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.crown-deco {
  position: absolute;
  width: 38px;
  height: auto;
  opacity: 0.14;
  animation: floatCrown 6s ease-in-out infinite alternate;
}

.crown-deco.c1 { top: 8px; right: 9%; transform: rotate(12deg); }
.crown-deco.c2 { top: 58px; right: 2%; transform: rotate(-10deg); animation-delay: 1s; width: 32px; }
.crown-deco.c3 { top: 112px; right: 14%; transform: rotate(7deg); animation-delay: 2s; width: 34px; }
.crown-deco.c4 { top: 10px; left: 9%; transform: rotate(-12deg); animation-delay: 0.6s; }
.crown-deco.c5 { top: 60px; left: 2%; transform: rotate(11deg); animation-delay: 1.5s; width: 32px; }
.crown-deco.c6 { top: 114px; left: 14%; transform: rotate(-7deg); animation-delay: 2.3s; width: 34px; }

@keyframes floatCrown {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-5px) scale(1.05); }
}

.main-logo-wrapper {
  position: relative;
  z-index: 1;
  width: 158px;
  height: 158px;
  margin: 0 auto 10px;
  background: #FFFFFF;
  border-radius: 50%;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid var(--royal-gold);
  box-shadow: 0 12px 30px rgba(74, 46, 118, 0.16), 0 0 0 6px rgba(232, 160, 63, 0.12);
  transition: transform 0.35s ease;
}

.main-logo-wrapper:hover {
  transform: scale(1.03);
}

.main-logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-brand-title {
  position: relative;
  z-index: 1;
  font-size: 1.28rem;
  font-weight: 900;
  color: var(--royal-purple);
  margin-bottom: 2px;
}

.hero-brand-subtitle {
  position: relative;
  z-index: 1;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-body);
  margin-bottom: 10px;
}

/* ----------------------------------------------------------------------------
   3. القائمة الجانبية (Drawer Sheet) مع تغبيش الخلفية (Backdrop Blur)
   ---------------------------------------------------------------------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22, 12, 40, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-sheet {
  position: fixed;
  top: 0;
  right: 0;
  width: min(88vw, 370px);
  height: 100dvh;
  background: linear-gradient(165deg, #4A2E76 0%, #24133F 100%);
  border-left: 2px solid rgba(232, 160, 63, 0.45);
  z-index: 1001;
  transform: translateX(105%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  overflow-y: auto;
  box-shadow: -12px 0 38px rgba(0, 0, 0, 0.45);
  color: #FFFFFF;
}

.drawer-sheet.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 16px;
}

.drawer-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.drawer-close-btn:hover {
  background: rgba(239, 68, 68, 0.35);
  transform: rotate(90deg);
}

.drawer-services-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #F6B954 0%, #E8A03F 55%, #CC8321 100%);
  color: #211238;
  padding: 13px 16px;
  border-radius: 18px;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(232, 160, 63, 0.35);
  transition: var(--transition-smooth);
}

.drawer-services-cta:hover {
  transform: translateY(-2px);
}

.drawer-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.drawer-platform-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 18px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.drawer-platform-card:hover {
  transform: translateX(-4px);
}

.drawer-platform-card .card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.drawer-platform-card .card-meta small {
  display: block;
  font-size: 0.74rem;
  opacity: 0.92;
  font-weight: 500;
}

.card-whatsapp { background: linear-gradient(135deg, #1FAF54 0%, #0E7A38 100%); }
.card-messenger { background: linear-gradient(135deg, #0078FF 0%, #6D28D9 100%); }
.card-facebook { background: linear-gradient(135deg, #1877F2 0%, #0C4A9E 100%); }
.card-tg-admin { background: linear-gradient(135deg, #229ED9 0%, #0369A1 100%); }
.card-tg-bot { background: linear-gradient(135deg, #8B5CF6 0%, #5B21B6 100%); }
.card-tg-channel { background: linear-gradient(135deg, #0EA5E9 0%, #1E40AF 100%); }
.card-call { background: linear-gradient(135deg, #10B981 0%, #065F46 100%); }

/* ----------------------------------------------------------------------------
   4. تذييل الكريدتس (Footer)
   خلفية بنفسجية ملكية بالكامل مع خط ذهبي علوي + كريدتس صغيرة وأنيقة لـ Zeiad Shaddoud
   ---------------------------------------------------------------------------- */
.royal-footer {
  background: linear-gradient(180deg, var(--royal-purple) 0%, var(--royal-purple-dark) 100%);
  border-top: 3px solid var(--royal-gold);
  margin-top: 26px;
  padding: 22px 16px 26px;
  text-align: center;
  color: #FFFFFF;
}

.footer-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-brand-row img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

/* شريط الكريدتس الصغير والمرتب لـ Zeiad Shaddoud */
.mini-credits-bar {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
}

.mini-credits-name {
  font-weight: 700;
  color: var(--royal-gold-light);
  letter-spacing: 0.4px;
}

.mini-credits-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  direction: ltr;
}

.mini-credit-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: var(--transition-smooth);
}

.mini-credit-link:hover {
  background: rgba(232, 160, 63, 0.22);
  border-color: rgba(232, 160, 63, 0.6);
  color: #FFFFFF;
}
