/* ==========================================================================
   منصة المهندس يوسف يعقوب قاسم | النمط الكلاسيكي والفاخر (Classic Luxury Style)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. متغيرات التصميم ونظام الثيمات الفاخرة (Design Tokens & Color Themes)
   -------------------------------------------------------------------------- */
:root {
  /* ثيم الملكي الذهبي الافتراضي (Royal Gold) */
  --primary: #d4af37;
  --primary-light: #f5d061;
  --primary-dark: #aa8214;
  --accent-glow: rgba(212, 175, 55, 0.25);
  --badge-bg: rgba(212, 175, 55, 0.12);

  /* الألوان الأساسية الداكنة الفاخرة */
  --bg-main: #080a0f;
  --bg-surface: #0e121a;
  --bg-surface-elevated: #151b26;
  --bg-glass: rgba(14, 18, 26, 0.75);
  --bg-card: rgba(21, 27, 38, 0.85);

  /* الحدود والظلال */
  --border-color: rgba(212, 175, 55, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #d4af37;
  --shadow-luxury: 0 12px 36px -8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.1);
  --shadow-card: 0 8px 24px -6px rgba(0, 0, 0, 0.5);

  /* النصوص */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  /* الحالات */
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* الخطوط */
  --font-main: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Cairo', var(--font-main);
  --font-latin: 'Outfit', sans-serif;

  /* الزوايا والانتقالات */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ثيم الزمردي الإمبراطوري (Emerald Theme) */
[data-theme="emerald"] {
  --primary: #10b981;
  --primary-light: #34d399;
  --primary-dark: #059669;
  --accent-glow: rgba(16, 185, 129, 0.25);
  --badge-bg: rgba(16, 185, 129, 0.12);
  --bg-main: #06110e;
  --bg-surface: #0a1b16;
  --bg-surface-elevated: #102720;
  --border-color: rgba(16, 185, 129, 0.22);
}

/* ثيم الياقوتي الملكي (Sapphire Theme) */
[data-theme="sapphire"] {
  --primary: #3b82f6;
  --primary-light: #60a5fa;
  --primary-dark: #1d4ed8;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --badge-bg: rgba(59, 130, 246, 0.12);
  --bg-main: #060c18;
  --bg-surface: #0a1428;
  --bg-surface-elevated: #10203e;
  --border-color: rgba(59, 130, 246, 0.22);
}

/* ثيم البرونزي العتيق (Bronze Theme) */
[data-theme="bronze"] {
  --primary: #e0a96d;
  --primary-light: #f3c28c;
  --primary-dark: #b87b3e;
  --accent-glow: rgba(224, 169, 109, 0.25);
  --badge-bg: rgba(224, 169, 109, 0.12);
  --bg-main: #100b07;
  --bg-surface: #19120c;
  --bg-surface-elevated: #241a12;
  --border-color: rgba(224, 169, 109, 0.22);
}

/* ثيم الأرجواني المخملي (Amethyst Theme) */
[data-theme="amethyst"] {
  --primary: #a855f7;
  --primary-light: #c084fc;
  --primary-dark: #7e22ce;
  --accent-glow: rgba(168, 85, 247, 0.25);
  --badge-bg: rgba(168, 85, 247, 0.12);
  --bg-main: #0f0717;
  --bg-surface: #190e25;
  --bg-surface-elevated: #251636;
  --border-color: rgba(168, 85, 247, 0.22);
}

/* ================== الثيمات الفاتحة (Light Themes) ================== */

/* ثيم الأبيض والذهبي (Light Gold) */
[data-theme="light-gold"] {
  --primary: #d4af37;
  --primary-light: #f5d061;
  --primary-dark: #aa8214;
  --accent-glow: rgba(212, 175, 55, 0.25);
  --badge-bg: rgba(212, 175, 55, 0.12);
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --border-color: rgba(212, 175, 55, 0.3);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-card: rgba(255, 255, 255, 0.9);
}

/* ثيم الأبيض والأسود الكلاسيكي (Light Monochrome) */
[data-theme="light-monochrome"] {
  --primary: #0f172a;
  --primary-light: #334155;
  --primary-dark: #000000;
  --accent-glow: rgba(15, 23, 42, 0.15);
  --badge-bg: rgba(15, 23, 42, 0.08);
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --border-color: rgba(15, 23, 42, 0.2);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --text-main: #020617;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-card: rgba(255, 255, 255, 0.9);
}

/* ثيم الأزرق المحيطي الفاتح (Light Ocean) */
[data-theme="light-ocean"] {
  --primary: #0ea5e9;
  --primary-light: #38bdf8;
  --primary-dark: #0284c7;
  --accent-glow: rgba(14, 165, 233, 0.25);
  --badge-bg: rgba(14, 165, 233, 0.12);
  --bg-main: #f0f9ff;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #e0f2fe;
  --border-color: rgba(14, 165, 233, 0.3);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --text-main: #0c4a6e;
  --text-muted: #0369a1;
  --text-subtle: #0284c7;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-card: rgba(255, 255, 255, 0.9);
}

/* ثيم الزمردي الفاتح (Light Emerald) */
[data-theme="light-emerald"] {
  --primary: #10b981;
  --primary-light: #34d399;
  --primary-dark: #059669;
  --accent-glow: rgba(16, 185, 129, 0.25);
  --badge-bg: rgba(16, 185, 129, 0.12);
  --bg-main: #f0fdf4;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #dcfce7;
  --border-color: rgba(16, 185, 129, 0.3);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --text-main: #14532d;
  --text-muted: #166534;
  --text-subtle: #15803d;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-card: rgba(255, 255, 255, 0.9);
}

/* ثيم الوردي الذهبي (Light Rose) */
[data-theme="light-rose"] {
  --primary: #f43f5e;
  --primary-light: #fb7185;
  --primary-dark: #e11d48;
  --accent-glow: rgba(244, 63, 94, 0.25);
  --badge-bg: rgba(244, 63, 94, 0.12);
  --bg-main: #fff1f2;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffe4e6;
  --border-color: rgba(244, 63, 94, 0.3);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --text-main: #881337;
  --text-muted: #9f1239;
  --text-subtle: #be123c;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-card: rgba(255, 255, 255, 0.9);
}

/* ثيم الفضي البلاتيني (Light Silver) */
[data-theme="light-silver"] {
  --primary: #64748b;
  --primary-light: #94a3b8;
  --primary-dark: #475569;
  --accent-glow: rgba(100, 116, 139, 0.25);
  --badge-bg: rgba(100, 116, 139, 0.12);
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --border-color: rgba(100, 116, 139, 0.3);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-subtle: #475569;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-card: rgba(255, 255, 255, 0.9);
}

/* --------------------------------------------------------------------------
   2. الإعدادات العامة والتهيئة (Reset & Base Styles)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 10%, var(--accent-glow) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, var(--accent-glow) 0%, transparent 40%);
  background-attachment: fixed;
}

/* شريط التمرير الفاخر */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* الحاوية الأساسية */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.35;
  font-weight: 700;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

.text-muted {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   3. المكونات المشتركة والأزرار الفاخرة (Shared Luxury Components)
   -------------------------------------------------------------------------- */
.luxury-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.luxury-btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-dark) 100%);
  color: #000;
  box-shadow: 0 6px 20px var(--accent-glow);
}

