/*
  WASL - وصل للخدمات الإلكترونية
  Premium Tech Luxury Design System
  Base Colors: Black (#090909), Gold (#D4AF37), Pure White
*/

/* استيراد الخطوط الفاخرة */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800&display=swap');

/* المتغيرات العامة للهوية البصرية */
:root {
  --bg-primary: #090909;
  --bg-secondary: #121212;
  --bg-tertiary: #1a1a1a;
  --gold-primary: #D4AF37;
  --gold-secondary: #AA771C;
  --gold-light: #FBF5B7;
  --gold-gradient: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
  --gold-glow: 0 0 20px rgba(212, 175, 55, 0.3);
  --gold-glow-intense: 0 0 35px rgba(212, 175, 55, 0.6);
  --text-primary: #FFFFFF;
  --text-secondary: #B0B0B0;
  --text-muted: #707070;
  --border-glass: rgba(212, 175, 55, 0.15);
  --bg-glass: rgba(18, 18, 18, 0.7);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-primary: 'Cairo', 'Tajawal', sans-serif;
}

/* التصفير والتعديلات الأساسية */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-primary);
}

body {
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
  line-height: 1.6;
}

/* تخصيص شريط التمرير */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-secondary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* تنسيقات الهيكل والتغليف */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* تأثيرات الزجاج الفاخر (Glassmorphism) */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
}

/* العناوين المذهبة */
.gold-text-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* الأزرار الفاخرة */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  gap: 10px;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #000000;
  border: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--gold-glow-intense);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  transform: translateY(-3px);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.5);
}

/* الهيدر وشريط التنقل */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 20px 0;
}

header.scrolled {
  padding: 12px 0;
  background: rgba(9, 9, 9, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

nav ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
  padding: 6px 0;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition-smooth);
}

nav ul li a:hover {
  color: var(--text-primary);
}

nav ul li a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* الهيرو سيكشن الباهر (Hero Section) */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #151515 0%, #090909 70%);
}

/* خلفية متحركة (Canvas أو تأثير جافاسكربت) */
.hero-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-glow-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
  animation: orb-float 8s ease-in-out infinite;
}

@keyframes orb-float {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-50%, -20px) scale(1.1); }
}

.hero-content-wrapper {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 24px;
  animation: pulse-border 3s infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(212, 175, 55, 0.2); }
  50% { border-color: rgba(212, 175, 55, 0.6); box-shadow: 0 0 10px rgba(212, 175, 55, 0.1); }
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* قسم الإحصائيات (Stats Section) */
.stats-section {
  position: relative;
  z-index: 10;
  margin-top: -60px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px;
}

.stat-card {
  text-align: center;
  position: relative;
}

.stat-card:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(212, 175, 55, 0.2);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 8px;
  font-family: var(--font-primary);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* قسم الخدمات الفاخر (Services Section) */
.services-section {
  padding: 100px 0;
  background: var(--bg-secondary);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-tag {
  color: var(--gold-primary);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* شريط البحث وتصفية الفئات */
.filter-container {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-box-wrapper {
  position: relative;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 18px 50px 18px 24px;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--gold-primary);
  box-shadow: var(--gold-glow);
  background: rgba(255, 255, 255, 0.05);
}

.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-primary);
  font-size: 1.2rem;
}

.categories-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.category-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 10px 24px;
  border-radius: 50px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-primary);
  font-weight: 600;
  transition: var(--transition-smooth);
}

.category-tab:hover, .category-tab.active {
  background: var(--gold-gradient);
  color: #000000;
  border-color: transparent;
  box-shadow: var(--gold-glow);
  font-weight: 700;
}

