:root {
  --primary: #1a3a6b;
  --primary-light: #2756a8;
  --gold: #c9a84c;
  --gold-light: #f0d080;
  --green: #2e7d52;
  --green-light: #4caf7d;
  --white: #ffffff;
  --off-white: #f8f9fc;
  --gray-100: #f1f3f8;
  --gray-200: #e2e6ef;
  --gray-500: #8899bb;
  --gray-700: #445577;
  --dark: #0d1f3c;
  --shadow: 0 4px 24px rgba(26,58,107,0.12);
  --shadow-lg: 0 12px 48px rgba(26,58,107,0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
  --font-main: 'Tajawal', sans-serif;
  --font-alt: 'Cairo', sans-serif;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); background: #f8fafc; color: var(--dark); direction: rtl; overflow-x: hidden; }


/* ========== ADMIN MODAL POPUP ========== */
.admin-modal-overlay {
  position: fixed; inset: 0; background: rgba(13,31,60,0.65);
  z-index: 99998; display: flex; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: all 0.25s ease;
}
.admin-modal-overlay.open { opacity: 1; visibility: visible; }
.admin-modal-box {
  background: white; border-radius: 16px; width: 100%; max-width: 620px;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(13,31,60,0.3);
  transform: scale(0.93) translateY(20px); transition: all 0.25s ease;
}
.admin-modal-overlay.open .admin-modal-box { transform: scale(1) translateY(0); }
.admin-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 2px solid var(--gray-200);
  position: sticky; top: 0; background: white; z-index: 1;
  border-radius: 16px 16px 0 0;
}
.admin-modal-header h3 {
  font-size: 18px; font-weight: 900; color: var(--primary);
  font-family: var(--font-alt); display: flex; align-items: center; gap: 10px;
}
.admin-modal-header h3 .modal-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center; color: white; font-size: 15px;
}
.admin-modal-close {
  width: 34px; height: 34px; border-radius: 8px; border: none; background: var(--gray-100);
  color: var(--gray-700); font-size: 16px; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.admin-modal-close:hover { background: #fee2e2; color: #ef5350; }
.admin-modal-body { padding: 24px; }
.admin-modal-footer {
  padding: 16px 24px; border-top: 2px solid var(--gray-200);
  display: flex; gap: 12px; justify-content: flex-end;
  position: sticky; bottom: 0; background: white;
  border-radius: 0 0 16px 16px;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ========== UTILITY ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 50px; font-family: var(--font-main); font-weight: 700; font-size: 15px; text-decoration: none; border: none; cursor: pointer; transition: var(--transition); white-space: nowrap; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #e8c56a); color: var(--dark); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.4); }
.btn-green { background: var(--green); color: white; }
.btn-green:hover { background: var(--green-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); color: white; }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.4); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title .badge { display: inline-block; background: linear-gradient(135deg, var(--gold), #e8c56a); color: var(--dark); padding: 6px 20px; border-radius: 50px; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.section-title h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; color: var(--primary); line-height: 1.3; margin-bottom: 14px; font-family: var(--font-alt); }
.section-title p { font-size: 16px; color: var(--gray-700); max-width: 600px; margin: 0 auto; line-height: 1.8; }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
section { padding: 80px 0; }
section:nth-child(even) { background: var(--off-white); }

/* ========== TOP BAR ========== */
.topbar { background: var(--primary); color: white; padding: 8px 0; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,0.85); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
.topbar a:hover { color: var(--gold-light); }
.topbar-right { display: flex; gap: 20px; }

/* ========== HEADER ========== */
header { background: white; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 1200px; margin: 0 auto; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { width: 52px; height: 52px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 22px; }
.logo-text h1 { font-size: 18px; font-weight: 900; color: var(--primary); font-family: var(--font-alt); line-height: 1.2; }
.logo-text span { font-size: 12px; color: var(--gold); font-weight: 600; }
nav { display: flex; align-items: center; gap: 4px; }
nav a { color: var(--gray-700); text-decoration: none; padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; transition: var(--transition); position: relative; }
nav a:hover, nav a.active { color: var(--primary); background: var(--gray-100); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 10px 20px; font-size: 14px; }
.mobile-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--primary); cursor: pointer; padding: 8px; }
.mobile-nav { display: none; background: white; border-top: 1px solid var(--gray-200); padding: 16px; flex-direction: column; gap: 4px; }
.mobile-nav a { color: var(--gray-700); text-decoration: none; padding: 12px 16px; border-radius: 8px; font-weight: 600; display: block; transition: var(--transition); }
.mobile-nav a:hover { color: var(--primary); background: var(--gray-100); }
.mobile-nav.open { display: flex; }

/* ========== HERO ========== */
.hero { background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 50%, #1e4d9b 100%); color: white; padding: 100px 0; position: relative; overflow: hidden; min-height: 90vh; display: flex; align-items: center; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-shape { position: absolute; bottom: -50px; left: -80px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%); border-radius: 50%; }
.hero-shape2 { position: absolute; top: -100px; right: -100px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(46,125,82,0.1) 0%, transparent 70%); border-radius: 50%; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(201,168,76,0.2); border: 1px solid rgba(201,168,76,0.4); color: var(--gold-light); padding: 8px 20px; border-radius: 50px; font-size: 13px; font-weight: 700; margin-bottom: 24px; }
.hero h2 { font-size: clamp(28px, 4.5vw, 52px); font-weight: 900; line-height: 1.25; margin-bottom: 20px; font-family: var(--font-alt); }
.hero h2 span { color: var(--gold-light); }
.hero-desc { font-size: 17px; color: rgba(255,255,255,0.8); line-height: 1.8; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.stat-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius); padding: 20px; text-align: center; backdrop-filter: blur(10px); }
.stat-card .num { font-size: 36px; font-weight: 900; color: var(--gold-light); font-family: var(--font-alt); }
.stat-card .lbl { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 4px; }
.hero-visual { position: relative; }
.hero-img-main { width: 100%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.hero-img-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge-floating { position: absolute; bottom: -20px; right: -20px; background: white; border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; }
.hero-badge-floating .icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--green), var(--green-light)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 18px; }
.hero-badge-floating .info strong { display: block; color: var(--primary); font-size: 14px; font-weight: 700; }
.hero-badge-floating .info span { font-size: 12px; color: var(--gray-500); }

/* ========== SERVICES ========== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.service-card { background: white; border-radius: var(--radius-lg); padding: 28px 20px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); cursor: pointer; border: 2px solid transparent; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--primary), var(--primary-light)); opacity: 0; transition: var(--transition); z-index: 0; }
.service-card:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { opacity: 1; }
.service-card:hover .svc-icon, .service-card:hover h3, .service-card:hover p { color: white; position: relative; z-index: 1; }
.svc-icon { width: 64px; height: 64px; background: linear-gradient(135deg, #e8f0ff, #d0dfff); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 16px; color: var(--primary); transition: var(--transition); position: relative; z-index: 1; }
.service-card h3 { font-size: 15px; font-weight: 800; color: var(--primary); margin-bottom: 8px; transition: var(--transition); position: relative; z-index: 1; font-family: var(--font-alt); }
.service-card p { font-size: 13px; color: var(--gray-700); line-height: 1.6; transition: var(--transition); position: relative; z-index: 1; }

/* ========== WHY US ========== */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-text h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 900; color: var(--primary); margin-bottom: 20px; font-family: var(--font-alt); }
.why-text p { color: var(--gray-700); line-height: 1.9; margin-bottom: 30px; font-size: 16px; }
.why-features { display: flex; flex-direction: column; gap: 16px; }
.why-feature { display: flex; align-items: flex-start; gap: 16px; padding: 16px 20px; background: white; border-radius: var(--radius); box-shadow: 0 2px 12px rgba(26,58,107,0.06); transition: var(--transition); }
.why-feature:hover { transform: translateX(-4px); box-shadow: var(--shadow); }
.why-feature .icon { width: 44px; height: 44px; min-width: 44px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 18px; }
.why-feature .info h4 { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.why-feature .info p { font-size: 13px; color: var(--gray-700); line-height: 1.5; }
.why-visual { position: relative; }
.why-img { width: 100%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 3/4; }
.why-img img { width: 100%; height: 100%; object-fit: cover; }
.why-badge { position: absolute; top: 20px; left: -20px; background: var(--gold); color: var(--dark); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-lg); font-weight: 900; text-align: center; }
.why-badge .num { font-size: 32px; display: block; font-family: var(--font-alt); }
.why-badge .lbl { font-size: 12px; }