.luxury-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--accent-glow);
  filter: brightness(1.08);
}

.luxury-btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-color);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.luxury-btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: var(--badge-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px var(--accent-glow);
}

.luxury-btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.luxury-btn-ghost:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.04);
}

/* الشعار المونوغرام الفاخر (Monogram Crest YY) */
.monogram-crest {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-surface-elevated), var(--bg-surface));
  border: 2px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 1px;
  box-shadow: 0 0 15px var(--accent-glow);
  transition: all var(--transition-bounce);
  user-select: none;
}

.monogram-crest:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 0 25px var(--accent-glow);
}

/* عناوين الأقسام الفاخرة (Section Headers) */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem auto;
}

.section-badge {
  display: inline-block;
  background: var(--badge-bg);
  border: 1px solid var(--border-color);
  color: var(--primary-light);
  padding: 0.35rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin-bottom: 0.8rem;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem auto;
}

.section-divider span {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  border-radius: var(--radius-full);
}

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

/* --------------------------------------------------------------------------
   4. صفحة العرض: الترويسة الفاخرة (Public Header)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-titles h1, .brand-titles h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.brand-titles span {
  font-size: 0.78rem;
  color: var(--primary-light);
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-light);
  background: var(--badge-bg);
}

.mobile-only-admin-item {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-header-btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-color: var(--border-color);
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. صفحة العرض: القسم الترحيبي (Hero Section)
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 5rem 0 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--badge-bg);
  border: 1px solid var(--border-color);
  color: var(--primary-light);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.badge-pulsing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.hero-title {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  margin-bottom: 0.5rem;
}

.hero-name-highlight {
  display: block;
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  background: linear-gradient(135deg, var(--text-main) 30%, var(--primary-light) 70%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 0.3rem;
  font-weight: 900;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hero-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* إحصائيات Hero */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1);
}