/* شبكة الخدمات (Services Grid) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.12);
}

.service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.service-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gold-primary);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrapper {
  background: var(--gold-gradient);
  color: #000000;
  box-shadow: var(--gold-glow);
  border-color: transparent;
}

.service-category {
  font-size: 0.75rem;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 600;
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.service-price-wrapper {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.price-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold-primary);
}

.btn-order-service {
  padding: 10px 18px;
  font-size: 0.85rem;
  border-radius: 8px;
}

/* قسم آراء العملاء (Testimonials Section) */
.testimonials-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 32px;
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.3);
}

.stars-rating {
  color: var(--gold-primary);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.client-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #000000;
  font-size: 1.1rem;
}

.client-details h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.client-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* قسم التواصل (Contact Section) */
.contact-section {
  padding: 100px 0;
  background: var(--bg-secondary);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 40px;
}

.contact-info-panel {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-info-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-info-text a {
  color: var(--gold-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.contact-info-text a:hover {
  text-decoration: underline;
}

.contact-form-panel {
  padding: 40px;
}

.form-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--gold-primary);
  box-shadow: var(--gold-glow);
  background: rgba(255, 255, 255, 0.04);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* الفوتر (Footer) */
footer {
  padding: 60px 0 30px 0;
  background: var(--bg-primary);
  border-top: 1px solid rgba(212, 175, 55, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 400px;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.footer-links ul li a:hover {
  color: var(--gold-primary);
  padding-right: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-bottom-links a:hover {
  color: var(--gold-primary);
}

/* نافذة الطلب المنبثقة (Modal System) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  max-width: 550px;
  border-radius: 24px;
  padding: 40px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  left: 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  color: var(--gold-primary);
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* لافتة تثبيت تطبيق PWA (Install Banner) */
.pwa-install-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 420px;
  width: calc(100% - 48px);
  padding: 24px;
  z-index: 1500;
  transform: translateY(150px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.pwa-install-banner.show-banner {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.pwa-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.pwa-banner-logo {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-banner-logo img {
  width: 40px;
  height: 40px;
}

.pwa-banner-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pwa-banner-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pwa-banner-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-pwa-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-primary);
  font-weight: 600;
  cursor: pointer;
  padding: 0 10px;
}

.btn-pwa-close:hover {
  color: var(--text-primary);
}

/* صفحة تسجيل الدخول الفاخرة (Login View) */
.login-body {
  background: radial-gradient(circle at center, #181818 0%, #090909 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 450px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.login-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px auto;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
}

.login-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: right;
}

/* واجهة لوحة تحكم المشرف (Admin Dashboard CSS) */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-primary);
}

.admin-sidebar {
  width: 280px;
  background: var(--bg-secondary);
  border-left: 1px solid rgba(212, 175, 55, 0.1);
  display: flex;
  flex-direction: column;
  padding: 30px 0;
  position: fixed;
  height: 100vh;
  right: 0;
  top: 0;
  z-index: 100;
}

.admin-sidebar-brand {
  padding: 0 24px;
  margin-bottom: 40px;
}

.admin-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px;
  flex-grow: 1;
}

.admin-nav-item a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.admin-nav-item a:hover, .admin-nav-item.active a {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-primary);
}

.admin-sidebar-footer {
  padding: 0 24px;
}

.admin-main-content {
  margin-right: 280px;
  width: calc(100% - 280px);
  padding: 40px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  font-weight: 800;
}

/* بطاقات إحصائيات الإدارة */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.admin-stat-card {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-stat-info h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.admin-stat-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-stat-icon {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold-primary);
}

/* التبويبات والمحتوى الإداري */
.admin-tabs-content {
  position: relative;
}

.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-panel-card {
  padding: 30px;
  margin-bottom: 30px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.panel-title {
  font-size: 1.35rem;
  font-weight: 800;
}

/* جداول البيانات الفاخرة */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

table.admin-table th {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 0.9rem;
}

table.admin-table td {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

table.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
  color: var(--text-primary);
}

/* شارات الحالة للطلبات */
.status-badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}

.status-pending {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-primary);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.status-under_review {
  background: rgba(0, 191, 255, 0.12);
  color: #00BFFF;
  border: 1px solid rgba(0, 191, 255, 0.2);
}

.status-processing {
  background: rgba(255, 140, 0, 0.12);
  color: #FF8C00;
  border: 1px solid rgba(255, 140, 0, 0.2);
}

.status-completed {
  background: rgba(37, 211, 102, 0.12);
  color: #25D366;
  border: 1px solid rgba(37, 211, 102, 0.2);
}

.status-cancelled {
  background: rgba(255, 69, 58, 0.12);
  color: #FF453A;
  border: 1px solid rgba(255, 69, 58, 0.2);
}

/* أزرار الإجراءات */
.actions-cell {
  display: flex;
  gap: 8px;
}

.action-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.action-btn:hover {
  background: var(--gold-gradient);
  color: #000000;
  border-color: transparent;
}

.action-btn.btn-delete:hover {
  background: #FF453A;
  color: #FFFFFF;
}

.select-status-inline {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  cursor: pointer;
}

.select-status-inline:focus {
  border-color: var(--gold-primary);
}

/* النوافذ المنبثقة للتأكيد (SweetAlert أو ما شابه) */
.alert-popup {
  position: fixed;
  top: 24px;
  left: 24px;
  padding: 16px 24px;
  border-radius: 12px;
  color: #FFFFFF;
  z-index: 3000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: translateX(-150%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.alert-popup.show {
  transform: translateX(0);
}

.alert-success {
  background: #10B981;
  border: 1px solid #059669;
}

.alert-error {
  background: #EF4444;
  border: 1px solid #DC2626;
}

/* Base Layout Grids (Responsive) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.brief-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* التجاوب للتصميم (Responsive Layouts) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card:nth-child(2)::after {
    display: none;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  nav {
    display: none; /* يمكن تحويله لـ Hamburger menu في الواجهة الرئيسية */
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1.3rem;
  }
  .hero-desc {
    font-size: 1rem;
  }
  .admin-sidebar {
    width: 80px;
  }
  .admin-sidebar-brand h2, .admin-nav-item span {
    display: none;
  }
  .admin-sidebar-brand {
    padding: 0;
    text-align: center;
    margin-bottom: 20px;
  }
  .admin-nav-item a {
    justify-content: center;
    padding: 14px 0;
  }
  .admin-main-content {
    margin-right: 80px;
    width: calc(100% - 80px);
    padding: 20px;
  }
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  /* Enforce vertical columns on mobile views */
  .features-grid, .brief-grid, .about-grid, .security-grid, .services-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Optimize cards typography and spacing on mobile */
  .service-card, .testimonial-card {
    padding: 35px 25px !important;
    height: auto !important; /* Auto Height */
    border-radius: 20px !important;
  }

  .service-title {
    font-size: 1.25rem !important;
    line-height: 1.5 !important;
    margin-bottom: 12px !important;
  }

  .service-description, .testimonial-text {
    font-size: 0.95rem !important;
    line-height: 1.85 !important; /* Comfortable Arabic typography line-height */
    word-break: normal !important;
    overflow-wrap: break-word !important;
    text-align: justify !important; /* proper text alignment */
  }

  /* Compact spacing for Mobile navigation drawer to prevent viewport clipping */
  .mobile-drawer-content {
    padding: 24px 20px !important;
  }
  .mobile-drawer-brand {
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
  }
  .mobile-drawer-links {
    gap: 8px !important;
  }
  .mobile-drawer-links li a {
    padding: 8px 12px !important;
    font-size: 1rem !important;
  }
  .mobile-drawer-footer {
    padding-top: 12px !important;
    gap: 8px !important;
  }
}

/* -------------------------------------------------------------
   أنماط المنصة متعددة الصفحات (Multi-Page Application Styles)
   ------------------------------------------------------------- */

/* تأثيرات انتقالات الصفحات */
.page-fade-in {
  animation: pageFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* الهيدر المصغر للصفحات الفرعية (Subpage Hero Section) */
.subpage-hero {
  position: relative;
  padding: 140px 0 80px 0;
  background: radial-gradient(circle at 50% 10%, #151515 0%, #090909 90%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
  text-align: center;
  overflow: hidden;
}

.subpage-hero .hero-glow-orb {
  width: 400px;
  height: 400px;
  top: -100px;
}

/* الأكورديون للأسئلة الشائعة (FAQ Accordion Style) */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  background: rgba(18, 18, 18, 0.4);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(18, 18, 18, 0.6);
}

.faq-question-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: right;
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid transparent;
}

.faq-answer-panel p {
  padding: 22px 28px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
}

/* تشغيل الأكورديون النشط */
.faq-item.active {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.05);
}

.faq-item.active .faq-answer-panel {
  max-height: 350px;
  border-top-color: rgba(212, 175, 55, 0.1);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--gold-primary);
}

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* تنسيق تفاصيل الخدمة الفردية (Service Detail Page Layout) */
.detail-layout {
  display: grid;
  grid-template-columns: 1.7fr 1.3fr;
  gap: 40px;
  align-items: start;
  padding: 80px 0;
}