/* ========== STEPS ========== */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.steps-grid::before { content: ''; position: absolute; top: 40px; right: 10%; left: 10%; height: 2px; background: linear-gradient(to left, var(--gold), var(--primary)); z-index: 0; }
.step-card { text-align: center; position: relative; z-index: 1; }
.step-num { width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: white; font-size: 30px; font-weight: 900; box-shadow: 0 8px 24px rgba(26,58,107,0.3); border: 4px solid white; }
.step-card h3 { font-size: 15px; font-weight: 800; color: var(--primary); margin-bottom: 8px; font-family: var(--font-alt); }
.step-card p { font-size: 13px; color: var(--gray-700); line-height: 1.6; }

/* ========== OFFERS ========== */
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.offer-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); border: 2px solid transparent; }
.offer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.offer-card.featured { border-color: var(--gold); position: relative; }
.offer-badge { position: absolute; top: 16px; right: 16px; background: var(--gold); color: var(--dark); padding: 4px 14px; border-radius: 50px; font-size: 12px; font-weight: 700; }
.offer-header { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; padding: 28px; text-align: center; }
.offer-header h3 { font-size: 20px; font-weight: 900; font-family: var(--font-alt); margin-bottom: 8px; }
.offer-price { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 12px; }
.offer-price .old { font-size: 16px; color: rgba(255,255,255,0.6); text-decoration: line-through; }
.offer-price .new { font-size: 36px; font-weight: 900; color: var(--gold-light); font-family: var(--font-alt); }
.offer-price .unit { font-size: 14px; color: rgba(255,255,255,0.8); }
.offer-body { padding: 24px; }
.offer-features { list-style: none; margin-bottom: 20px; }
.offer-features li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--gray-200); font-size: 14px; color: var(--gray-700); }
.offer-features li i { color: var(--green); font-size: 14px; }
.offer-body .btn { width: 100%; justify-content: center; }