.stat-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* بطاقة المشاريع المنجزة */
.stat-icon.stat-icon-projects {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.35));
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #a78bfa;
}

/* بطاقة رضا العملاء */
.stat-icon.stat-icon-clients {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(212, 175, 55, 0.35));
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #fbbf24;
}

/* بطاقة سنوات الخبرة والتميز */
.stat-icon.stat-icon-exp {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.35));
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

/* بطاقة الدعم والاستشارات 24/7 */
.stat-icon.stat-icon-support {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.35));
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #38bdf8;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-latin);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

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

/* الصورة الشخصية الفاخرة للـ Hero */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.luxury-photo-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.photo-ambient-glow {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(25px);
  z-index: 1;
}

.photo-frame-border {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  padding: 8px;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.4), rgba(255, 255, 255, 0.05), rgba(212, 175, 55, 0.2));
  box-shadow: var(--shadow-luxury);
}

.hero-profile-image {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 4px);
  background-color: var(--bg-surface-elevated);
}

/* بطاقات عائمة فاخرة */
.floating-luxury-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-luxury);
  backdrop-filter: blur(15px);
}

.floating-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--badge-bg);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.floating-luxury-badge strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-main);
}

.floating-luxury-badge span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.badge-top-right {
  top: 25px;
  right: -25px;
}

.badge-bottom-left {
  bottom: 25px;
  left: -25px;
}

/* --------------------------------------------------------------------------
   6. صفحة العرض: نبذة عني (About Section)
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
}

.about-main-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.about-card-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.about-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(245, 158, 11, 0.1));
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
  flex-shrink: 0;
}

.about-icon-box svg {
  width: 32px;
  height: 32px;
  display: block;
}

.about-card-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.features-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.feature-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.feature-item-icon svg {
  width: 18px;
  height: 18px;
}

.feature-item-icon.icon-blueprint {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.35));
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.feature-item-icon.icon-clean-code {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.35));
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.feature-item-icon.icon-punctuality {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.35));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.feature-item-icon.icon-continuous-support {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(147, 51, 234, 0.35));
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.feature-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.feature-item span {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.about-highlights-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  transition: all var(--transition-fast);
}

.highlight-box:hover {
  border-color: var(--border-color);
  transform: translateX(-4px);
  background: var(--bg-surface-elevated);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.highlight-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.highlight-box:hover .highlight-icon {
  transform: scale(1.1);
}

.highlight-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* بطاقة تطوير البرمجيات */
.highlight-icon.icon-software {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.35));
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

/* بطاقة قواعد البيانات والنظم */
.highlight-icon.icon-database {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(20, 184, 166, 0.35));
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

/* بطاقة تحليل النظم والحلول */
.highlight-icon.icon-analytics {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 88, 12, 0.35));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.highlight-info h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.highlight-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   7. صفحة العرض: المهارات والكفاءات (Skills Section)
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition-normal);
}

.skill-card:hover {
  border-color: var(--border-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.skill-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.skill-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--badge-bg);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.skill-name {
  font-weight: 700;
  font-size: 1.05rem;
}

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

.skill-percentage {
  font-family: var(--font-latin);
  font-weight: 800;
  color: var(--primary-light);
  font-size: 1.1rem;
}

.skill-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-full);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   8. صفحة العرض: باقة الخدمات (Services Section)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-luxury);
  border-color: var(--primary);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--badge-bg);
  border: 1px solid var(--border-color);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.service-badge {
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  color: var(--primary-light);
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}

.service-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-main);
}

.service-feature-item i {
  color: var(--primary);
  font-size: 0.85rem;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.2rem;
}

/* --------------------------------------------------------------------------
   9. صفحة العرض: معرض الأعمال (Portfolio Section)
   -------------------------------------------------------------------------- */