.detail-info-block {
  padding: 40px;
}

.detail-sidebar {
  padding: 40px;
  position: sticky;
  top: 100px;
}

.detail-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.detail-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-meta-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-meta-label i {
  color: var(--gold-primary);
}

.detail-meta-value {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.detail-meta-value.price-highlight {
  color: var(--gold-primary);
  font-size: 1.3rem;
  font-weight: 800;
}

/* كروت تفاصيل المتطلبات */
.requirements-card {
  padding: 30px;
  margin-bottom: 40px;
}

.requirements-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.requirements-list li {
  position: relative;
  padding-right: 28px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.requirements-list li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 0;
  color: var(--gold-primary);
}

/* أزرار الخدمات في قائمة الخدمات الفرعية */
.service-card-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.service-card-actions .btn {
  flex: 1;
}

/* التجاوب للصفحات الجديدة */
@media (max-width: 992px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-sidebar {
    position: static;
    padding: 30px;
  }
}

/* Modal Overlay & Dialog Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 20px;
}

.modal-content {
  background: rgba(18, 18, 18, 0.95) !important;
  border: 1px solid rgba(212, 175, 55, 0.2) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.05) !important;
  border-radius: 12px;
  animation: modalFadeIn 0.3s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--gold-primary) !important;
}

@keyframes modalFadeIn {
    from {
      opacity: 0;
      transform: scale(0.95) translateY(-20px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
}

/* Mobile Navigation Hamburger Menu & Slide-out Drawer */
.hamburger-menu-btn {
  display: none;
}

@media (max-width: 992px) {
  .hamburger-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: var(--transition-smooth);
    z-index: 1050;
  }
  .hamburger-menu-btn:hover {
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--gold-primary);
  }
  header nav {
    display: none !important;
  }
  header .nav-actions {
    display: none !important;
  }
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 2000;
  display: flex;
  justify-content: flex-start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, backdrop-filter 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85%;
  height: 100%;
  background: var(--bg-primary) !important;
  border-left: 1px solid var(--border-glass) !important;
  border-radius: 0 !important;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
  overflow-y: auto;
}

.mobile-drawer-overlay.active .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-drawer-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mobile-drawer-close:hover {
  color: var(--gold-primary);
}

.mobile-drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  min-height: 0;
  overflow-y: auto;
}

.mobile-drawer-links li a {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 10px;
  transition: var(--transition-smooth);
}

.mobile-drawer-links li a i {
  color: var(--gold-primary);
  width: 20px;
  text-align: center;
}

.mobile-drawer-links li a:hover {
  background: rgba(212, 175, 55, 0.05);
  color: var(--gold-light);
  padding-right: 24px;
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