/* ========== TESTIMONIALS ========== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card { background: white; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); position: relative; transition: var(--transition); }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-card::before { content: '"'; font-size: 80px; color: var(--gold); opacity: 0.3; position: absolute; top: 10px; left: 20px; font-family: serif; line-height: 1; }
.stars { color: #fbbf24; font-size: 16px; margin-bottom: 14px; }
.testimonial-card p { color: var(--gray-700); font-size: 14px; line-height: 1.8; margin-bottom: 20px; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--gray-200); padding-top: 16px; }
.author-avatar { width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 18px; font-weight: 700; }
.author-info strong { display: block; font-size: 14px; color: var(--primary); font-weight: 700; }
.author-info span { font-size: 12px; color: var(--gray-500); }

/* ========== FAQ ========== */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: white; border-radius: var(--radius); border: 2px solid var(--gray-200); overflow: hidden; transition: var(--transition); }
.faq-item.active { border-color: var(--primary); }
.faq-q { padding: 20px 24px; font-weight: 700; font-size: 15px; color: var(--primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q i { transition: var(--transition); color: var(--gold); font-size: 14px; }
.faq-item.active .faq-q i { transform: rotate(180deg); }
.faq-a { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.active .faq-a { max-height: 200px; padding-bottom: 20px; }
.faq-a p { color: var(--gray-700); font-size: 14px; line-height: 1.8; }

/* ========== AREAS ========== */
.areas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.area-card { background: white; border-radius: var(--radius); padding: 24px 16px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); cursor: pointer; border: 2px solid transparent; }
.area-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.area-icon { font-size: 28px; margin-bottom: 10px; }
.area-card h3 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.area-card p { font-size: 12px; color: var(--gray-500); }

/* ========== BLOG ========== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-thumb { aspect-ratio: 16/9; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-body { padding: 20px; }
.blog-cat { display: inline-block; background: var(--gray-100); color: var(--primary); padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.blog-body h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 8px; line-height: 1.4; font-family: var(--font-alt); }
.blog-body p { font-size: 13px; color: var(--gray-700); line-height: 1.7; }
.blog-meta { display: flex; gap: 16px; margin-top: 14px; font-size: 12px; color: var(--gray-500); }

/* ========== CTA ========== */
.cta-section { background: linear-gradient(135deg, var(--primary), var(--dark)); color: white; text-align: center; }
.cta-section h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; margin-bottom: 16px; font-family: var(--font-alt); }
.cta-section p { font-size: 17px; color: rgba(255,255,255,0.8); margin-bottom: 36px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========== CONTACT ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h3 { font-size: 24px; font-weight: 900; color: var(--primary); margin-bottom: 24px; font-family: var(--font-alt); }
.contact-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact-item .icon { width: 48px; height: 48px; min-width: 48px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 18px; }
.contact-item .info strong { display: block; font-size: 14px; color: var(--primary); font-weight: 700; margin-bottom: 4px; }
.contact-item .info p, .contact-item .info a { font-size: 15px; color: var(--gray-700); text-decoration: none; }
.contact-item .info a:hover { color: var(--primary); }
.contact-form { background: white; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 2px solid var(--gray-200); border-radius: var(--radius); font-family: var(--font-main); font-size: 14px; color: var(--dark); background: var(--gray-100); transition: var(--transition); direction: rtl; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); background: white; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ========== FOOTER ========== */
footer { background: var(--dark); color: white; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 16px; display: inline-flex; }
.footer-brand .logo-icon { background: linear-gradient(135deg, var(--gold), #e8c56a); }
.footer-brand .logo-text h1 { color: white; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.8; margin-bottom: 24px; }
.social-links { display: flex; gap: 10px; }
.social-link { width: 38px; height: 38px; background: rgba(255,255,255,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: var(--transition); font-size: 16px; }
.social-link:hover { background: var(--gold); color: var(--dark); }
.footer-col h4 { font-size: 16px; font-weight: 800; color: var(--gold-light); margin-bottom: 20px; font-family: var(--font-alt); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 14px; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold-light); padding-right: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 12px; }

/* ========== FLOATING BUTTONS ========== */
.floating-buttons { position: fixed; bottom: 30px; left: 24px; display: flex; flex-direction: column; gap: 14px; z-index: 999; }
.float-btn { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; text-decoration: none; color: white; box-shadow: 0 6px 20px rgba(0,0,0,0.25); transition: var(--transition); position: relative; }
.float-btn:hover { transform: scale(1.15); }
.float-btn-wa { background: linear-gradient(135deg, #25d366, #128c7e); }
.float-btn-phone { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.float-btn .tooltip { position: absolute; right: calc(100% + 12px); background: var(--dark); color: white; padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; transition: var(--transition); pointer-events: none; }
.float-btn:hover .tooltip { opacity: 1; }

/* ========== MODAL ========== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: var(--transition); }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { background: white; border-radius: var(--radius-lg); padding: 40px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; transform: scale(0.9); transition: var(--transition); box-shadow: var(--shadow-lg); }
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.modal-header h3 { font-size: 22px; font-weight: 900; color: var(--primary); font-family: var(--font-alt); }
.modal-close { background: none; border: none; font-size: 22px; color: var(--gray-500); cursor: pointer; transition: var(--transition); }
.modal-close:hover { color: var(--dark); }

/* ========== ADMIN ========== */
.admin-wrap { display: flex !important; min-height: 100vh; }
.site-wrap { display: block; }
.site-wrap.hidden { display: none; }
.admin-sidebar {
    width: 300px;
    min-width: 300px;
    background: #0f172a;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    border-left: 1px solid rgba(255,255,255,0.05);
}
.admin-main {
    margin-right: 300px;
    flex: 1;
    background: #f8fafc;
    min-height: 100vh;
    position: relative;
    transition: all 0.3s ease;
}
.admin-logo { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.admin-logo h2 { font-size: 17px; font-weight: 900; color: white; font-family: var(--font-alt); }
.admin-logo span { font-size: 12px; color: var(--gold); }
.admin-nav {
    padding: 16px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.admin-nav-section { 
    padding: 20px 20px 8px; 
    font-size: 13px; 
    text-transform: uppercase; 
    color: #38bdf8; /* لون أزرق سماوي واضح */
    font-weight: 800; 
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
    margin-bottom: 5px;
}
.admin-nav a { display: flex; align-items: center; gap: 14px; padding: 16px 20px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 16px; font-weight: 600; transition: var(--transition); width: 100%; }
.admin-nav a:hover, .admin-nav a.active { color: white; background: rgba(255,255,255,0.08); border-right: 3px solid var(--gold); }
.admin-nav a i { width: 24px; text-align: center; font-size: 18px; }
.admin-nav a .badge-count { margin-right: auto; background: var(--gold); color: var(--dark); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 50px; }
.admin-header {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 900;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.admin-header h1 { font-size: 1.25rem; font-weight: 800; color: #0f172a; font-family: var(--font-alt); }
.admin-header-actions { display: flex; align-items: center; gap: 12px; }
.admin-content { padding: 30px; max-width: 1400px; margin: 0 auto; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-box { background: white; border-radius: 16px; padding: 20px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03); border: 1px solid #f1f5f9; display: flex; align-items: center; gap: 16px; transition: transform 0.2s; }
.stat-box:hover { transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.stat-box .stat-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: white; flex-shrink: 0; }
.stat-box .stat-info .num { font-size: 28px; font-weight: 900; color: #0f172a; font-family: var(--font-alt); line-height: 1; margin-bottom: 4px; }
.stat-box .stat-info .lbl { font-size: 13px; color: #64748b; font-weight: 600; }
.stat-box .stat-icon.blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); box-shadow: 0 4px 12px rgba(59,130,246,0.3); }
.stat-box .stat-icon.gold { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 4px 12px rgba(245,158,11,0.3); }
.stat-box .stat-icon.green { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
.stat-box .stat-icon.red { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 4px 12px rgba(239,68,68,0.3); }
.admin-card { background: white; border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden; margin-bottom: 24px; }
.admin-card-header { padding: 18px 24px; border-bottom: 1px solid var(--gray-200); display: flex; justify-content: space-between; align-items: center; }
.admin-card-header h3 { font-size: 16px; font-weight: 800; color: var(--primary); font-family: var(--font-alt); }
.admin-card-body { padding: 24px; }
table.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.875rem; }
.admin-table th { background: #f8fafc; color: #64748b; padding: 12px 16px; text-align: right; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid #e2e8f0; }
.admin-table td { padding: 16px; border-bottom: 1px solid #f1f5f9; color: #334155; vertical-align: middle; }
.admin-table tr:hover td { background: #fbfcfe; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 700; }
.status-new { background: #dbeafe; color: #1d4ed8; }
.status-progress { background: #fef3c7; color: #92400e; }
.status-done { background: #d1fae5; color: #065f46; }
.status-cancel { background: #fee2e2; color: #991b1b; }
.action-btns { display: flex; gap: 6px; }
.action-btn { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; font-size: 14px; transition: var(--transition); }
.action-btn.edit { background: #dbeafe; color: #1d4ed8; }
.action-btn.delete { background: #fee2e2; color: #991b1b; }
.action-btn.view { background: #d1fae5; color: #065f46; }
.action-btn:hover { transform: scale(1.1); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group-admin { margin-bottom: 20px; }
.form-group-admin label { display: block; font-size: 13px; font-weight: 700; color: var(--gray-700); margin-bottom: 8px; }
.form-group-admin input, .form-group-admin select, .form-group-admin textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-200); border-radius: 8px; font-family: var(--font-main); font-size: 14px; direction: rtl; transition: var(--transition); }
.form-group-admin input:focus, .form-group-admin select:focus, .form-group-admin textarea:focus { outline: none; border-color: var(--primary); }
.form-group-admin textarea { resize: vertical; min-height: 100px; }
.admin-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 8px; font-family: var(--font-main); font-weight: 700; font-size: 14px; border: none; cursor: pointer; transition: var(--transition); }
.admin-btn.primary { background: var(--primary); color: white; }
.admin-btn.primary:hover { background: var(--primary-light); }
.admin-btn.gold { background: var(--gold); color: var(--dark); }
.admin-btn.danger { background: #ef5350; color: white; }
.admin-btn.success { background: var(--green); color: white; }
.admin-btn.secondary { background: var(--gray-200); color: var(--gray-700); }
.admin-login { position: fixed; inset: 0; background: linear-gradient(135deg, var(--dark), var(--primary)); display: flex; align-items: center; justify-content: center; z-index: 99999; }
.admin-login.hidden { display: none; }
.login-box { background: white; border-radius: var(--radius-lg); padding: 48px 40px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); text-align: center; }
.login-box .login-icon { width: 72px; height: 72px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 20px; display: flex; align-items: center; justify-content: center; color: white; font-size: 30px; margin: 0 auto 24px; }
.login-box h2 { font-size: 24px; font-weight: 900; color: var(--primary); margin-bottom: 8px; font-family: var(--font-alt); }
.login-box p { color: var(--gray-500); font-size: 14px; margin-bottom: 32px; }
.login-error { background: #fee2e2; color: #991b1b; padding: 12px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; display: none; }
.login-error.show { display: block; }
.notification { position: fixed; top: 24px; right: 24px; background: var(--green); color: white; padding: 14px 24px; border-radius: var(--radius); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 99999; transform: translateX(120%); transition: var(--transition); display: flex; align-items: center; gap: 10px; }
.notification.show { transform: translateX(0); }
.notification.error { background: #ef5350; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .offers-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav { display: none; }
  .mobile-toggle { display: block; }
  .header-actions .btn { display: none; }
  .hero { padding: 60px 0; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid::before { display: none; }
  .offers-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  section { padding: 50px 0; }
  .topbar .container { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

/* placeholder images */
.img-placeholder { background: linear-gradient(135deg, #e8f0ff, #d0dfff); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--primary); gap: 12px; }
.img-placeholder i { font-size: 40px; opacity: 0.4; }
.img-placeholder span { font-size: 13px; font-weight: 600; opacity: 0.6; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; position: relative; }
.gallery-item img, .gallery-item .img-placeholder { width: 100%; height: 100%; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(26,58,107,0.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: white; font-size: 30px; }

@media (max-width: 768px) { 
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .areas-grid { grid-template-columns: 1fr; }
}

/* ========== HOME PAGE MANAGER ========== */
.home-admin-actions { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:20px; }
.home-section-editor { border:1px solid var(--gray-200); border-radius:12px; padding:18px; margin-bottom:18px; background:#fff; }
.home-section-editor h4 { color:var(--primary); font-family:var(--font-alt); font-size:16px; margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.repeater-list { display:flex; flex-direction:column; gap:12px; }
.repeater-item { border:1px solid var(--gray-200); border-radius:12px; padding:14px; background:var(--off-white); }
.repeater-head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:12px; }
.repeater-head strong { color:var(--primary); font-size:14px; }
.repeater-actions { display:flex; gap:6px; flex-wrap:wrap; }
.img-preview-small { width:90px; height:70px; border-radius:8px; object-fit:cover; border:1px solid var(--gray-200); background:var(--gray-100); display:block; margin-top:8px; }
/* ========== ADMIN DASHBOARD RESPONSIVE FIXES ========== */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.admin-table-wrapper { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 20px; }
.mobile-toggle-admin, .close-sidebar-admin { display: none; }

/* Sidebar backdrop overlay for mobile */
.admin-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 9999 !important;
    backdrop-filter: blur(2px);
    -webkit-tap-highlight-color: transparent;
}
.admin-sidebar-backdrop.show { display: block !important; }

@media (max-width: 768px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .mobile-toggle-admin { display: block !important; background: white; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 18px; color: #1e293b; cursor: pointer; padding: 8px 12px; margin-left: 10px; }
    .close-sidebar-admin { display: flex !important; background: rgba(255,255,255,0.1); border: none; font-size: 20px; color: white; cursor: pointer; position: absolute; left: 15px; top: 15px; border-radius: 50%; width: 36px; height: 36px; align-items: center; justify-content: center; z-index: 10; }
    .admin-sidebar {
        position: fixed;
        right: -300px;
        top: 0;
        height: 100%;
        width: 300px;
        max-width: 85%;
        z-index: 99999 !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }
    .admin-sidebar.open { right: 0; }
    .admin-main { margin-right: 0 !important; width: 100% !important; flex: none !important; }
    .admin-header { padding: 10px 15px; position: sticky; top: 0; background: white; z-index: 99; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
    .admin-header h1 { font-size: 18px; }
    .admin-sidebar nav { display: block !important; }
    .admin-nav { display: flex !important; flex-direction: column !important; }
    .stats-row { grid-template-columns: 1fr 1fr !important; gap: 12px !important; margin-bottom: 20px !important; }
    .admin-content { padding: 15px !important; }
    .stat-box { padding: 20px 15px !important; border-radius: 16px !important; }
    .stat-box .stat-icon { width: 48px !important; height: 48px !important; font-size: 20px !important; }
    .stat-box .stat-info .num { font-size: 22px !important; margin-bottom: 2px; }
}

@media (max-width: 400px) {
    .stats-row { grid-template-columns: 1fr !important; }
}

/* ========== ADMIN TABLES & PAGINATION ========== */
/* ========== ADMIN RESPONSIVE ========== */
@media (max-width: 768px) {
    .admin-sidebar {
        right: -300px;
        transition: 0.3s;
        box-shadow: none;
    }
    .admin-sidebar.open {
        right: 0;
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    }
    .admin-main {
        margin-right: 0 !important;
    }
    .sidebar-toggle {
        display: flex !important;
        order: 2;
    }
    .admin-header {
        padding: 12px 15px;
        height: auto;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between;
    }
    .admin-header h2 {
        font-size: 16px;
        order: 1;
        margin: 0;
    }
    .admin-header-btns {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 8px;
    }
    .admin-header-btns .admin-btn {
        flex: 1;
        justify-content: center;
        padding: 8px;
        font-size: 13px;
    }
    
    .admin-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px;
    }
    .admin-card-header h3 {
        font-size: 16px;
    }
    .admin-card-header .admin-btn {
        width: 100%;
        justify-content: center;
    }
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 24px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
    }
    .admin-table {
        min-width: 600px;
    }
}

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

.admin-table th {
    background: #f8fafc;
    padding: 16px 20px;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table td {
    padding: 16px 20px;
    font-size: 14px;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

/* Custom Pagination Styling - Modern Look */
.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

/* إخفاء نصوص الوصف الزائدة وإجبار الأرقام على الظهور */
.pagination-wrapper .small.text-muted, 
.pagination-wrapper nav div:first-child,
.pagination-wrapper .hidden,
.pagination-wrapper .d-none {
    display: none !important;
}

.pagination-wrapper nav, 
.pagination-wrapper nav div:last-child,
.pagination-wrapper flex,
.pagination-wrapper .flex-1 {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    justify-content: center !important;
    width: 100% !important;
}

.pagination {
    display: flex !important;
    visibility: visible !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    direction: ltr !important;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 10px !important;
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* تعديلات للموبايل الصغير جداً */
@media (max-width: 480px) {
    .page-item .page-link {
        min-width: 34px;
        height: 34px;
        font-size: 12px;
    }
    .pagination {
        gap: 4px;
    }
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.page-item:not(.active) .page-link:hover {
    background: #f0f9ff;
    color: #0ea5e9;
    border-color: #0ea5e9;
    transform: translateY(-2px);
}

.page-item.disabled .page-link {
    background: #f8fafc;
    color: #cbd5e1;
    cursor: not-allowed;
}

.pagination svg {
    width: 16px !important;
    height: 16px !important;
}

/* تباعد بسيط للمعرض - للأدمن فقط */
.admin-main .gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    padding: 15px 0;
}

.admin-main .gallery-item {
    transition: transform 0.2s;
    margin-bottom: 5px;
}

.admin-main .gallery-item:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .admin-main .gallery-grid {
        gap: 12px;
        justify-content: center;
    }
}