.portfolio-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.5rem 1.3rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--badge-bg);
  border-color: var(--primary);
  color: var(--primary-light);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.project-card:hover {
  border-color: var(--border-color);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.project-thumbnail-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--bg-surface-elevated);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.project-card:hover .project-image {
  transform: scale(1.06);
}

.project-category-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--border-color);
  color: var(--primary-light);
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.project-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.project-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   10. صفحة العرض: آراء العملاء (Testimonials Section)
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  border-color: var(--border-color);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.25rem;
}

.testimonial-quote {
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-client {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.client-avatar-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--badge-bg);
  border: 1px solid var(--border-color);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.client-name {
  font-weight: 700;
  font-size: 1rem;
}

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

/* --------------------------------------------------------------------------
   11. صفحة العرض: طلب خدمة والتواصل (Contact Section)
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-methods-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 2rem 0;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.contact-method-item:hover {
  border-color: var(--primary);
  transform: translateX(-4px);
  background: var(--bg-surface-elevated);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.method-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.contact-method-item:hover .method-icon {
  transform: scale(1.08);
}

.method-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}

/* أيقونة الواتساب والهاتف الأخضر */
.method-icon.icon-wa-phone {
  background: #25D366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

/* أيقونة الهاتف الجوال الذهبي/الأزرق */
.method-icon.icon-direct-phone {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

/* أيقونة البريد الإلكتروني بحرف M (Gmail Official) */
.method-icon.icon-gmail-badge {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(234, 67, 53, 0.3);
  padding: 6px;
}

/* أيقونة الموقع والخريطة */
.method-icon.icon-location-badge {
  background: linear-gradient(135deg, #ea4335, #c5221f);
  box-shadow: 0 4px 14px rgba(234, 67, 53, 0.35);
}

.method-details span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.method-details strong {
  font-size: 0.95rem;
  color: var(--text-main);
}

.social-connect-box h4 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.social-icons-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.8rem;
}

.social-link-btn {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.social-link-btn svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.35s ease;
}

.social-link-btn:hover {
  transform: translateY(-6px) scale(1.12);
}

.social-link-btn.btn-facebook:hover {
  box-shadow: 0 10px 26px rgba(24, 119, 242, 0.65);
}

.social-link-btn.btn-snapchat {
  border-radius: 12px;
}

.social-link-btn.btn-snapchat:hover {
  box-shadow: 0 10px 26px rgba(255, 252, 0, 0.65);
}

.social-link-btn.btn-whatsapp:hover {
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.65);
}

.social-link-btn.btn-telegram:hover {
  box-shadow: 0 10px 26px rgba(34, 158, 217, 0.65);
}

.social-link-btn.btn-instagram {
  border-radius: 12px;
}

.social-link-btn.btn-instagram:hover {
  box-shadow: 0 10px 26px rgba(220, 39, 67, 0.65);
}

.social-link-btn.btn-linkedin {
  border-radius: 11px;
}

.social-link-btn.btn-linkedin:hover {
  box-shadow: 0 10px 26px rgba(10, 102, 194, 0.65);
}

.social-link-btn.btn-github:hover {
  box-shadow: 0 10px 26px rgba(255, 255, 255, 0.3);
}

/* بطاقة نموذج طلب الخدمة */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-luxury);
}

.form-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--badge-bg);
  border: 1px solid var(--border-color);
  color: var(--primary-light);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--accent-glow);
  background: var(--bg-surface-elevated);
}

.form-submit-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.whatsapp-direct-btn {
  border-color: #25d366;
  color: #25d366;
}

.whatsapp-direct-btn:hover {
  background: #25d366;
  color: #000;
  border-color: #25d366;
}

/* --------------------------------------------------------------------------
   12. صفحة العرض: التذييل الفاخر (Public Footer)
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem 0;
  margin-top: 4rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 1rem;
  max-width: 380px;
}

.footer-links-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: var(--primary-light);
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links-col ul a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links-col ul a:hover {
  color: var(--primary);
  transform: translateX(-4px);
  display: inline-block;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-signature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   13. لوحة تحكم الأدمن الشاملة (Admin Dashboard Styling)
   -------------------------------------------------------------------------- */
#admin-view-root {
  display: none;
  min-height: 100vh;
  background-color: var(--bg-main);
}

#admin-view-root.active {
  display: block;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* الشريط الجانبي */
.admin-sidebar {
  width: 290px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  padding: 1.8rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 1000;
  overflow-y: auto;
  transition: transform var(--transition-normal);
}

.admin-sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.admin-sidebar-header-titles h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.admin-badge-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--success);
}

.admin-sidebar-close-btn {
  display: none;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-align: right;
  transition: all var(--transition-fast);
  position: relative;
}

.admin-nav-item i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
  color: var(--primary);
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.admin-nav-item.active {
  background: var(--badge-bg);
  color: var(--primary-light);
  border: 1px solid var(--border-color);
  font-weight: 700;
}

.nav-count-badge {
  margin-right: auto;
  font-family: var(--font-latin);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-main);
}

.nav-count-badge.alert-badge {
  background: var(--danger);
  color: #fff;
  border-color: transparent;
}

.admin-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.admin-logout-btn {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
  padding: 0.65rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.admin-logout-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--danger);
}

/* المحتوى الرئيسي للوحة الإدارة */
.admin-main {
  flex: 1;
  margin-right: 290px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  height: 75px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 800;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-mobile-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.admin-topbar-title h2 {
  font-size: 1.15rem;
  font-weight: 800;
}

.admin-sync-indicator {
  font-size: 0.78rem;
  color: var(--primary-light);
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-icon-btn:hover {
  transform: scale(1.08);
  background: var(--primary);
  color: #000;
}

.admin-content-body {
  padding: 2rem;
  flex: 1;
}

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

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

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

/* تبويب نظرة عامة (Overview) */
.admin-welcome-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-surface-elevated) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
  gap: 1.5rem;
}

.welcome-text h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.welcome-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 600px;
}

.welcome-actions {
  display: flex;
  gap: 0.75rem;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 1;
}

.admin-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.admin-stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 15px var(--accent-glow);
}

.admin-stat-card:hover::before {
  opacity: 1;
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.stat-card-title {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.stat-card-icon.gold { background: rgba(212, 175, 55, 0.15); color: #d4af37; }
.stat-card-icon.blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.stat-card-icon.red { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.stat-card-icon.green { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.stat-card-value {
  font-family: var(--font-latin);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.admin-two-cols-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}

.admin-panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}

.panel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-card-header h3 {
  font-size: 1.1rem;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.quick-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-tile i {
  font-size: 1.6rem;
  color: var(--primary);
}

.quick-tile span {
  font-size: 0.88rem;
  font-weight: 600;
}

.quick-tile:hover {
  border-color: var(--primary);
  background: var(--badge-bg);
  transform: translateY(-2px);
}

/* تبويبات الإدارة وإجراءات CRUD */
.tab-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.tab-header-actions h2 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.admin-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.admin-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.admin-item-card:hover {
  border-color: var(--border-color);
}

.admin-card-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.admin-action-btn {
  flex: 1;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.admin-action-btn.edit {
  background: var(--badge-bg);
  color: var(--primary-light);
  border-color: var(--border-color);
}

.admin-action-btn.edit:hover {
  background: var(--primary);
  color: #000;
}

.admin-action-btn.delete {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.3);
}

.admin-action-btn.delete:hover {
  background: var(--danger);
  color: #fff;
}

/* صندوق طلبات العملاء (Inbox) */
.admin-inbox-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.inbox-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
}

.inbox-item-card.unread {
  border-right: 4px solid var(--primary);
  background: var(--bg-surface-elevated);
}

.inbox-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.inbox-client-info strong {
  font-size: 1.05rem;
}

.inbox-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-latin);
}

.inbox-msg-body {
  background: var(--bg-surface);
  padding: 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.92rem;
  line-height: 1.6;
}

.inbox-card-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* الملف الشخصي ومحرر المحتوى */
.admin-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
}

.profile-photo-management-box {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.photo-preview-box img {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 0 15px var(--accent-glow);
}

.photo-upload-options {
  flex: 1;
}

.photo-input-methods {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.content-section-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.content-box-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* تبويب الأمان والنسخ الاحتياطي */
.security-header-box {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.security-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--badge-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.toggle-switch-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.toggle-switch-label input {
  display: none;
}

.toggle-slider {
  width: 48px;
  height: 26px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  position: relative;
  transition: all var(--transition-fast);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.toggle-switch-label input:checked + .toggle-slider {
  background: var(--primary);
  border-color: var(--primary);
}

.toggle-switch-label input:checked + .toggle-slider::before {
  transform: translateX(-22px);
  background: #000;
}

.backup-actions-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.danger-btn {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.4);
}

.danger-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--danger);
}

/* --------------------------------------------------------------------------
   14. النوافذ المنبثقة التفاعلية (Modals)
   -------------------------------------------------------------------------- */
.custom-modal-backdrop, .admin-auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.custom-modal-backdrop.active, .admin-auth-modal.active {
  display: flex;
  animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.custom-modal-box, .auth-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-luxury);
  animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-close-btn, .auth-close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover, .auth-close-btn:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.auth-lock-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--badge-bg);
  border: 2px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 0 25px var(--accent-glow);
}

.auth-card {
  max-width: 440px;
  text-align: center;
}

.auth-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.auth-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
}

/* --------------------------------------------------------------------------
   15. مبدل الثيمات الفاخر الخاص بلوحة الإدارة (Admin Luxury Theme Switcher)
   -------------------------------------------------------------------------- */
.admin-theme-dropdown-wrapper {
  position: relative;
}

.admin-theme-select-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-theme-select-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-2px);
}

.theme-active-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  display: inline-block;
}

.admin-theme-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 290px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px var(--accent-glow);
  backdrop-filter: blur(25px);
  z-index: 1000;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-theme-dropdown-menu.active {
  display: flex;
  animation: modalScaleUp 0.25s ease;
}

.admin-theme-dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.6rem;
}

.admin-theme-grid-opts {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.admin-theme-opt-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-muted);
}

.admin-theme-opt-item:hover, .admin-theme-opt-item.active {
  border-color: var(--primary);
  background: var(--badge-bg);
  color: var(--text-main);
  transform: translateX(-4px);
}

.admin-theme-opt-item.active {
  border-width: 1.5px;
  font-weight: 800;
}

.theme-color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
  flex-shrink: 0;
}

/* بطاقات اختيار الثيم في تبويب إعدادات الأدمن */
.theme-settings-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.theme-preview-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.theme-preview-card:hover, .theme-preview-card.active {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px var(--accent-glow);
  background: var(--bg-surface-elevated);
}

.theme-preview-card.active {
  border-color: var(--primary);
  border-width: 2px;
}

.theme-preview-bar {
  height: 12px;
  border-radius: 6px;
  width: 100%;
}

.theme-preview-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   16. حاوية التنبيهات المنبثقة (Toast Container)
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-luxury);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.92rem;
  pointer-events: auto;
  animation: toastSlideDown 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toastSlideDown {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.toast.success { border-color: var(--success); }
.toast.success i { color: var(--success); }
.toast.danger { border-color: var(--danger); }
.toast.danger i { color: var(--danger); }
.toast.info { border-color: var(--info); }
.toast.info i { color: var(--info); }

/* --------------------------------------------------------------------------
   17. التوافقية الشاملة والفائقة مع شاشات الجوال والأجهزة الذكية (Mobile Responsive)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* صفحة العرض: الصورة بالأعلى والنص بالأسفل */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.2rem;
  }

  .hero-visual {
    order: -1; /* جعل الصورة تظهر في الأعلى على الجوال */
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
  }

  .hero-content {
    order: 1; /* النص التعريفي أسفل الصورة */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .luxury-photo-wrapper {
    max-width: 290px;
    margin: 0 auto;
  }

  .hero-profile-image {
    height: 330px;
    width: 100%;
    object-fit: cover;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }

  /* لوحة الإدارة: تحويل كامل للشاشات المتوسطة والصغيرة */
  .admin-main {
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .admin-sidebar {
    width: 285px;
    max-width: 85vw;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 2500;
    transform: translateX(100%);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.85);
    background: var(--bg-surface);
    transition: transform var(--transition-normal);
  }

  .admin-sidebar.active {
    transform: translateX(0) !important;
  }

  .admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2400;
    display: none;
  }

  .admin-sidebar-backdrop.active {
    display: block !important;
  }

  .admin-mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
  }

  .admin-sidebar-close-btn {
    display: block !important;
    position: absolute;
    left: 1rem;
    top: 1rem;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    background: transparent;
    border: none;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .admin-two-cols-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  /* الترويسة وقائمة الجوال لصفحة العرض */
  .nav-menu-container {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    display: none;
    box-shadow: var(--shadow-luxury);
    z-index: 1000;
  }

  .nav-menu-container.active {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-contact-btn {
    display: none;
  }

  /* القسم الترحيبي على شاشات الجوال */
  .hero-section {
    padding: 3rem 0 2.5rem 0;
  }

  .luxury-photo-wrapper {
    max-width: 260px;
  }

  .hero-profile-image {
    height: 300px;
  }

  .hero-name-highlight {
    font-size: clamp(1.8rem, 6.5vw, 2.3rem);
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-description {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .hero-actions .luxury-btn {
    width: 100%;
  }

  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding-top: 1.5rem;
    width: 100%;
  }

  .stat-card {
    padding: 0.75rem 0.6rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
  }

  .stat-number {
    font-size: 1.25rem;
  }

  .stat-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .features-checklist {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 1.5rem 1rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }

  /* لوحة تحكم الأدمن على شاشات الجوال */
  .admin-topbar {
    padding: 0.6rem 0.9rem;
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .admin-topbar-title h2 {
    font-size: 0.95rem;
  }

  .admin-sync-indicator {
    font-size: 0.72rem;
  }

  .admin-topbar-actions {
    gap: 0.4rem;
  }

  .admin-icon-btn {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .admin-content-body {
    padding: 1rem 0.75rem;
    width: 100%;
    box-sizing: border-box;
  }

  .admin-welcome-card {
    flex-direction: column;
    text-align: center;
    padding: 1.4rem 1rem;
    gap: 1.2rem;
  }

  .welcome-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
  }

  .welcome-actions button {
    width: 100%;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .admin-stat-card {
    padding: 1rem 0.8rem;
  }

  .stat-card-value {
    font-size: 1.5rem;
  }

  .tab-header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .tab-header-actions h2 {
    font-size: 1.2rem;
  }

  .tab-header-actions .luxury-btn {
    width: 100%;
    justify-content: center;
  }

  .admin-items-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .admin-item-card {
    padding: 1.1rem;
  }

  .admin-card-actions {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .admin-action-btn {
    padding: 0.55rem;
    font-size: 0.85rem;
  }

  .admin-form-card {
    padding: 1.4rem 1rem;
  }

  .profile-photo-management-box {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
    padding: 1rem;
  }

  .photo-preview-box img {
    width: 100px;
    height: 100px;
  }

  .photo-upload-options {
    width: 100%;
  }

  .custom-modal-backdrop, .admin-auth-modal {
    padding: 0.6rem;
    z-index: 3000;
  }

  .custom-modal-box, .auth-card {
    padding: 1.5rem 1rem;
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-md);
    box-sizing: border-box;
  }

  .modal-close-btn, .auth-close-btn {
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .form-submit-actions {
    flex-direction: column;
    gap: 0.6rem;
  }

  .form-submit-actions button, .form-submit-actions a {
    width: 100%;
    justify-content: center;
  }

  .theme-switcher-floater {
    bottom: 1rem;
    left: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .stat-card {
    padding: 0.6rem 0.4rem;
  }

  .stat-number {
    font-size: 1.15rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .admin-stat-card {
    padding: 0.8rem 0.6rem;
  }

  .stat-card-value {
    font-size: 1.35rem;
  }

  .admin-welcome-card {
    padding: 1.1rem 0.8rem;
  }

  .welcome-text h2 {
    font-size: 1.25rem;
  }
}

/* =========================================================================
   تخصيص زر الإغلاق ليكون الصورة المرفقة (Custom X Button Image)
   ========================================================================= */
.modal-close-btn, .auth-close-btn {
  background-image: url("file:///C:/Users/yusef/.gemini/antigravity-ide/brain/6988e75f-8a4a-4513-80e4-61271650c3cd/media__1786314666127.png") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
  border: none !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
  border-radius: 8px !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.modal-close-btn i, .auth-close-btn i {
  display: none !important;
}

.modal-close-btn:hover, .auth-close-btn:hover {
  transform: scale(1.1) rotate(90deg) !important;
  background-color: transparent !important;
  box-shadow: 0 5px 15px rgba(239,68,68,0.4) !important;
}
