/* ============================
   ASTJO - Site Stylesheet
   ============================ */

/* === CSS Custom Properties === */
:root {
    --primary: #38bdf8;
    --primary-dark: #0284c7;
    --primary-light: #bae6fd;
    --secondary: #7c5cfc;
    --accent: #e879a8;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #ef4444;
    --text-primary: #1e293b;
    --text-secondary: #556680; /* رُفع التباين: كان #64748b (4.3:1 على الخلفيات الرمادية) ← الآن 5.4:1 */
    --text-muted: #94a3b8;
    --bg-primary: #fefefe;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --border-color: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 40px 80px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-ar: 'Tajawal', sans-serif;
    --font-en: 'Tajawal', sans-serif;
}

/* === Base Styles === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-ar);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.7;
    overflow-x: hidden;
    direction: rtl;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* === Custom Scrollbar === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* === Selection === */
::selection { background: var(--primary); color: white; }

/* === Utility Classes === */
.gradient-primary { background: linear-gradient(135deg, #38bdf8, #7c5cfc); }
.gradient-vibrant { background: linear-gradient(135deg, #38bdf8, #e879a8); }
.gradient-warm { background: linear-gradient(135deg, #fbbf24, #ef4444); }
.gradient-cool { background: linear-gradient(135deg, #7c5cfc, #38bdf8); }

.gradient-text {
    background: linear-gradient(135deg, #38bdf8, #7c5cfc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    }
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass-dark {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    }
}

/* === Animations === */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(56, 189, 248, 0.3); }
    50% { box-shadow: 0 0 40px rgba(56, 189, 248, 0.6); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

/* === Buttons === */
.btn-primary-gradient {
    background: linear-gradient(135deg, #38bdf8, #7c5cfc);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 32px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
    color: white;
}

.btn-primary-gradient::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary-gradient:hover::after { left: 100%; }

.btn-glass {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px 32px;
    font-weight: 600;
    transition: var(--transition);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .btn-glass {
    backdrop-filter: blur(10px);
    }
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-2px);
}

/* === Shadows === */
.shadow-elegant { box-shadow: var(--shadow-md); }
.shadow-primary { box-shadow: 0 10px 40px rgba(56, 189, 248, 0.2); }

/* === Background Patterns === */
.bg-mesh {
    background:
        radial-gradient(at 40% 20%, rgba(56,189,248,0.15) 0, transparent 50%),
        radial-gradient(at 80% 0%, rgba(124,92,252,0.1) 0, transparent 50%),
        radial-gradient(at 0% 50%, rgba(232,121,168,0.08) 0, transparent 50%),
        radial-gradient(at 80% 50%, rgba(251,191,36,0.08) 0, transparent 50%);
}

.bg-dots {
    background-image: radial-gradient(circle, var(--text-muted) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* ============================
   NAVBAR
   ============================ */
.navbar {
    padding: 16px 0;
    transition: var(--transition);
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .navbar.scrolled {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    }
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: white !important;
    transition: var(--transition);
}

.navbar.scrolled .navbar-brand { color: var(--text-primary) !important; }

.brand-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    margin-left: 10px;
    border-radius: 8px;
    transition: var(--transition);
}

[dir="ltr"] .brand-logo {
    margin-left: 0;
    margin-right: 10px;
}

.navbar.scrolled .brand-logo {
    height: 36px;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    transition: var(--transition);
    position: relative;
}

/* Desktop only — scrolled navbar text color */
@media (min-width: 992px) {
.navbar.scrolled .nav-link { color: var(--text-secondary) !important; }
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
    transform: translateX(50%);
}

.navbar .nav-link:hover::after { width: 70%; }

.navbar .nav-link:hover { color: white !important; }
/* Desktop only — scrolled navbar hover */
@media (min-width: 992px) {
.navbar.scrolled .nav-link:hover { color: var(--primary) !important; }
}

.btn-lang {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    font-size: 0.9rem;
}

.navbar.scrolled .btn-lang {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

/* Hamburger — 3 lines stacked vertically (box-shadow method - bulletproof) */
.navbar-toggler {
    border: none !important;
    padding: 8px 10px !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    width: 44px !important;
    height: 44px !important;
    cursor: pointer;
    position: relative;
}
.hamburger-icon {
    display: block !important;
    width: 26px !important;
    height: 3px !important;
    background: #ffffff !important;
    border-radius: 2px !important;
    position: relative !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    box-shadow: 0 -8px 0 #ffffff, 0 8px 0 #ffffff !important;
    transition: var(--transition);
}

/* Hamburger — ALWAYS WHITE in all modes and states */
.navbar.scrolled .hamburger-icon,
.navbar:not(.scrolled) .hamburger-icon,
[data-theme="dark"] .hamburger-icon,
[data-theme="dark"] .navbar.scrolled .hamburger-icon {
    background: #ffffff !important;
    box-shadow: 0 -8px 0 #ffffff, 0 8px 0 #ffffff !important;
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
    min-height: 100vh;
    position: relative;
    background: #111827;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.mesh-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 10s ease-in-out infinite;
}

.mesh-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(56,189,248,0.4), transparent);
    top: -200px; right: -100px;
    animation-delay: 0s;
}

.mesh-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(124,92,252,0.3), transparent);
    bottom: -150px; left: -100px;
    animation-delay: -3s;
}

.mesh-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(232,121,168,0.2), transparent);
    top: 40%; left: 40%;
    animation-delay: -6s;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 2;
}

.hero > .container { position: relative; z-index: 3; }

.hero-slides { position: relative; }

.hero-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active { display: block; opacity: 1; }

.hero-content {
    padding-top: 80px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #7dd3fc, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Floating Cards */
.hero-visual {
    position: relative;
    height: 400px;
}

.hero-logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

[dir="rtl"] .hero-logo-container {
    left: 50%;
}

.hero-logo-img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(56, 189, 248, 0.3));
    transition: transform 0.4s ease;
}

.hero-logo-container:hover .hero-logo-img {
    transform: scale(1.05);
}

/* Orbiting Dots */
.orbit-dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform-origin: center center;
}

.orbit-ring-1 {
    width: 300px;
    height: 300px;
    margin-top: -150px;
    margin-left: -150px;
    animation: orbit-spin-1 15s linear infinite;
}

.orbit-ring-2 {
    width: 370px;
    height: 370px;
    margin-top: -185px;
    margin-left: -185px;
    animation: orbit-spin-2 20s linear infinite;
}

.orbit-ring-3 {
    width: 420px;
    height: 420px;
    margin-top: -210px;
    margin-left: -210px;
    animation: orbit-spin-3 25s linear infinite;
}

.dot-dot {
    position: absolute;
    width: var(--dot-size);
    height: var(--dot-size);
    background: var(--dot-color);
    border-radius: 50%;
    top: 0;
    left: 50%;
    margin-left: calc(var(--dot-size) / -2);
    margin-top: calc(var(--dot-size) / -2);
    box-shadow: 0 0 10px var(--dot-color), 0 0 20px var(--dot-color);
    animation: dot-pulse 3s ease-in-out var(--dot-delay) infinite;
    opacity: 0.85;
}

@keyframes orbit-spin-1 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbit-spin-2 {
    from { transform: rotate(120deg); }
    to { transform: rotate(480deg); }
}

@keyframes orbit-spin-3 {
    from { transform: rotate(240deg); }
    to { transform: rotate(600deg); }
}

@keyframes dot-pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Sparkle Dots scattered around */
.sparkle-dot {
    position: absolute;
    left: var(--sp-x);
    top: var(--sp-y);
    width: var(--sp-size);
    height: var(--sp-size);
    background: var(--sp-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--sp-color), 0 0 16px var(--sp-color);
    animation: sparkle-fade 4s ease-in-out var(--sp-delay) infinite;
    pointer-events: none;
}

@keyframes sparkle-fade {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.9; transform: scale(1.3); }
}

/* Hero Dots */
.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dots .dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dots .dot.active {
    background: var(--primary);
    width: 36px;
    border-radius: 6px;
}

/* ============================
   SECTION COMMON
   ============================ */
.section-header { margin-bottom: 48px; text-align: center; }

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    color: var(--primary-dark);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================
   SERVICES SECTION
   ============================ */
.services-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px; height: 70px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #38bdf8, #7c5cfc);
    color: white;
    transform: scale(1.1);
}

.service-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
}

.service-features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.feature-tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ============================
   PROCESS SECTION
   ============================ */
.process-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.process-step {
    text-align: center;
    padding: 32px 20px;
    position: relative;
}

.process-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #7c5cfc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.process-step:hover .process-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
}

.process-number {
    font-size: 3rem;
    font-weight: 900;
    /* أرقام واضحة: تدرّج أزرق مخضر بتباين عالٍ على الخلفية الفاتحة + لون بديل صلب */
    color: #0d9488;
    background: linear-gradient(135deg, #0d9488, #0284c7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    line-height: 1;
}

.process-step h4 { font-weight: 700; margin-bottom: 12px; }

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

/* ============================
   ABOUT SECTION
   ============================ */
.about-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.about-content .section-badge { margin-bottom: 16px; }

.about-content .section-title { text-align: right; margin-bottom: 24px; }

.about-content p { color: var(--text-secondary); line-height: 1.9; margin-bottom: 16px; }

.value-card {
    padding: 28px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.value-card i { font-size: 2rem; color: var(--primary); margin-bottom: 12px; }

.value-card h5 { font-weight: 700; margin-bottom: 8px; }

.value-card p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }

/* Stats */
.stat-card {
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    color: white;
    transition: var(--transition);
}

.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* 4 Distinct Beautiful Stat Colors */
.gradient-teal { background: linear-gradient(135deg, #1e3a5f, #2c5282); }
.gradient-blue { background: linear-gradient(135deg, #22543d, #276749); }
.gradient-purple { background: linear-gradient(135deg, #553c9a, #6b46c1); }
.gradient-orange { background: linear-gradient(135deg, #9b2c2c, #c53030); }

.stat-icon { font-size: 2rem; margin-bottom: 12px; opacity: 0.9; }
.stat-number { font-size: 2.5rem; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 0.95rem; opacity: 0.9; }

/* ============================
   PORTFOLIO SECTION
   ============================ */
.portfolio-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.portfolio-card {
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.portfolio-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.portfolio-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #38bdf8, #7c5cfc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    opacity: 0.5;
}

.portfolio-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }

.portfolio-category {
    display: inline-block;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    color: var(--primary-dark);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    align-self: flex-start;
}

.portfolio-info h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }

.portfolio-info p { color: var(--text-secondary); font-size: 0.9rem; flex-grow: 1; }

/* ============================
   TESTIMONIALS SECTION
   ============================ */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

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

.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.testimonial-stars { margin-bottom: 16px; }
.testimonial-stars i { color: #fbbf24; font-size: 0.9rem; }

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

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.author-avatar { font-size: 2.5rem; color: var(--primary); }

.testimonial-author strong { display: block; font-size: 0.95rem; }
.testimonial-author small { color: var(--text-muted); font-size: 0.85rem; }

/* ============================
   CTA SECTION
   ============================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #38bdf8, #7c5cfc, #9333ea);
    background-size: 200% 200%;
    animation: gradient-shift 6s ease infinite;
    color: white;
}

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

.cta-section p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ============================
   CONTACT SECTION
   ============================ */
.contact-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.contact-form {
    padding: 40px;
}

.contact-form .form-group { margin-bottom: 20px; }

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.contact-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg-primary);
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(56,189,248,0.1);
}

.form-success {
    text-align: center;
    padding: 40px 0;
}

.form-success i { font-size: 3rem; margin-bottom: 16px; display: block; }

.contact-info-cards { display: flex; flex-direction: column; gap: 16px; }

.contact-info-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.contact-info-card:hover { transform: translateX(-5px); box-shadow: var(--shadow-md); }

.contact-info-icon {
    width: 50px; height: 50px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-info-card h5 { font-weight: 700; font-size: 0.95rem; margin-bottom: 2px; }
.contact-info-card p, .contact-info-card a { color: var(--text-secondary); font-size: 0.9rem; text-decoration: none; }
.contact-info-card a:hover { color: var(--primary); }

/* [10.1] القيم الثانوية في كروت التواصل (هاتف/إيميل/واتساب ثاني + رابط الخريطة) */
.contact-info-card a.contact-sub { display: block; font-size: 0.85rem; opacity: 0.92; }
.contact-sub-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.contact-sub-label { font-size: 0.78rem; color: var(--text-muted, #94a3b8); font-weight: 600; }
.contact-map-hint {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.8rem; font-weight: 600; margin-top: 3px;
    color: var(--primary) !important;
    transition: gap 0.2s ease, transform 0.2s ease;
}
.contact-map-hint:hover { gap: 8px; color: var(--primary-dark, #1d4ed8) !important; }
.contact-map-hint i { font-size: 0.75rem; }
.footer-website { margin-top: 14px; }
.footer-website a {
    display: inline-flex; align-items: center; gap: 7px;
    color: rgba(255,255,255,0.75); font-size: 0.9rem; font-weight: 600;
    text-decoration: none; padding: 6px 14px; border-radius: 999px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    transition: all 0.25s ease;
}
.footer-website a:hover {
    color: #fff; background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25); transform: translateY(-2px);
}
.footer-website i { color: var(--turquoise, #22d3ee); }
[data-theme="dark"] .contact-sub-label { color: var(--dm-text-muted, #64748b); }

/* ============================
   FOOTER
   ============================ */
.footer-section {
    background: #111827;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 20px;
}

.footer-brand h4 { color: white; font-weight: 800; margin-bottom: 16px; }
.footer-logo-wrapper { margin-bottom: 16px; }
.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
    filter: brightness(0.9);
}
.footer-brand p { color: rgba(255, 255, 255, 0.6); line-height: 1.8; font-size: 0.95rem; }

.social-links { display: flex; gap: 12px; margin-top: 20px; }

.social-links a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: linear-gradient(135deg, #38bdf8, #7c5cfc);
    transform: translateY(-3px);
}

.footer-section h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links { list-style: none; padding: 0; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover { color: white; padding-right: 8px; }

.footer-contact { list-style: none; padding: 0; }

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.footer-contact i { color: var(--primary); width: 20px; text-align: center; }

.footer-contact a { color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.footer-contact a:hover { color: white; }

.footer-divider { border-color: rgba(255, 255, 255, 0.1); margin: 30px 0 20px; }

/* Share buttons in footer */
.footer-share-label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.footer-share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.footer-share-buttons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}
.footer-share-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border-color: transparent;
}
.footer-share-buttons a[title="Facebook"]:hover { background: #1877f2; }
.footer-share-buttons a[title="Twitter / X"]:hover { background: #1da1f2; }
.footer-share-buttons a[title="LinkedIn"]:hover { background: #0a66c2; }
.footer-share-buttons a[title="WhatsApp"]:hover { background: #25d366; }
.footer-share-buttons a[title="Telegram"]:hover { background: #0088cc; }

/* Dark mode share buttons */
[data-theme="dark"] .footer-share-label { color: var(--dm-text-muted); }
[data-theme="dark"] .footer-share-buttons a {
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.15);
    color: var(--dm-text-muted);
}
[data-theme="dark"] .footer-share-buttons a:hover { color: #ffffff; }

.footer-bottom p { color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; }

/* ============================
   CHAT WIDGET
   ============================ */
.chat-widget { position: fixed; bottom: 24px; left: 24px; z-index: 9999; }

[dir="ltr"] .chat-widget { left: auto; right: 24px; }

.chat-fab {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #7c5cfc);
    color: white;
    border: none;
    font-size: 1.5rem;
    box-shadow: 0 6px 25px rgba(56, 189, 248, 0.4);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-fab:hover { transform: scale(1.1); }

.chat-window {
    position: absolute;
    bottom: 75px;
    left: 0;
    width: 360px;
    height: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: none;
    flex-direction: column;
    background: white;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.3s ease;
}

[dir="ltr"] .chat-window { left: auto; right: 0; }

.chat-window.open { display: flex; }

.chat-header {
    background: linear-gradient(135deg, #38bdf8, #7c5cfc);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
}

[dir="ltr"] .chat-avatar { margin-left: 0; margin-right: 12px; }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: var(--bg-secondary);
}

.chat-msg { margin-bottom: 12px; display: flex; }

.chat-msg.user { justify-content: flex-end; }
.chat-msg.support { justify-content: flex-start; }

.chat-bubble {
    max-width: 80%;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-msg.support .chat-bubble {
    background: white;
    color: var(--text-primary);
    border-bottom-right-radius: 4px;
}

.chat-msg.user .chat-bubble {
    background: linear-gradient(135deg, #38bdf8, #7c5cfc);
    color: white;
    border-bottom-left-radius: 4px;
}

.chat-input {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: white;
    border-top: 1px solid var(--border-color);
}

.chat-input input {
    flex: 1;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 10px 16px;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.chat-input input:focus { border-color: var(--primary); }

.chat-input button {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #7c5cfc);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.chat-input button:hover { transform: scale(1.05); }

/* ============================
   AUTH PAGES
   ============================ */
.auth-page {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
}

.auth-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #38bdf8, #7c5cfc, #9333ea);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
    z-index: -1;
}

.auth-card {
    padding: 40px;
    border-radius: var(--radius-lg);
}

.auth-logo {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #7c5cfc);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
    color: white;
}

.auth-card .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.auth-card .form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    transition: var(--transition);
}

.auth-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(56,189,248,0.1);
}

/* ============================
   ADMIN STYLES
   ============================ */
.admin-body {
    background: var(--bg-secondary);
    min-height: 100vh;
    display: flex;
}

.admin-sidebar {
    width: 280px;
    height: 100vh;
    max-height: 100vh;
    background: linear-gradient(180deg, #111827, #1e293b);
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1050;
    transition: var(--transition);
    overflow-y: auto;
    padding-bottom: 20px;
}

[dir="ltr"] .admin-sidebar { right: auto; left: 0; }

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

.sidebar-brand {
    color: white !important;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-brand i {
    font-size: 1.4rem;
    background: linear-gradient(135deg, #7dd3fc, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-close {
    color: white;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.sidebar-nav { padding: 16px 12px; }

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    margin-bottom: 4px;
    font-size: 0.95rem;
    width: 100%;
    border: none;
    background: none;
    text-align: right;
    cursor: pointer;
}

[dir="ltr"] .sidebar-nav .nav-link { text-align: left; }

.sidebar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
}

.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, #38bdf8, #7c5cfc);
    color: white !important;
}

.sidebar-nav .nav-link i { width: 20px; text-align: center; }

.sidebar-divider { border-color: rgba(255, 255, 255, 0.1); margin: 12px 0; }

.admin-main {
    flex: 1;
    margin-right: 280px;
    min-height: 100vh;
}

[dir="ltr"] .admin-main { margin-right: 0; margin-left: 280px; }

.admin-header {
    background: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: none;
}

.admin-content { padding: 24px; }

/* Admin Stat Cards */
.admin-stat-card {
    border-radius: var(--radius-md);
    padding: 24px;
    color: white;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.admin-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.admin-stat-card .stat-icon {
    width: 60px; height: 60px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.admin-stat-card .stat-info h3 { font-size: 2rem; font-weight: 800; margin: 0; line-height: 1; }
.admin-stat-card .stat-info p { margin: 4px 0 0; opacity: 0.9; font-size: 0.9rem; }

/* Admin Content Stat */
.admin-content-stat {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
}

.admin-content-stat span { font-weight: 500; color: var(--text-secondary); }
.admin-content-stat strong { font-size: 1.5rem; color: var(--text-primary); }

/* Admin Cards */
.admin-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.card-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.card-header-custom h5 { margin: 0; font-weight: 700; }

.card-body-custom { padding: 16px 24px; }

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.recent-item:last-child { border-bottom: none; }

.recent-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-left: 12px;
}

[dir="ltr"] .recent-avatar { margin-left: 0; margin-right: 12px; }

/* Admin Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 14px 16px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

[dir="ltr"] .admin-table th, [dir="ltr"] .admin-table td { text-align: left; }

.admin-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.admin-table tbody tr:hover { background: var(--bg-secondary); }

.table-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-left: 10px;
}

[dir="ltr"] .table-avatar { margin-left: 0; margin-right: 10px; }

.action-btns { display: flex; gap: 6px; }

/* Message Cards */
.message-card { padding: 24px; height: 100%; }
.message-header { margin-bottom: 8px; }
.message-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-left: 10px;
}
[dir="ltr"] .message-avatar { margin-left: 0; margin-right: 10px; }
.message-text { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }
.message-meta { margin-top: 8px; }

/* Service Admin Cards */
.service-admin-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-admin-icon {
    width: 50px; height: 50px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
}

/* Testimonial Admin Cards */
.testimonial-admin-card { padding: 24px; }
.testimonial-admin-avatar { font-size: 2rem; color: var(--primary); margin-left: 10px; }
[dir="ltr"] .testimonial-admin-avatar { margin-left: 0; margin-right: 10px; }

/* Project Admin */
.project-admin-image {
    height: 180px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder { font-size: 3rem; color: var(--text-muted); }

/* Admin Page Header */
.admin-page-header h4 { font-weight: 700; color: var(--text-primary); }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
    .hero-title { font-size: 2.8rem; }
    .section-title { font-size: 2rem; }
    .hero-visual { height: 350px; }
    .hero-logo-img { width: 180px; height: 180px; }
    .orbit-ring-1 { width: 260px; height: 260px; margin-top: -130px; margin-left: -130px; }
    .orbit-ring-2 { width: 320px; height: 320px; margin-top: -160px; margin-left: -160px; }
    .orbit-ring-3 { width: 370px; height: 370px; margin-top: -185px; margin-left: -185px; }
    .admin-sidebar { transform: translateX(100%); }
    [dir="ltr"] .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .sidebar-toggle { display: block; }
    .admin-main { margin-right: 0; }
    [dir="ltr"] .admin-main { margin-left: 0; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 1.7rem; }
    .hero-desc { font-size: 1rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; text-align: center; }
    /* Mobile: hero visual on top, smaller */
    .hero-visual { height: 280px; margin-bottom: 10px; }
    .hero-logo-img { width: 140px; height: 140px; filter: drop-shadow(0 15px 40px rgba(56, 189, 248, 0.25)); }
    .orbit-ring-1 { width: 200px; height: 200px; margin-top: -100px; margin-left: -100px; }
    .orbit-ring-2 { width: 250px; height: 250px; margin-top: -125px; margin-left: -125px; }
    .orbit-ring-3 { width: 290px; height: 290px; margin-top: -145px; margin-left: -145px; }
    .dot-dot { box-shadow: 0 0 6px var(--dot-color), 0 0 12px var(--dot-color); }
    .sparkle-dot { box-shadow: 0 0 4px var(--sp-color), 0 0 8px var(--sp-color); }
    .contact-section .row { flex-direction: column; }
    .cta-section h2 { font-size: 1.8rem; }
    .footer-section .col-lg-4, .footer-section .col-lg-3 { margin-bottom: 30px; }

    .chat-window { width: 310px; height: 420px; }
    /* Fix chat widget for small screens */
    @media (max-width: 400px) {
        .chat-window { width: calc(100vw - 48px); height: 60vh; bottom: 70px; left: 8px; right: 8px; }
        [dir="ltr"] .chat-window { left: auto; right: 8px; }
        .chat-widget { left: 16px; bottom: 16px; }
        [dir="ltr"] .chat-widget { left: auto; right: 16px; }
    }

    /* Admin responsive */
    .admin-stat-card { padding: 16px; }
    .admin-stat-card .stat-info h3 { font-size: 1.5rem; }
    .admin-table { font-size: 0.85rem; }
    .admin-table th, .admin-table td { padding: 10px 8px; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.8rem; }
    .hero-content { padding-top: 40px; }
    /* Small mobile: compact hero visual */
    .hero-visual { height: 240px; }
    .hero-logo-img { width: 120px; height: 120px; }
    .orbit-ring-1 { width: 170px; height: 170px; margin-top: -85px; margin-left: -85px; }
    .orbit-ring-2 { width: 210px; height: 210px; margin-top: -105px; margin-left: -105px; }
    .orbit-ring-3 { width: 240px; height: 240px; margin-top: -120px; margin-left: -120px; }
    .services-section, .about-section, .portfolio-section, .testimonials-section, .contact-section { padding: 60px 0; }
    .process-section { padding: 60px 0; }
    .navbar-brand { font-size: 1.1rem; }
}

/* ============================
   THEME TOGGLE BUTTON
   ============================ */
.theme-toggle {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    overflow: hidden;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: rotate(15deg) scale(1.1);
}

.theme-toggle i {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light mode: show moon, hide sun */
.theme-toggle #themeIconDark { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle #themeIconLight { opacity: 0; transform: rotate(-90deg) scale(0.5); }

/* Dark mode: show sun, hide moon */
[data-theme="dark"] .theme-toggle #themeIconDark { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="dark"] .theme-toggle #themeIconLight { opacity: 1; transform: rotate(0deg) scale(1); }

/* ============================
   DARK MODE - COMPREHENSIVE
   ============================ */
/* Vibrant color palette */
/* Turquoise: #00e5ff  |  Purple: #b44aff  |  Orange: #ff6b35  |  Magenta: #ff2d8a  |  Cyan: #00ffd5  |  Lime: #a8ff00 */

[data-theme="dark"] {
    --dm-bg-primary: #0a0e1a;
    --dm-bg-secondary: #0f1525;
    --dm-bg-tertiary: #161d30;
    --dm-bg-card: rgba(15, 21, 37, 0.85);
    --dm-text-primary: #e8eaf0;
    --dm-text-secondary: #94a3b8;
    --dm-text-muted: #8fa2bc; /* رُفع التباين: كان #64748b (4.16:1 على الداكن) ← الآن 7.5:1 */
    --dm-border: rgba(100, 130, 180, 0.15);
    --dm-turquoise: #00e5ff;
    --dm-purple: #b44aff;
    --dm-orange: #ff6b35;
    --dm-magenta: #ff2d8a;
    --dm-cyan: #00ffd5;
    --dm-lime: #a8ff00;
    --dm-navy: #1e3a5f;
    --dm-glass-bg: rgba(15, 21, 37, 0.8);
    --dm-glass-border: rgba(100, 130, 180, 0.2);
    --dm-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] body {
    background: var(--dm-bg-primary);
    color: var(--dm-text-primary);
}

[data-theme="dark"] ::selection {
    background: var(--dm-purple);
    color: white;
}

/* === Dark Navbar === */
[data-theme="dark"] .navbar.scrolled {
    background: rgba(10, 14, 26, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 0 1px rgba(0, 229, 255, 0.1);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    [data-theme="dark"] .navbar.scrolled {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    }
}

[data-theme="dark"] .navbar.scrolled .navbar-brand { color: var(--dm-text-primary) !important; }
/* Dark mode scrolled nav — Desktop only */
@media (min-width: 992px) {
[data-theme="dark"] .navbar.scrolled .nav-link { color: var(--dm-text-secondary) !important; }
[data-theme="dark"] .navbar.scrolled .nav-link:hover { color: var(--dm-turquoise) !important; }
}
[data-theme="dark"] .navbar.scrolled .nav-link::after {
    background: linear-gradient(90deg, var(--dm-turquoise), var(--dm-purple));
}

[data-theme="dark"] .navbar.scrolled .theme-toggle {
    background: rgba(0, 229, 255, 0.1);
    color: var(--dm-turquoise);
    border: 1px solid rgba(0, 229, 255, 0.2);
}
[data-theme="dark"] .navbar.scrolled .btn-lang {
    background: var(--dm-bg-tertiary);
    border-color: var(--dm-border);
    color: var(--dm-text-secondary);
}

/* === Dark Hero - Enhanced vibrant mesh === */
[data-theme="dark"] .hero {
    background: #060a14;
}

[data-theme="dark"] .mesh-1 {
    background: radial-gradient(circle, rgba(0, 229, 255, 0.25), transparent);
}
[data-theme="dark"] .mesh-2 {
    background: radial-gradient(circle, rgba(180, 74, 255, 0.2), transparent);
}
[data-theme="dark"] .mesh-3 {
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15), transparent);
}

[data-theme="dark"] .hero-badge {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
    color: var(--dm-turquoise);
}

[data-theme="dark"] .hero-title .gradient-text {
    background: linear-gradient(135deg, var(--dm-turquoise), var(--dm-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Dark Section Common === */
[data-theme="dark"] .services-section,
[data-theme="dark"] .about-section,
[data-theme="dark"] .portfolio-section,
[data-theme="dark"] .testimonials-section {
    background: var(--dm-bg-secondary);
}

[data-theme="dark"] .process-section,
[data-theme="dark"] .contact-section {
    background: var(--dm-bg-primary);
}

[data-theme="dark"] .section-badge {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(180, 74, 255, 0.15));
    color: var(--dm-turquoise);
}

[data-theme="dark"] .section-title { color: var(--dm-text-primary); }
[data-theme="dark"] .section-desc { color: var(--dm-text-secondary); }

/* === Dark Buttons === */
[data-theme="dark"] .btn-primary-gradient {
    background: linear-gradient(135deg, var(--dm-turquoise), var(--dm-purple));
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
}
[data-theme="dark"] .btn-primary-gradient:hover {
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.5);
    color: white;
}
[data-theme="dark"] .btn-primary-gradient::after {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

[data-theme="dark"] .btn-glass {
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.3);
    color: var(--dm-turquoise);
}
[data-theme="dark"] .btn-glass:hover {
    background: rgba(0, 229, 255, 0.15);
    color: var(--dm-turquoise);
}

/* === Dark Service Cards - Each unique vibrant color === */
[data-theme="dark"] .service-card {
    background: var(--dm-bg-card);
    border: 1px solid var(--dm-glass-border);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    [data-theme="dark"] .service-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    }
}

[data-theme="dark"] .service-card:nth-child(1) { border-top: 3px solid var(--dm-turquoise); }
[data-theme="dark"] .service-card:nth-child(2) { border-top: 3px solid var(--dm-purple); }
[data-theme="dark"] .service-card:nth-child(3) { border-top: 3px solid var(--dm-orange); }
[data-theme="dark"] .service-card:nth-child(4) { border-top: 3px solid var(--dm-magenta); }
[data-theme="dark"] .service-card:nth-child(5) { border-top: 3px solid var(--dm-cyan); }
[data-theme="dark"] .service-card:nth-child(6) { border-top: 3px solid var(--dm-lime); }

[data-theme="dark"] .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .service-card:nth-child(1):hover { box-shadow: 0 20px 60px rgba(0, 229, 255, 0.15); }
[data-theme="dark"] .service-card:nth-child(2):hover { box-shadow: 0 20px 60px rgba(180, 74, 255, 0.15); }
[data-theme="dark"] .service-card:nth-child(3):hover { box-shadow: 0 20px 60px rgba(255, 107, 53, 0.15); }
[data-theme="dark"] .service-card:nth-child(4):hover { box-shadow: 0 20px 60px rgba(255, 45, 138, 0.15); }
[data-theme="dark"] .service-card:nth-child(5):hover { box-shadow: 0 20px 60px rgba(0, 255, 213, 0.15); }
[data-theme="dark"] .service-card:nth-child(6):hover { box-shadow: 0 20px 60px rgba(168, 255, 0, 0.15); }

[data-theme="dark"] .service-icon {
    background: rgba(0, 229, 255, 0.08);
    color: var(--dm-text-secondary);
}

[data-theme="dark"] .service-card:nth-child(1) .service-icon { background: rgba(0, 229, 255, 0.1); color: var(--dm-turquoise); }
[data-theme="dark"] .service-card:nth-child(2) .service-icon { background: rgba(180, 74, 255, 0.1); color: var(--dm-purple); }
[data-theme="dark"] .service-card:nth-child(3) .service-icon { background: rgba(255, 107, 53, 0.1); color: var(--dm-orange); }
[data-theme="dark"] .service-card:nth-child(4) .service-icon { background: rgba(255, 45, 138, 0.1); color: var(--dm-magenta); }
[data-theme="dark"] .service-card:nth-child(5) .service-icon { background: rgba(0, 255, 213, 0.1); color: var(--dm-cyan); }
[data-theme="dark"] .service-card:nth-child(6) .service-icon { background: rgba(168, 255, 0, 0.1); color: var(--dm-lime); }

[data-theme="dark"] .service-card:hover .service-icon {
    color: white;
}

[data-theme="dark"] .service-card:nth-child(1):hover .service-icon { background: linear-gradient(135deg, var(--dm-turquoise), var(--dm-cyan)); }
[data-theme="dark"] .service-card:nth-child(2):hover .service-icon { background: linear-gradient(135deg, var(--dm-purple), #d946ef); }
[data-theme="dark"] .service-card:nth-child(3):hover .service-icon { background: linear-gradient(135deg, var(--dm-orange), #ff8c42); }
[data-theme="dark"] .service-card:nth-child(4):hover .service-icon { background: linear-gradient(135deg, var(--dm-magenta), #f472b6); }
[data-theme="dark"] .service-card:nth-child(5):hover .service-icon { background: linear-gradient(135deg, var(--dm-cyan), var(--dm-turquoise)); }
[data-theme="dark"] .service-card:nth-child(6):hover .service-icon { background: linear-gradient(135deg, var(--dm-lime), #d4ff00); }

[data-theme="dark"] .service-card h3 { color: var(--dm-text-primary); }
[data-theme="dark"] .service-card p { color: var(--dm-text-secondary); }
[data-theme="dark"] .feature-tag {
    background: var(--dm-bg-tertiary);
    color: var(--dm-text-muted);
}

/* === Dark Process Section - Each step unique color === */
[data-theme="dark"] .process-number {
    color: var(--dm-turquoise);
    background: linear-gradient(135deg, var(--dm-turquoise), var(--dm-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme="dark"] .process-step h4 { color: var(--dm-text-primary); }
[data-theme="dark"] .process-step p { color: var(--dm-text-secondary); }

/* === Placeholder contrast: Bootstrap default rgba(33,37,41,.75) is dark gray → invisible on dark inputs === */
[data-theme="dark"] .form-control::placeholder {
    color: #8fa2bc;
    opacity: 1;
}

[data-theme="dark"] .process-step:nth-child(1) .process-icon {
    background: linear-gradient(135deg, var(--dm-turquoise), var(--dm-cyan));
    color: white;
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.3);
}
[data-theme="dark"] .process-step:nth-child(2) .process-icon {
    background: linear-gradient(135deg, var(--dm-purple), #d946ef);
    color: white;
    box-shadow: 0 8px 25px rgba(180, 74, 255, 0.3);
}
[data-theme="dark"] .process-step:nth-child(3) .process-icon {
    background: linear-gradient(135deg, var(--dm-orange), #ff8c42);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}
[data-theme="dark"] .process-step:nth-child(4) .process-icon {
    background: linear-gradient(135deg, var(--dm-magenta), #f472b6);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 45, 138, 0.3);
}

/* === Dark About Section === */
[data-theme="dark"] .about-content .section-title { color: var(--dm-text-primary); }
[data-theme="dark"] .about-content p { color: var(--dm-text-secondary); }

/* Value cards - each unique vibrant color */
[data-theme="dark"] .value-card {
    background: var(--dm-bg-card);
    border: 1px solid var(--dm-glass-border);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    [data-theme="dark"] .value-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    }
}

[data-theme="dark"] .value-card:nth-child(1) { border-bottom: 3px solid var(--dm-turquoise); }
[data-theme="dark"] .value-card:nth-child(2) { border-bottom: 3px solid var(--dm-purple); }
[data-theme="dark"] .value-card:nth-child(3) { border-bottom: 3px solid var(--dm-orange); }
[data-theme="dark"] .value-card:nth-child(4) { border-bottom: 3px solid var(--dm-magenta); }

[data-theme="dark"] .value-card:nth-child(1) i { color: var(--dm-turquoise); }
[data-theme="dark"] .value-card:nth-child(2) i { color: var(--dm-purple); }
[data-theme="dark"] .value-card:nth-child(3) i { color: var(--dm-orange); }
[data-theme="dark"] .value-card:nth-child(4) i { color: var(--dm-magenta); }

[data-theme="dark"] .value-card:hover { box-shadow: var(--dm-shadow); }
[data-theme="dark"] .value-card:nth-child(1):hover { box-shadow: 0 8px 30px rgba(0, 229, 255, 0.15); }
[data-theme="dark"] .value-card:nth-child(2):hover { box-shadow: 0 8px 30px rgba(180, 74, 255, 0.15); }
[data-theme="dark"] .value-card:nth-child(3):hover { box-shadow: 0 8px 30px rgba(255, 107, 53, 0.15); }
[data-theme="dark"] .value-card:nth-child(4):hover { box-shadow: 0 8px 30px rgba(255, 45, 138, 0.15); }

[data-theme="dark"] .value-card h5 { color: var(--dm-text-primary); }
[data-theme="dark"] .value-card p { color: var(--dm-text-secondary); }

/* === Dark Stats === */
[data-theme="dark"] .gradient-teal { background: linear-gradient(135deg, #0c4a6e, #0369a1); }
[data-theme="dark"] .gradient-blue { background: linear-gradient(135deg, #065f46, #059669); }
[data-theme="dark"] .gradient-purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
[data-theme="dark"] .gradient-orange { background: linear-gradient(135deg, #dc2626, #f87171); }

[data-theme="dark"] .stat-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* === Dark Portfolio === */
[data-theme="dark"] .portfolio-card {
    background: var(--dm-bg-card);
    border: 1px solid var(--dm-glass-border);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    [data-theme="dark"] .portfolio-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    }
}

[data-theme="dark"] .portfolio-card:nth-child(1) { border-left: 3px solid var(--dm-turquoise); }
[data-theme="dark"] .portfolio-card:nth-child(2) { border-left: 3px solid var(--dm-purple); }
[data-theme="dark"] .portfolio-card:nth-child(3) { border-left: 3px solid var(--dm-orange); }
[data-theme="dark"] .portfolio-card:nth-child(4) { border-left: 3px solid var(--dm-cyan); }

[data-theme="dark"] .portfolio-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .portfolio-category {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(180, 74, 255, 0.15));
    color: var(--dm-turquoise);
}

[data-theme="dark"] .portfolio-info h4 { color: var(--dm-text-primary); }
[data-theme="dark"] .portfolio-info p { color: var(--dm-text-secondary); }

[data-theme="dark"] .portfolio-placeholder {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(180, 74, 255, 0.15));
}

/* === Dark Testimonials === */
[data-theme="dark"] .testimonial-card {
    background: var(--dm-bg-card);
    border: 1px solid var(--dm-glass-border);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    [data-theme="dark"] .testimonial-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    }
}

[data-theme="dark"] .testimonial-card:nth-child(1) { border-top: 3px solid var(--dm-turquoise); }
[data-theme="dark"] .testimonial-card:nth-child(2) { border-top: 3px solid var(--dm-orange); }
[data-theme="dark"] .testimonial-card:nth-child(3) { border-top: 3px solid var(--dm-purple); }

[data-theme="dark"] .testimonial-card:hover { box-shadow: var(--dm-shadow); }
[data-theme="dark"] .testimonial-text { color: var(--dm-text-secondary); }
[data-theme="dark"] .testimonial-author { border-top-color: var(--dm-border); }
[data-theme="dark"] .testimonial-author strong { color: var(--dm-text-primary); }
[data-theme="dark"] .testimonial-author small { color: var(--dm-text-muted); }
[data-theme="dark"] .author-avatar { color: var(--dm-turquoise); }

/* === Dark CTA === */
[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, var(--dm-navy), rgba(180, 74, 255, 0.3), rgba(0, 229, 255, 0.2));
    background-size: 200% 200%;
    animation: gradient-shift 6s ease infinite;
    color: white;
}

/* === Dark Contact === */
[data-theme="dark"] .contact-form {
    background: var(--dm-bg-card);
    border: 1px solid var(--dm-glass-border);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    [data-theme="dark"] .contact-form {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    }
}

[data-theme="dark"] .contact-form label { color: var(--dm-text-primary); }

[data-theme="dark"] .contact-form .form-control {
    background: var(--dm-bg-tertiary);
    border-color: var(--dm-border);
    color: var(--dm-text-primary);
}

[data-theme="dark"] .contact-form .form-control:focus {
    border-color: var(--dm-turquoise);
    box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.1);
}

[data-theme="dark"] .contact-info-card {
    background: var(--dm-bg-card);
    border: 1px solid var(--dm-glass-border);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    [data-theme="dark"] .contact-info-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    }
}

[data-theme="dark"] .contact-info-card:nth-child(1) { border-right: 3px solid var(--dm-turquoise); }
[data-theme="dark"] .contact-info-card:nth-child(2) { border-right: 3px solid var(--dm-purple); }
[data-theme="dark"] .contact-info-card:nth-child(3) { border-right: 3px solid var(--dm-orange); }
[data-theme="dark"] .contact-info-card:nth-child(4) { border-right: 3px solid var(--dm-cyan); }

[data-theme="dark"] .contact-info-icon {
    background: rgba(0, 229, 255, 0.08);
    color: var(--dm-turquoise);
}

[data-theme="dark"] .contact-info-card:nth-child(1) .contact-info-icon { background: rgba(0, 229, 255, 0.1); color: var(--dm-turquoise); }
[data-theme="dark"] .contact-info-card:nth-child(2) .contact-info-icon { background: rgba(180, 74, 255, 0.1); color: var(--dm-purple); }
[data-theme="dark"] .contact-info-card:nth-child(3) .contact-info-icon { background: rgba(255, 107, 53, 0.1); color: var(--dm-orange); }
[data-theme="dark"] .contact-info-card:nth-child(4) .contact-info-icon { background: rgba(0, 255, 213, 0.1); color: var(--dm-cyan); }

[data-theme="dark"] .contact-info-card h5 { color: var(--dm-text-primary); }
[data-theme="dark"] .contact-info-card p,
[data-theme="dark"] .contact-info-card a { color: var(--dm-text-secondary); }
[data-theme="dark"] .contact-info-card a:hover { color: var(--dm-turquoise); }

/* === Dark Footer === */
[data-theme="dark"] .footer-section {
    background: #060a14;
    border-top: 1px solid rgba(0, 229, 255, 0.1);
}

[data-theme="dark"] .footer-section h5 { color: var(--dm-text-primary); }
[data-theme="dark"] .footer-brand p { color: var(--dm-text-muted); }
[data-theme="dark"] .footer-links a { color: var(--dm-text-muted); }
[data-theme="dark"] .footer-links a:hover { color: var(--dm-turquoise); }
[data-theme="dark"] .footer-contact li { color: var(--dm-text-muted); }
[data-theme="dark"] .footer-contact i { color: var(--dm-turquoise); }
[data-theme="dark"] .footer-contact a { color: var(--dm-text-muted); }
[data-theme="dark"] .footer-contact a:hover { color: var(--dm-turquoise); }
[data-theme="dark"] .footer-divider { border-color: rgba(0, 229, 255, 0.1); }
[data-theme="dark"] .footer-bottom p { color: var(--dm-text-muted); }

[data-theme="dark"] .social-links a {
    background: rgba(0, 229, 255, 0.08);
    color: var(--dm-text-muted);
}
[data-theme="dark"] .social-links a:hover {
    background: linear-gradient(135deg, var(--dm-turquoise), var(--dm-purple));
    color: white;
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.3);
}

/* === Dark Chat Widget === */
[data-theme="dark"] .chat-fab {
    background: linear-gradient(135deg, var(--dm-turquoise), var(--dm-purple));
    box-shadow: 0 6px 25px rgba(0, 229, 255, 0.4);
}

[data-theme="dark"] .chat-window {
    background: var(--dm-bg-secondary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 1px rgba(0, 229, 255, 0.2);
}

[data-theme="dark"] .chat-header {
    background: linear-gradient(135deg, var(--dm-turquoise), var(--dm-purple));
}

[data-theme="dark"] .chat-messages { background: var(--dm-bg-primary); }

[data-theme="dark"] .chat-msg.support .chat-bubble {
    background: var(--dm-bg-tertiary);
    color: var(--dm-text-primary);
}

[data-theme="dark"] .chat-msg.user .chat-bubble {
    background: linear-gradient(135deg, var(--dm-turquoise), var(--dm-purple));
    color: white;
}

[data-theme="dark"] .chat-input {
    background: var(--dm-bg-secondary);
    border-top-color: var(--dm-border);
}

[data-theme="dark"] .chat-input input {
    background: var(--dm-bg-tertiary);
    border-color: var(--dm-border);
    color: var(--dm-text-primary);
}

[data-theme="dark"] .chat-input input:focus { border-color: var(--dm-turquoise); }

[data-theme="dark"] .chat-input button {
    background: linear-gradient(135deg, var(--dm-turquoise), var(--dm-purple));
}

/* === Dark Glass Utility === */
[data-theme="dark"] .glass {
    background: var(--dm-glass-bg);
    border-color: var(--dm-glass-border);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    [data-theme="dark"] .glass {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    }
}

/* === Dark Modal === */
[data-theme="dark"] .modal-content {
    background: var(--dm-bg-secondary);
    border: 1px solid var(--dm-glass-border);
    color: var(--dm-text-primary);
}
[data-theme="dark"] .modal-content .form-control {
    background: var(--dm-bg-tertiary);
    border-color: var(--dm-border);
    color: var(--dm-text-primary);
}
[data-theme="dark"] .modal-content .form-control:focus {
    border-color: var(--dm-turquoise);
    box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.1);
}
[data-theme="dark"] .btn-close { filter: invert(1); }

/* === Dark Form Elements === */
[data-theme="dark"] .input-group-text {
    background: var(--dm-bg-tertiary);
    border-color: var(--dm-border);
    color: var(--dm-text-primary);
}
[data-theme="dark"] select.form-control,
[data-theme="dark"] .form-select {
    background: var(--dm-bg-tertiary);
    border-color: var(--dm-border);
    color: var(--dm-text-primary);
}
[data-theme="dark"] select.form-control option,
[data-theme="dark"] .form-select option {
    background: var(--dm-bg-secondary);
    color: var(--dm-text-primary);
}
[data-theme="dark"] .form-label {
    color: var(--dm-text-primary);
}
[data-theme="dark"] .text-muted {
    color: var(--dm-text-muted) !important;
}
[data-theme="dark"] .auth-card .form-control {
    background: var(--dm-bg-tertiary) !important;
    border-color: var(--dm-border) !important;
    color: var(--dm-text-primary) !important;
}
[data-theme="dark"] .contact-form .form-control {
    background: var(--dm-bg-tertiary) !important;
    border-color: var(--dm-border) !important;
    color: var(--dm-text-primary) !important;
}

/* === Dark Gradient Text === */
[data-theme="dark"] .gradient-text {
    background: linear-gradient(135deg, var(--dm-turquoise), var(--dm-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Dark Scrollbar === */
[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--dm-bg-secondary); }
[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--dm-turquoise), var(--dm-purple));
}

/* === Dark Auth Pages === */
[data-theme="dark"] .auth-card {
    background: var(--dm-bg-card);
    border: 1px solid var(--dm-glass-border);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    [data-theme="dark"] .auth-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    }
}
[data-theme="dark"] .auth-card .form-control {
    background: var(--dm-bg-tertiary);
    border-color: var(--dm-border);
    color: var(--dm-text-primary);
}
[data-theme="dark"] .auth-card .form-control:focus {
    border-color: var(--dm-turquoise);
    box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.1);
}
[data-theme="dark"] .auth-card .form-group label { color: var(--dm-text-primary); }
[data-theme="dark"] .auth-logo {
    background: linear-gradient(135deg, var(--dm-turquoise), var(--dm-purple));
}

/* === Dark Smooth Transition === */
body, .navbar, .navbar.scrolled, .section-badge, .btn-primary-gradient, .btn-glass,
.service-card, .process-step, .process-icon, .value-card, .stat-card,
.portfolio-card, .testimonial-card, .contact-form, .contact-info-card,
.footer-section, .chat-fab, .chat-window, .glass, .modal-content,
.form-control, .social-links a, .contact-info-icon, .service-icon,
.cta-section, .btn-lang, .theme-toggle, .brand-logo, .hero-badge,
.portfolio-category, .testimonial-author, .footer-links a {
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.3s ease, box-shadow 0.4s ease;
}

/* ============================
   ADMIN SETTINGS PAGE
   ============================ */
.settings-tabs {
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 16px;
}

.settings-tabs .nav-link {
    color: var(--text-secondary) !important;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0 !important;
    padding: 12px 16px !important;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: -2px;
    background: none !important;
    white-space: nowrap;
}

.settings-tabs .nav-link:hover {
    color: var(--primary) !important;
    border-bottom-color: var(--primary-light);
}

.settings-tabs .nav-link.active {
    color: var(--primary) !important;
    border-bottom-color: var(--primary);
    background: none !important;
}

.settings-tabs .nav-link i {
    font-size: 0.8rem;
}

.hero-slide-panel {
    animation: fadeInUp 0.3s ease;
}

.value-card-editor {
    background: var(--bg-secondary);
    transition: var(--transition);
}

.value-card-editor:hover {
    box-shadow: var(--shadow-sm);
}

.nav-item-editor {
    transition: var(--transition);
}

.nav-item-editor:hover {
    background: var(--bg-secondary);
}

.nav-order-badge {
    min-width: 36px;
}

/* Dark mode settings */
[data-theme="dark"] .settings-tabs .nav-link {
    color: var(--dm-text-secondary) !important;
}

[data-theme="dark"] .settings-tabs .nav-link:hover,
[data-theme="dark"] .settings-tabs .nav-link.active {
    color: var(--dm-turquoise) !important;
    border-bottom-color: var(--dm-turquoise);
}

[data-theme="dark"] .value-card-editor {
    background: var(--dm-bg-tertiary);
    border-color: var(--dm-border);
}

[data-theme="dark"] .nav-item-editor:hover {
    background: var(--dm-bg-tertiary);
}

/* Responsive admin tabs */
@media (max-width: 768px) {
    .settings-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0;
    }
    .settings-tabs .nav-link {
        font-size: 0.8rem;
        padding: 10px 12px !important;
    }
}

/* ============================================================
   COMPREHENSIVE RESPONSIVE STYLES — RTL Arabic (Bootstrap 5)
   ============================================================
   Breakpoints:
     1024px — Tablet / Small Laptop
      991px — Navbar collapse (matches Bootstrap lg)
      768px — Mobile / Tablet portrait (matches Bootstrap md)
      480px — Small phone
   ============================================================ */


/* ----------------------------------------------------------
   1. TABLET BREAKPOINT  (max-width: 1024px)
   ---------------------------------------------------------- */
@media (max-width: 1024px) {

    /* Section spacing */
    .services-section,
    .about-section,
    .portfolio-section,
    .testimonials-section,
    .contact-section {
        padding: 80px 0;
    }

    .process-section {
        padding: 80px 0;
    }

    /* Hero title fine-tune */
    .hero-title {
        font-size: 2.8rem;
    }

    /* Admin sidebar — collapsed width */
    .admin-sidebar {
        width: 250px;
    }

    .admin-main {
        margin-right: 250px;
    }

    [dir="ltr"] .admin-main {
        margin-right: 0;
        margin-left: 250px;
    }

    /* Stats grid — allow tighter spacing */
    .stat-card {
        padding: 28px 20px;
    }

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

    /* Section header */
    .section-header {
        margin-bottom: 36px;
    }

    /* Service card adjustments */
    .service-card {
        padding: 28px;
    }

    /* Portfolio image height */
    .portfolio-image {
        height: 200px;
    }

    /* Testimonial card */
    .testimonial-card {
        padding: 28px;
    }

    /* Contact info cards */
    .contact-info-card {
        padding: 20px;
    }

    /* Footer — reduce top padding */
    .footer-section {
        padding: 48px 0 16px;
    }
}


/* ----------------------------------------------------------
   2. MOBILE BREAKPOINT  (max-width: 768px)
   ---------------------------------------------------------- */
@media (max-width: 768px) {

    /* === Global === */
    html {
        font-size: 15px;
    }
    /* === Hero Section === */
    .hero {
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-content {
        padding-top: 60px;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-desc {
        font-size: 1rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-badge {
        font-size: 0.85rem;
        padding: 6px 16px;
        margin-bottom: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Hero visual — show on mobile, smaller */
    .hero-visual {
        display: block !important;          /* Override any d-none d-lg-block */
        height: 260px;
        margin-bottom: 16px;
    }

    .hero-logo-img {
        width: 150px;
        height: 150px;
    }

    /* Orbit rings — scaled down */
    .orbit-ring-1 {
        width: 200px;
        height: 200px;
        margin-top: -100px;
        margin-left: -100px;
    }

    .orbit-ring-2 {
        width: 250px;
        height: 250px;
        margin-top: -125px;
        margin-left: -125px;
    }

    .orbit-ring-3 {
        width: 290px;
        height: 290px;
        margin-top: -145px;
        margin-left: -145px;
    }

    .dot-dot {
        box-shadow: 0 0 6px var(--dot-color), 0 0 10px var(--dot-color);
    }

    .sparkle-dot {
        box-shadow: 0 0 4px var(--sp-color), 0 0 8px var(--sp-color);
    }

    /* Hero dots at bottom */
    .hero-dots {
        bottom: 24px;
    }

    /* === Section Common === */
    .services-section,
    .about-section,
    .portfolio-section,
    .testimonials-section,
    .contact-section {
        padding: 60px 0;
    }

    .process-section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-desc {
        font-size: 1rem;
    }

    /* === Services === */
    .service-card {
        padding: 24px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
        margin-left: auto;
        margin-right: auto;
    }

    /* === Process === */
    .process-step {
        padding: 20px 15px;
    }

    .process-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    .process-number {
        font-size: 2.2rem;
    }

    /* === Stats === */
    .stat-card {
        padding: 24px 16px;
    }

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

    .stat-icon {
        font-size: 1.6rem;
    }

    /* === Portfolio === */
    .portfolio-image {
        height: 180px;
    }

    /* === Testimonials === */
    .testimonial-card {
        padding: 24px;
    }

    /* === CTA === */
    .cta-section {
        padding: 60px 0;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    /* === Contact === */
    .contact-form {
        padding: 24px;
    }

    .contact-section .row {
        flex-direction: column;
    }

    /* === Footer — single-column friendly === */
    .footer-section {
        padding: 40px 0 12px;
    }

    .footer-section .col-lg-4,
    .footer-section .col-lg-3,
    .footer-section .col-md-6 {
        margin-bottom: 28px;
    }

    .footer-section h5 {
        margin-bottom: 14px;
    }

    /* === About section === */
    .about-content .section-title {
        text-align: center;
    }

    .about-content p {
        text-align: center;
    }

    /* Value cards */
    .value-card {
        padding: 20px;
    }
}


/* ----------------------------------------------------------
   3. NAVBAR MOBILE  (max-width: 991px)
   Matches Bootstrap 5 collapse point (lg breakpoint)
   ---------------------------------------------------------- */
@media (max-width: 991px) {

    /* Navbar base */
    .navbar {
        padding: 12px 0;
    }

    /* Mobile menu — WHITE background with dark text */
    .navbar-collapse {
        background: #ffffff !important;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        margin-top: 8px;
        padding: 16px 12px;
        border: 1px solid var(--border-color);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    }
    @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        .navbar-collapse {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        }
    }

    /* Scrolled navbar — mobile menu stays white */
    .navbar.scrolled .navbar-collapse {
        background: #ffffff !important;
        border-color: var(--border-color);
    }

    /* Nav links — dark text on white background */
    .navbar .nav-link {
        color: var(--text-primary) !important;
        padding: 12px 16px !important;
        min-height: 48px;
        display: flex;
        align-items: center;
        gap: 10px;
        border-radius: var(--radius-sm);
        margin-bottom: 4px;
        font-size: 1rem;
        font-weight: 500;
        transition: var(--transition);
        width: 100%;
    }

    /* Always dark text on mobile */
    .navbar.scrolled .nav-link {
        color: var(--text-primary) !important;
    }

    .navbar .nav-link::after {
        display: none;   /* Hide underline on mobile */
    }

    /* Hover — light gray background */
    .navbar .nav-link:hover,
    .navbar .nav-link:active {
        background: var(--bg-secondary);
        color: var(--primary) !important;
    }

    .navbar.scrolled .nav-link:hover,
    .navbar.scrolled .nav-link:active {
        background: var(--bg-secondary);
        color: var(--primary) !important;
    }

    /* Active link — gradient with white text */
    .navbar .nav-link.active {
        background: linear-gradient(135deg, #38bdf8, #7c5cfc);
        color: white !important;
        font-weight: 600;
    }

    /* Language toggle in mobile menu */
    .navbar .btn-lang {
        margin: 8px 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--text-primary);
        background: var(--bg-secondary);
        border-color: var(--border-color);
    }

    /* Auth buttons inside mobile menu */
    .navbar .btn-auth-mobile {
        margin: 8px 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    /* Hamburger area */
    .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
    }

    /* Mobile menu buttons area */
    .navbar-collapse .d-flex {
        border-top: 1px solid var(--border-color);
        padding-top: 12px;
        margin-top: 8px;
    }

    .navbar-collapse .btn-outline-light {
        color: var(--text-primary) !important;
        border-color: var(--border-color) !important;
    }
    .navbar-collapse .btn-outline-light:hover {
        background: var(--bg-secondary);
        color: var(--primary) !important;
        border-color: var(--primary) !important;
    }

    /* Text inside mobile menu — dark on white */
    .navbar-collapse .navbar-brand,
    .navbar-collapse .navbar-brand span,
    .navbar-collapse .brand-text {
        color: var(--text-primary) !important;
    }

    .navbar-collapse .btn-primary-gradient {
        color: white !important;
    }

    .navbar-collapse .dropdown-menu {
        background: var(--bg-secondary);
        border-color: var(--border-color);
    }
    .navbar-collapse .dropdown-menu .dropdown-item {
        color: var(--text-primary) !important;
    }
    .navbar-collapse .dropdown-menu .dropdown-item:hover {
        background: var(--bg-tertiary);
        color: var(--primary) !important;
    }
    .navbar-collapse .dropdown-menu .dropdown-item-text {
        color: var(--text-secondary) !important;
    }
    .navbar-collapse .dropdown-menu .dropdown-divider {
        border-color: var(--border-color);
    }
    .navbar-collapse .dropdown-toggle::after {
        color: var(--text-secondary);
    }



    /* Theme toggle on mobile */
    .navbar-collapse .theme-toggle {
        color: var(--text-primary);
    }

}  /* END @media max-width: 991px */

/* ----------------------------------------------------------
   4. SMALL PHONE  (max-width: 480px)
   ---------------------------------------------------------- */
@media (max-width: 480px) {

    html {
        font-size: 14px;
    }

    /* Hero */
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 5px 12px;
    }

    .hero-desc {
        font-size: 0.92rem;
    }

    /* Hero visual */
    .hero-visual {
        height: 220px;
    }

    .hero-logo-img {
        width: 120px;
        height: 120px;
    }

    .orbit-ring-1 {
        width: 170px;
        height: 170px;
        margin-top: -85px;
        margin-left: -85px;
    }

    .orbit-ring-2 {
        width: 210px;
        height: 210px;
        margin-top: -105px;
        margin-left: -105px;
    }

    .orbit-ring-3 {
        width: 240px;
        height: 240px;
        margin-top: -120px;
        margin-left: -120px;
    }

    /* Section titles */
    .section-title {
        font-size: 1.5rem;
    }

    .section-desc {
        font-size: 0.9rem;
    }

    /* Service cards */
    .service-card {
        padding: 20px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

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

    /* Process steps */
    .process-step {
        padding: 16px 10px;
    }

    .process-icon {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }

    .process-number {
        font-size: 1.8rem;
    }

    /* Contact form */
    .contact-form {
        padding: 16px;
    }

    /* Stat cards */
    .stat-card {
        padding: 20px 12px;
    }

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

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

    /* Portfolio */
    .portfolio-image {
        height: 160px;
    }

    .portfolio-info {
        padding: 14px;
    }

    .portfolio-info h4 {
        font-size: 1rem;
    }

    /* CTA */
    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 0.9rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 20px;
    }

    .testimonial-text {
        font-size: 0.88rem;
    }

    /* Footer */
    .footer-section {
        padding: 32px 0 8px;
    }

    .footer-section .col-lg-4,
    .footer-section .col-lg-3,
    .footer-section .col-md-6 {
        margin-bottom: 24px;
    }

    /* Contact info cards */
    .contact-info-card {
        padding: 16px;
    }

    .contact-info-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Navbar brand */
    .navbar-brand {
        font-size: 1.1rem;
    }

    .brand-logo {
        height: 34px;
    }

    /* Value cards */
    .value-card {
        padding: 16px;
    }
}


/* ----------------------------------------------------------
   5. CHAT WIDGET RESPONSIVE
   ---------------------------------------------------------- */

/* Tablet and below — smaller chat window */
@media (max-width: 768px) {
    .chat-window {
        width: 310px;
        height: 420px;
    }
}

/* Small phone — full-width chat */
@media (max-width: 480px) {
    .chat-widget {
        bottom: 16px;
        left: 16px;
    }

    [dir="ltr"] .chat-widget {
        left: auto;
        right: 16px;
    }

    .chat-fab {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }

    .chat-window {
        width: calc(100vw - 32px);
        height: calc(100vh - 120px);
        bottom: 72px;
        left: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    [dir="ltr"] .chat-window {
        left: auto;
        right: 0;
    }
}


/* ----------------------------------------------------------
   6. ADMIN PANEL MOBILE  (max-width: 991px)
   ---------------------------------------------------------- */
@media (max-width: 991px) {

    /* Sidebar — overlay with backdrop */
    .admin-sidebar {
        width: 280px;
        transform: translateX(100%);
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3);
    }

    [dir="ltr"] .admin-sidebar {
        transform: translateX(-100%);
        box-shadow: 8px 0 30px rgba(0, 0, 0, 0.3);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    /* Sidebar backdrop */
    .admin-sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1049;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .admin-sidebar-backdrop.show {
        display: block;
        opacity: 1;
    }

    /* Main content — full width */
    .admin-main {
        margin-right: 0 !important;
        margin-left: 0 !important;
        width: 100%;
    }

    /* Show sidebar toggle button */
    .sidebar-toggle {
        display: block !important;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    /* Admin header spacing */
    .admin-header {
        padding: 12px 16px;
    }

    /* Admin content */
    .admin-content {
        padding: 16px;
    }

    /* Admin stat cards — flex wrap */
    .admin-stat-card {
        padding: 16px;
        flex-wrap: wrap;
    }

    .admin-stat-card .stat-info h3 {
        font-size: 1.5rem;
    }

    .admin-stat-card .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    /* Admin content stat */
    .admin-content-stat {
        padding: 16px;
    }

    .admin-content-stat strong {
        font-size: 1.3rem;
    }

    /* Tables — horizontal scroll wrapper */
    .admin-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
    }

    .admin-table {
        min-width: 600px;
        font-size: 0.85rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
    }

    /* Card headers */
    .card-header-custom {
        padding: 16px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .card-body-custom {
        padding: 12px 16px;
    }

    /* Admin cards stacking */
    .admin-card {
        margin-bottom: 16px;
    }

    /* Recent items */
    .recent-item {
        padding: 10px 0;
    }

    /* Message cards */
    .message-card {
        padding: 16px;
    }

    /* Service admin cards */
    .service-admin-card {
        padding: 16px;
    }

    /* Testimonial admin */
    .testimonial-admin-card {
        padding: 16px;
    }

    /* Project admin image */
    .project-admin-image {
        height: 140px;
    }

    /* Admin page header */
    .admin-page-header {
        margin-bottom: 16px;
    }

    .admin-page-header h4 {
        font-size: 1.2rem;
    }
}


/* ----------------------------------------------------------
   7. MODALS ON MOBILE
   ---------------------------------------------------------- */
@media (max-width: 768px) {

    /* Modal dialog — full-width with small margin */
    .modal-dialog {
        margin: 8px;
        max-width: 100%;
    }

    .modal-dialog .modal-content {
        border-radius: var(--radius-md);
    }

    .modal-header {
        padding: 16px;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-footer {
        padding: 12px 16px;
    }

    /* Auth card inside modal */
    .auth-card {
        padding: 24px;
        border-radius: var(--radius-md);
        margin: 8px;
    }

    .auth-logo {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .modal-dialog {
        margin: 4px;
    }

    .auth-card {
        padding: 20px;
    }
}


/* ----------------------------------------------------------
   8. TOUCH IMPROVEMENTS
   ---------------------------------------------------------- */

/* Target touch devices via hover: none (pointer coarse) */
@media (hover: none) and (pointer: coarse) {

    /* Buttons — min 44px for touch targets */
    .btn,
    .btn-primary-gradient,
    .btn-glass,
    .btn-lang,
    .chat-fab,
    .chat-input button {
        min-height: 44px;
    }

    /* Form controls — min 44px */
    .form-control,
    .form-select,
    .contact-form .form-control,
    .auth-card .form-control,
    .chat-input input {
        min-height: 44px;
        font-size: 16px;  /* Prevent iOS zoom on focus */
    }

    /* Disable hover effects on touch — rely on :active instead */
    .service-card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }

    .service-card:active {
        transform: scale(0.98);
    }

    .portfolio-card:hover {
        transform: none;
    }

    .portfolio-card:active {
        transform: scale(0.98);
    }

    .testimonial-card:hover {
        transform: none;
    }

    .stat-card:hover {
        transform: none;
    }

    .value-card:hover {
        transform: none;
    }

    .contact-info-card:hover {
        transform: none;
    }

    /* Disable card hover overlays on touch */
    .portfolio-card:hover .portfolio-overlay {
        opacity: 1;
    }

    /* Nav links — remove hover underline */
    .navbar .nav-link::after {
        display: none;
    }
}

/* General touch-friendly sizing for small screens */
@media (max-width: 768px) {
    .btn,
    .btn-primary-gradient,
    .btn-glass {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}


/* ----------------------------------------------------------
   9. BACK-TO-TOP BUTTON
   ---------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 96px;        /* Above chat widget */
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 9998;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

[dir="ltr"] .back-to-top {
    left: auto;
    right: 24px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Back-to-top on small phones */
@media (max-width: 480px) {
    .back-to-top {
        bottom: 80px;
        left: 16px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    [dir="ltr"] .back-to-top {
        left: auto;
        right: 16px;
    }
}

/* Back-to-top dark mode */
[data-theme="dark"] .back-to-top {
    background: var(--dm-turquoise);
    color: var(--dm-bg-primary);
}

[data-theme="dark"] .back-to-top:hover {
    background: var(--dm-cyan);
    box-shadow: 0 6px 24px rgba(0, 229, 255, 0.3);
}


/* ----------------------------------------------------------
   10. DARK MODE RESPONSIVE OVERRIDES
   Enhances dark mode on smaller screens
   ---------------------------------------------------------- */

/* Dark mode — mobile navbar collapse */
@media (max-width: 991px) {
    [data-theme="dark"] .navbar-collapse {
        background: var(--dm-bg-secondary) !important;
        border-color: var(--dm-border);
    }

    [data-theme="dark"] .navbar.scrolled .navbar-collapse {
        background: var(--dm-bg-secondary) !important;
    }

    [data-theme="dark"] .navbar .nav-link {
        color: var(--dm-text-primary) !important;
    }

    [data-theme="dark"] .navbar .nav-link:hover {
        background: rgba(0, 229, 255, 0.1);
        color: var(--dm-turquoise) !important;
    }

    [data-theme="dark"] .navbar .nav-link.active {
        background: linear-gradient(135deg, #38bdf8, #7c5cfc);
        color: white !important;
    }
}

/* Dark mode — mobile chat window */
@media (max-width: 480px) {
    [data-theme="dark"] .chat-window {
        background: var(--dm-bg-secondary);
        box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6), 0 0 1px rgba(0, 229, 255, 0.2);
    }
}

/* Dark mode — mobile admin panel */
@media (max-width: 991px) {
    [data-theme="dark"] .admin-header {
        background: var(--dm-bg-secondary);
        border-bottom-color: var(--dm-border);
    }

    [data-theme="dark"] .admin-content {
        background: var(--dm-bg-primary);
    }

    [data-theme="dark"] .admin-card {
        background: var(--dm-bg-secondary);
        border: 1px solid var(--dm-border);
    }

    [data-theme="dark"] .admin-sidebar {
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.6);
    }

    [dir="ltr"][data-theme="dark"] .admin-sidebar {
        box-shadow: 8px 0 30px rgba(0, 0, 0, 0.6);
    }

    [data-theme="dark"] .card-header-custom {
        border-bottom-color: var(--dm-border);
    }

    [data-theme="dark"] .card-header-custom h5 {
        color: var(--dm-text-primary);
    }

    [data-theme="dark"] .admin-table th {
        background: var(--dm-bg-tertiary);
        color: var(--dm-text-muted);
    }

    [data-theme="dark"] .admin-table td {
        color: var(--dm-text-secondary);
    }

    [data-theme="dark"] .admin-table tbody tr:hover {
        background: var(--dm-bg-tertiary);
    }
}

/* Dark mode — mobile contact form */
@media (max-width: 768px) {
    [data-theme="dark"] .contact-info-card {
        background: var(--dm-bg-card);
    }
}

/* Dark mode — mobile modal */
@media (max-width: 768px) {
    [data-theme="dark"] .auth-card {
        background: var(--dm-bg-card);
        border-color: var(--dm-glass-border);
    }
}


/* ----------------------------------------------------------
   11. SAFE AREA FOR NOTCH PHONES (iOS / Android)
   ---------------------------------------------------------- */

/* Fixed elements — add safe-area-inset-top padding */
.navbar {
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
}

.navbar.scrolled {
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
}

/* Chat widget — respect bottom safe area */
.chat-widget {
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    left: calc(24px + env(safe-area-inset-left, 0px));
}

[dir="ltr"] .chat-widget {
    left: auto;
    right: calc(24px + env(safe-area-inset-right, 0px));
}

/* Back-to-top — respect bottom safe area */
.back-to-top {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    left: calc(24px + env(safe-area-inset-left, 0px));
}

[dir="ltr"] .back-to-top {
    left: auto;
    right: calc(24px + env(safe-area-inset-right, 0px));
}

/* Small phone — reduce base offset but keep safe area */
@media (max-width: 480px) {
    .chat-widget {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        left: calc(16px + env(safe-area-inset-left, 0px));
    }

    [dir="ltr"] .chat-widget {
        left: auto;
        right: calc(16px + env(safe-area-inset-right, 0px));
    }

    .back-to-top {
        bottom: calc(80px + env(safe-area-inset-bottom, 0px));
        left: calc(16px + env(safe-area-inset-left, 0px));
    }

    [dir="ltr"] .back-to-top {
        left: auto;
        right: calc(16px + env(safe-area-inset-right, 0px));
    }
}

/* Support for devices with safe-area (CSS env) */
@supports (padding-top: env(safe-area-inset-top)) {
    .hero-content {
        padding-top: calc(80px + env(safe-area-inset-top, 0px));
    }

    .admin-header {
        padding-top: calc(16px + env(safe-area-inset-top, 0px));
    }
}


/* ----------------------------------------------------------
   BONUS: PRINT STYLES
   Clean output for printing
   ---------------------------------------------------------- */
/* Mobile Navbar Fix */
@media (max-width: 991px) {
    .navbar-collapse.show {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff !important;
        padding: 16px 12px;
        box-shadow: 0 16px 48px rgba(0,0,0,0.12);
        z-index: 999;
        max-height: 80vh;
        overflow-y: auto;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        border: 1px solid var(--border-color);
    }
    @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        .navbar-collapse.show {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        }
    }
    /* Always white background */
    .navbar.scrolled .navbar-collapse.show {
        background: #ffffff !important;
        border-color: var(--border-color);
    }
    /* Menu text — clear in ALL states (normal, scrolled, dark) */
    .navbar-collapse.show .navbar-nav .nav-link,
    .navbar.scrolled .navbar-collapse.show .navbar-nav .nav-link,
    [data-theme="dark"] .navbar-collapse.show .navbar-nav .nav-link,
    [data-theme="dark"] .navbar.scrolled .navbar-collapse.show .navbar-nav .nav-link {
        color: var(--text-primary) !important;
    }
    .navbar-collapse.show .navbar-nav .nav-link:hover,
    .navbar.scrolled .navbar-collapse.show .navbar-nav .nav-link:hover,
    [data-theme="dark"] .navbar-collapse.show .navbar-nav .nav-link:hover {
        background: var(--bg-secondary);
        color: var(--primary) !important;
    }
    /* Dark mode menu background */
    [data-theme="dark"] .navbar-collapse.show {
        background: var(--dm-bg-secondary) !important;
        border-color: var(--dm-border);
    }
    /* Dark mode menu text */
    [data-theme="dark"] .navbar-collapse.show .navbar-nav .nav-link {
        color: #e2e8f0 !important;
    }
    [data-theme="dark"] .navbar-collapse.show .navbar-brand,
    [data-theme="dark"] .navbar-collapse.show .navbar-brand span,
    [data-theme="dark"] .navbar-collapse.show .brand-text {
        color: #e2e8f0 !important;
    }
    [data-theme="dark"] .navbar-collapse.show .btn-outline-light {
        color: #e2e8f0 !important;
        border-color: #475569 !important;
    }
    .navbar-collapse.show .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    .navbar-collapse.show .navbar-nav .nav-link {
        padding: 12px 16px !important;
        border-radius: var(--radius-sm);
        color: var(--text-primary) !important;
        min-height: 48px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1rem;
        font-weight: 500;
        transition: var(--transition);
        margin-bottom: 4px;
    }
    /* Active link — gradient with white text */
    .navbar-collapse.show .navbar-nav .nav-link.active {
        background: linear-gradient(135deg, #38bdf8, #7c5cfc);
        color: white !important;
        font-weight: 600;
    }
    .navbar-collapse.show .navbar-nav .nav-link:hover,
    .navbar-collapse.show .navbar-nav .nav-link:active {
        background: var(--bg-secondary);
        color: var(--primary) !important;
    }
    .navbar-collapse.show .d-flex {
        flex-wrap: wrap;
        gap: 8px !important;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--border-color);
    }
    .navbar-collapse.show .btn-outline-light {
        color: var(--text-primary) !important;
        border-color: var(--border-color) !important;
    }
    .navbar-collapse.show .btn-outline-light:hover {
        background: var(--bg-secondary);
        color: var(--primary) !important;
    }
    .navbar-collapse.show .btn-outline-light .fa-user,
    .navbar-collapse.show .btn-outline-light .fa-sign-in-alt,
    .navbar-collapse.show .btn-outline-light .fa-cogs {
        color: var(--text-primary) !important;
    }
    .navbar-collapse.show .btn-lang {
        color: var(--text-primary) !important;
        background: var(--bg-secondary) !important;
        border-color: var(--border-color) !important;
    }
    .navbar-collapse.show .theme-toggle {
        color: var(--text-primary) !important;
    }
    .navbar-collapse.show .dropdown-menu {
        background: var(--bg-secondary) !important;
        border-color: var(--border-color) !important;
    }
    .navbar-collapse.show .dropdown-menu .dropdown-item {
        color: var(--text-primary) !important;
    }
    .navbar-collapse.show .dropdown-menu .dropdown-item:hover {
        background: var(--bg-tertiary) !important;
        color: var(--primary) !important;
    }
    .navbar-collapse.show .dropdown-menu .dropdown-item-text {
        color: var(--text-secondary) !important;
    }
    .navbar-collapse.show .dropdown-menu .dropdown-divider {
        border-color: var(--border-color) !important;
    }
    /* Brand text — show fully on mobile with smaller font */
    .navbar-brand .brand-text {
        max-width: none !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
    }
    @media (max-width: 400px) {
        .navbar-brand .brand-text {
            max-width: none !important;
            font-size: 0.7rem !important;
        }
        .brand-logo {
            height: 36px;
        }
    }
}

@media print {
    .navbar,
    .chat-widget,
    .back-to-top,
    .hero-dots,
    .hero-bg,
    .hero-overlay {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
        background: white !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .service-card,
    .portfolio-card,
    .testimonial-card,
    .stat-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8rem;
        color: #666;
    }
}

/* ============================================================
   END OF RESPONSIVE STYLES
   ============================================================ */

/* ============================================================
   MOBILE MENU FINAL OVERRIDE — Must be last in file
   ============================================================ */

/* === HAMBURGER ICON on mobile === */
/* Normal mode — not scrolled: white (on dark hero) | scrolled: gradient brand color (on white bg) */
/* Dark mode: always WHITE */
@media (max-width: 991px) {
    .hamburger-icon,
    .navbar .hamburger-icon,
    .navbar:not(.scrolled) .hamburger-icon {
        display: block !important;
        width: 26px !important;
        height: 3px !important;
        border-radius: 2px !important;
        position: relative !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    /* Normal mode — on hero (dark bg) = WHITE */
    .hamburger-icon,
    .navbar .hamburger-icon,
    .navbar:not(.scrolled) .hamburger-icon {
        background: #ffffff !important;
        box-shadow: 0 -8px 0 #ffffff, 0 8px 0 #ffffff !important;
    }

    /* Normal mode — scrolled (white bg) = brand gradient blue-purple */
    .navbar.scrolled .hamburger-icon {
        background: linear-gradient(90deg, #38bdf8, #7c5cfc) !important;
        box-shadow: 0 -8px 0 linear-gradient(90deg, #38bdf8, #7c5cfc), 0 8px 0 linear-gradient(90deg, #38bdf8, #7c5cfc) !important;
        /* Fallback for browsers that don't support gradient in box-shadow */
        box-shadow: 0 -8px 0 #38bdf8, 0 8px 0 #7c5cfc !important;
    }

    /* Dark mode — ALWAYS WHITE (visible on dark navbar) */
    [data-theme="dark"] .hamburger-icon,
    [data-theme="dark"] .navbar .hamburger-icon,
    [data-theme="dark"] .navbar:not(.scrolled) .hamburger-icon,
    [data-theme="dark"] .navbar.scrolled .hamburger-icon {
        background: #ffffff !important;
        box-shadow: 0 -8px 0 #ffffff, 0 8px 0 #ffffff !important;
    }
}

/* === MOBILE MENU TEXT — ALWAYS VISIBLE === */
@media (max-width: 991px) {

    /* Menu container — white in normal, dark bg in dark mode */
    .navbar-collapse.show,
    .navbar.scrolled .navbar-collapse.show {
        background: #ffffff !important;
    }
    [data-theme="dark"] .navbar-collapse.show,
    [data-theme="dark"] .navbar.scrolled .navbar-collapse.show {
        background: #1e293b !important;
        border-color: #334155 !important;
    }

    /* Nav links — dark text in normal mode */
    .navbar-collapse.show .navbar-nav .nav-link,
    .navbar.scrolled .navbar-collapse.show .navbar-nav .nav-link,
    .navbar-collapse.show .navbar-nav .nav-link:hover,
    .navbar.scrolled .navbar-collapse.show .navbar-nav .nav-link:hover {
        color: #1e293b !important;
    }

    /* Nav links — light text in dark mode */
    [data-theme="dark"] .navbar-collapse.show .navbar-nav .nav-link,
    [data-theme="dark"] .navbar.scrolled .navbar-collapse.show .navbar-nav .nav-link,
    [data-theme="dark"] .navbar-collapse.show .navbar-nav .nav-link:hover,
    [data-theme="dark"] .navbar.scrolled .navbar-collapse.show .navbar-nav .nav-link:hover {
        color: #e2e8f0 !important;
    }

    /* Brand name — dark in normal, light in dark */
    .navbar-collapse.show .navbar-brand,
    .navbar-collapse.show .navbar-brand span,
    .navbar-collapse.show .brand-text {
        color: #1e293b !important;
    }
    [data-theme="dark"] .navbar-collapse.show .navbar-brand,
    [data-theme="dark"] .navbar-collapse.show .navbar-brand span,
    [data-theme="dark"] .navbar-collapse.show .brand-text {
        color: #e2e8f0 !important;
    }

    /* Auth buttons */
    .navbar-collapse.show .btn-outline-light,
    .navbar-collapse.show .btn-outline-light .fa-user,
    .navbar-collapse.show .btn-outline-light .fa-sign-in-alt,
    .navbar-collapse.show .btn-outline-light .fa-cogs {
        color: #1e293b !important;
        border-color: #cbd5e1 !important;
    }
    [data-theme="dark"] .navbar-collapse.show .btn-outline-light,
    [data-theme="dark"] .navbar-collapse.show .btn-outline-light .fa-user,
    [data-theme="dark"] .navbar-collapse.show .btn-outline-light .fa-sign-in-alt,
    [data-theme="dark"] .navbar-collapse.show .btn-outline-light .fa-cogs {
        color: #e2e8f0 !important;
        border-color: #475569 !important;
    }

    /* CTA button — gradient white text */
    .navbar-collapse.show .btn-primary-gradient {
        color: #ffffff !important;
    }

    /* Language toggle */
    .navbar-collapse.show .btn-lang {
        color: #1e293b !important;
        background: #f1f5f9 !important;
        border-color: #cbd5e1 !important;
    }
    [data-theme="dark"] .navbar-collapse.show .btn-lang {
        color: #e2e8f0 !important;
        background: #334155 !important;
        border-color: #475569 !important;
    }

    /* Theme toggle */
    .navbar-collapse.show .theme-toggle {
        color: #1e293b !important;
    }
    [data-theme="dark"] .navbar-collapse.show .theme-toggle {
        color: #e2e8f0 !important;
    }

    /* Dropdown menu */
    .navbar-collapse.show .dropdown-menu {
        background: #f8fafc !important;
        border-color: #e2e8f0 !important;
    }
    .navbar-collapse.show .dropdown-menu .dropdown-item {
        color: #1e293b !important;
    }
    [data-theme="dark"] .navbar-collapse.show .dropdown-menu {
        background: #0f172a !important;
        border-color: #334155 !important;
    }
    [data-theme="dark"] .navbar-collapse.show .dropdown-menu .dropdown-item {
        color: #e2e8f0 !important;
    }

    /* Active link always gradient white */
    .navbar-collapse.show .navbar-nav .nav-link.active {
        background: linear-gradient(135deg, #38bdf8, #7c5cfc) !important;
        color: #ffffff !important;
    }

    /* Hover state */
    .navbar-collapse.show .navbar-nav .nav-link:hover {
        background: #f1f5f9 !important;
        color: #0284c7 !important;
    }
    [data-theme="dark"] .navbar-collapse.show .navbar-nav .nav-link:hover {
        background: #334155 !important;
        color: #38bdf8 !important;
    }

    /* Separator */
    .navbar-collapse.show .d-flex {
        border-top-color: #e2e8f0 !important;
    }
    [data-theme="dark"] .navbar-collapse.show .d-flex {
        border-top-color: #334155 !important;
    }
}


/* ============================
   Copyright Bar Refinement (ASTJO)
   ============================ */
.footer-bottom {
    position: relative;
    padding-top: 30px;
    padding-bottom: 6px;
}
.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    right: 18%;
    left: 18%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(56, 189, 248, 0.55),
        rgba(124, 92, 252, 0.55),
        transparent);
}
.footer-bottom p {
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 0.92rem;
    letter-spacing: 0.4px;
    line-height: 1.9;
    margin: 0;
}
.footer-bottom p .astjo-brand {
    background: linear-gradient(135deg, #7dd3fc, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* ============================
   3D ICONS (icon3d) — أيقونات ثلاثية الأبعاد
   ============================ */
.icon3d {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 10px 16px rgba(30, 64, 175, 0.28));
    animation: icon3d-float 4.5s ease-in-out infinite;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.5s ease;
    will-change: transform;
}

@keyframes icon3d-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(1.5deg); }
}

.service-icon,
.process-icon { overflow: visible; }

/* عند وجود أيقونة 3D نلغي الخلفية المتدرجة للحاوية لتظهر الأيقونة نظيفة */
.service-icon:has(.icon3d),
.process-icon:has(.icon3d) {
    background: transparent !important;
    box-shadow: none;
}

/* تكبير الحاوية قليلاً لاستيعاب الأيقونة ثلاثية الأبعاد */
.service-icon:has(.icon3d) { width: 86px; height: 86px; }
.process-icon:has(.icon3d) { width: 96px; height: 96px; }

/* تأخير متدرج للحركة لمظهر عضوي حي */
.row > div:nth-child(3n+2) .icon3d { animation-delay: 0.7s; }
.row > div:nth-child(3n+3) .icon3d { animation-delay: 1.4s; }
.row > div:nth-child(4n+2) .icon3d { animation-delay: 0.35s; }

.service-card:hover .icon3d,
.process-step:hover .icon3d {
    animation-play-state: paused;
    transform: scale(1.18) rotate(-6deg);
    filter: drop-shadow(0 18px 28px rgba(124, 92, 252, 0.42));
}

/* الوضع الليلي */
[data-theme="dark"] .icon3d {
    filter: drop-shadow(0 10px 18px rgba(0, 229, 255, 0.28)) brightness(1.06);
}
[data-theme="dark"] .service-card:hover .icon3d,
[data-theme="dark"] .process-step:hover .icon3d {
    filter: drop-shadow(0 18px 30px rgba(0, 229, 255, 0.38)) brightness(1.08);
}

@media (prefers-reduced-motion: reduce) {
    .icon3d { animation: none; }
}

/* ============================
   3D ICONS — قسم من نحن (قيم الشركة + الإحصائيات)
   ============================ */
.value-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}
/* وضع Font Awesome داخل الغلاف — نفس المظهر السابق */
.value-icon-wrap i { font-size: 2rem; color: var(--primary); margin: 0; }
/* عند وجود أيقونة 3D نكبّر الغلاف قليلاً */
.value-card:has(.icon3d) .value-icon-wrap { width: 84px; height: 84px; margin-bottom: 6px; }
.value-card:hover .icon3d {
    animation-play-state: paused;
    transform: scale(1.16) rotate(-6deg);
    filter: drop-shadow(0 16px 26px rgba(124, 92, 252, 0.4));
}

/* الإحصائيات: أيقونة 3D فوق التدرج الملون */
.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}
.stat-icon .icon3d {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 9px 15px rgba(0, 0, 0, 0.32)) brightness(1.05);
}
.stat-card:hover .icon3d {
    animation-play-state: paused;
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.4)) brightness(1.1);
}

[data-theme="dark"] .value-card:hover .icon3d {
    filter: drop-shadow(0 16px 28px rgba(0, 229, 255, 0.36)) brightness(1.07);
}
[data-theme="dark"] .stat-icon .icon3d {
    filter: drop-shadow(0 9px 16px rgba(0, 0, 0, 0.5)) brightness(1.1);
}

@media (max-width: 575.98px) {
    .value-card:has(.icon3d) .value-icon-wrap { width: 70px; height: 70px; }
    .stat-icon .icon3d { width: 50px; height: 50px; }
}

/* ============================
   ADMIN: Icon3D Picker + Upload Widget
   ============================ */
.astjo-icon-picker {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    background: #ffffff;
}
[data-theme="dark"] .astjo-icon-picker {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.12);
}
.astjo-picker-tabs {
    border-bottom: 1px solid #e5e7eb;
    gap: 6px;
    margin-bottom: 12px;
    padding: 0 !important;
    margin-top: 0 !important;
}
.astjo-picker-tab {
    border: none;
    background: none;
    padding: 8px 14px;
    font-weight: 700;
    color: #64748b;
    border-bottom: 2px solid transparent;
    font-size: 0.9rem;
    cursor: pointer;
}
.astjo-picker-tab:hover { color: #4f46e5; }
.astjo-picker-tab.active {
    color: #7c5cfc;
    border-bottom-color: #7c5cfc;
}
.icon3d-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
    padding: 4px;
}
.icon3d-option {
    border: 2px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border-radius: 12px;
    padding: 8px 4px 6px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.icon3d-option img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    margin: 0 auto 4px;
    filter: drop-shadow(0 3px 5px rgba(30, 64, 175, 0.22));
}
.icon3d-option span {
    font-size: 0.68rem;
    color: #475569;
    display: block;
    line-height: 1.3;
    font-weight: 600;
}
.icon3d-option:hover {
    transform: translateY(-3px);
    border-color: #a5b4fc;
    box-shadow: 0 6px 14px rgba(99, 102, 241, 0.18);
}
.icon3d-option.selected {
    border-color: #7c5cfc;
    background: linear-gradient(135deg, #ede9fe, #e0e7ff);
    box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.15);
}
.astjo-current-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}
.astjo-current-icon img,
.astjo-current-icon i {
    width: 42px;
    height: 42px;
    object-fit: contain;
    font-size: 1.6rem;
    text-align: center;
    line-height: 42px;
    color: #7c5cfc;
}
.astjo-current-icon small { color: #64748b; font-weight: 600; }

/* ============================================
   تسجيل الدخول المزدوج (بريد / هاتف) + الأمان
   ============================================ */
.login-method-tabs {
    display: flex;
    gap: 6px;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 5px;
    margin-bottom: 18px;
}
.lmt-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 8px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.25s ease;
    cursor: pointer;
}
.lmt-btn i { font-size: 1rem; }
.lmt-btn:hover { color: #4f46e5; }
.lmt-btn.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.pw-toggle { border-color: #e2e8f0; color: #64748b; }
.pw-toggle:hover { background: #f1f5f9; color: #4f46e5; border-color: #c7d2fe; }

/* مؤشر قوة كلمة المرور */
.pw-strength-wrap { margin-top: 2px; }
.pw-strength-bar {
    height: 7px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}
#pwStrengthFill {
    height: 100%;
    width: 0;
    border-radius: 10px;
    transition: width 0.35s ease, background 0.35s ease;
}
#pwStrengthFill.pw-weak    { background: linear-gradient(90deg, #ef4444, #f87171); width: 33%; }
#pwStrengthFill.pw-medium  { background: linear-gradient(90deg, #f59e0b, #fbbf24); width: 66%; }
#pwStrengthFill.pw-strong  { background: linear-gradient(90deg, #10b981, #34d399); width: 85%; }
#pwStrengthFill.pw-vstrong { background: linear-gradient(90deg, #059669, #14b8a6, #6366f1); width: 100%; }

/* تحسين حقول التحقق */
#registerPhoneInput.is-valid { border-color: #10b981; }
#registerPhoneInput.is-invalid { border-color: #ef4444; }

/* الوضع الليلي */
[data-theme="dark"] .login-method-tabs { background: #1e293b; }
[data-theme="dark"] .lmt-btn { color: #94a3b8; }
[data-theme="dark"] .pw-toggle { border-color: #334155; color: #94a3b8; }
[data-theme="dark"] .pw-strength-bar { background: #334155; }

/* موبايل */
@media (max-width: 576px) {
    .lmt-btn { font-size: 0.8rem; padding: 9px 4px; gap: 4px; }
}

/* ============================================
   [4.1] كابتشا التسجيل — أرقام فقط، ناعمة وأنيقة
   ============================================ */
.captcha-card {
    display: flex;
    gap: .75rem;
    align-items: stretch;
    background: linear-gradient(135deg, #f8faff, #f4f2ff);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: .75rem;
    transition: var(--transition);
}
.captcha-card:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
.captcha-img-wrap { line-height: 0; flex-shrink: 0; }
.captcha-img-wrap img {
    border-radius: 10px;
    border: 1px solid #e3e6f4;
    display: block;
    transition: opacity .2s;
}
.captcha-img-wrap img.refreshing { opacity: .35; }
/* زر التحديث — دائري مستقل بجانب الصورة */
.captcha-refresh {
    flex-shrink: 0;
    align-self: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e3e6f4;
    background: #ffffff;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.10);
    cursor: pointer;
    transition: transform .3s ease, color .2s, box-shadow .2s;
}
.captcha-refresh:hover {
    transform: rotate(120deg);
    color: var(--secondary);
    box-shadow: 0 3px 10px rgba(124, 92, 252, 0.25);
}
.captcha-input-wrap { display: flex; flex-direction: column; justify-content: center; line-height: 1.4; }
.captcha-input-wrap .form-control {
    text-align: center;
    font-size: 1.05rem;
    letter-spacing: .3em;
    font-weight: 700;
    border-radius: 10px;
}
.captcha-shake { animation: captchaShake .45s ease; }
@keyframes captchaShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ============================================
   [4.2] كارت الموافقة على الشروط والأحكام
   ============================================ */
.terms-card {
    background: linear-gradient(135deg, #f0fdf4, #f0f9ff);
    border: 1px solid #d1fae5;
    border-radius: 14px;
    padding: .85rem 1rem;
}
.terms-card .form-check-input {
    width: 1.15em;
    height: 1.15em;
    margin-top: .22em;
    cursor: pointer;
    border: 2px solid #cbd5e1;
}
.terms-card .form-check-input:checked {
    background-color: #10b981;
    border-color: #10b981;
}
.terms-card .form-check-label { cursor: pointer; font-size: .92rem; color: var(--text-primary); line-height: 1.8; }
.terms-link {
    background: linear-gradient(90deg, var(--primary-dark), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: opacity .2s;
}
.terms-link:hover { opacity: .75; text-decoration: underline; }

/* الوضع الليلي */
[data-theme="dark"] .captcha-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .captcha-refresh { background: #0f172a; border-color: #334155; color: #38bdf8; }
[data-theme="dark"] .captcha-input-wrap .form-control { background: #0f172a; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .terms-card { background: rgba(16, 185, 129, 0.08); border-color: #065f46; }
[data-theme="dark"] .terms-card .form-check-label { color: #e2e8f0; }

/* موبايل */
@media (max-width: 575.98px) {
    .captcha-card { flex-direction: column; align-items: center; gap: .6rem; }
    .captcha-refresh { width: 42px; height: 42px; font-size: 1.15rem; }
    .captcha-input-wrap { width: 100%; }
}

/* ============================================
   [4.3] إصلاحات وضع الإنجليزية (LTR)
   الاتجاه يتبع وسم html[dir] — الترجمات عبر site.js
   ============================================ */
html[dir="ltr"] body { direction: ltr; }

/* عناوين "من نحن" تصبح محاذاة لليسار في الإنجليزية */
html[dir="ltr"] .about-content .section-title { text-align: left; }

/* روابط الفوتر: تأثير التحويم ينتقل للجهة المقابلة */
html[dir="ltr"] .footer-links a:hover { padding-right: 0; padding-left: 8px; }

/* زر إغلاق النوافذ المنبثقة ينتقل لليمين في الإنجليزية */
html[dir="ltr"] .modal .btn-close.position-absolute { left: auto !important; right: 15px !important; }

/* لمسات البطاقات الملونة في الوضع الليلي تنتقل للجهة المقابلة */
html[dir="ltr"][data-theme="dark"] .portfolio-card:nth-child(1) { border-left: none; border-right: 3px solid var(--dm-turquoise); }
html[dir="ltr"][data-theme="dark"] .portfolio-card:nth-child(2) { border-left: none; border-right: 3px solid var(--dm-purple); }
html[dir="ltr"][data-theme="dark"] .portfolio-card:nth-child(3) { border-left: none; border-right: 3px solid var(--dm-orange); }
html[dir="ltr"][data-theme="dark"] .portfolio-card:nth-child(4) { border-left: none; border-right: 3px solid var(--dm-cyan); }
html[dir="ltr"][data-theme="dark"] .contact-info-card:nth-child(1) { border-right: none; border-left: 3px solid var(--dm-turquoise); }
html[dir="ltr"][data-theme="dark"] .contact-info-card:nth-child(2) { border-right: none; border-left: 3px solid var(--dm-purple); }
html[dir="ltr"][data-theme="dark"] .contact-info-card:nth-child(3) { border-right: none; border-left: 3px solid var(--dm-orange); }
html[dir="ltr"][data-theme="dark"] .contact-info-card:nth-child(4) { border-right: none; border-left: 3px solid var(--dm-cyan); }

/* ============================================
   [10.2] نظام الأدوار والصلاحيات (لوحة التحكم)
   شارات الرتب + خانات اختيار الأقسام
   ============================================ */
.perm-group { border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; background: #f8fafc; }
.perm-group-title { font-size: .8rem; font-weight: 700; color: #475569; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .03em; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.perm-item input { position: absolute; opacity: 0; pointer-events: none; }
.perm-box { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 8px; border: 1.5px solid #cbd5e1; background: #fff; font-size: .82rem; font-weight: 500; color: #334155; cursor: pointer; transition: all .18s ease; user-select: none; }
.perm-box i { font-size: .78rem; color: #94a3b8; transition: color .18s ease; }
.perm-item input:checked + .perm-box { border-color: #0d9488; background: rgba(13,148,136,.08); color: #0f766e; }
.perm-item input:checked + .perm-box i { color: #0d9488; }
.perm-item input:checked + .perm-box::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .7rem; margin-inline-start: auto; color: #0d9488; }
.perm-item input:focus-visible + .perm-box { outline: 2px solid #0d9488; outline-offset: 2px; }
.perm-box:hover { border-color: #0d9488; }
.perm-chip { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(13,148,136,.1); color: #0f766e; margin: 1px 0 1px 3px; white-space: nowrap; }
.perm-chip i { font-size: .62rem; }
.perm-chip-more { background: #e2e8f0; color: #475569; }
[data-theme="dark"] .perm-group { border-color: #2a3550; background: rgba(255,255,255,.03); }
[data-theme="dark"] .perm-group-title { color: #8fa2bc; }
[data-theme="dark"] .perm-box { border-color: #3a4a6b; background: rgba(255,255,255,.04); color: #c9d5e8; }
[data-theme="dark"] .perm-box i { color: #8fa2bc; }
[data-theme="dark"] .perm-item input:checked + .perm-box { border-color: #2dd4bf; background: rgba(45,212,191,.1); color: #5eead4; }
[data-theme="dark"] .perm-item input:checked + .perm-box i { color: #2dd4bf; }
[data-theme="dark"] .perm-item input:checked + .perm-box::after { color: #2dd4bf; }
[data-theme="dark"] .perm-box:hover { border-color: #2dd4bf; }
[data-theme="dark"] .perm-chip { background: rgba(45,212,191,.12); color: #5eead4; }
[data-theme="dark"] .perm-chip-more { background: #2a3550; color: #8fa2bc; }
/* شارة الرتبة في هيدر اللوحة */
.admin-header .badge { font-size: .72rem; padding: 5px 10px; border-radius: 999px; }
/* صف مدير النظام المحمي */
.table-avatar.bg-danger { background: #dc3545 !important; color: #fff; }
/* ── لوحة عدد الزوار (بنل الدياشبورد) ── */
.visitor-stat-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border-color);
}
.visitor-stat-row:last-child { border-bottom: none; padding-bottom: 4px; }
.visitor-stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; color: white;
    flex-shrink: 0;
}
.visitor-stat-icon.today { background: linear-gradient(135deg, #06b6d4, #3b82f6); box-shadow: 0 6px 16px rgba(6, 182, 212, 0.3); }
.visitor-stat-icon.total { background: linear-gradient(135deg, #8b5cf6, #6366f1); box-shadow: 0 6px 16px rgba(139, 92, 246, 0.3); }
.visitor-stat-label { font-weight: 700; color: var(--text-primary); font-size: 1rem; }
.visitor-stat-value { font-size: 2rem; font-weight: 800; line-height: 1; min-width: 56px; text-align: center; }
.visitor-stat-value.today { color: #0891b2; }
.visitor-stat-value.total { color: #7c3aed; }

.visitors-week { height: 150px; padding-top: 4px; }
.visitors-day { display: flex; flex-direction: column; align-items: center; height: 100%; }
.visitors-count { font-size: 0.8rem; font-weight: 700; color: var(--text-primary); }
.visitors-bar-wrap { flex: 1; width: 100%; max-width: 44px; display: flex; align-items: flex-end; background: rgba(100, 116, 139, 0.1); border-radius: 8px; overflow: hidden; margin: 4px 0; }
.visitors-bar { width: 100%; background: linear-gradient(180deg, #38bdf8, #6366f1); border-radius: 8px 8px 0 0; transition: height .4s ease; }
.visitors-bar.is-today { background: linear-gradient(180deg, #06b6d4, #3b82f6); box-shadow: 0 0 10px rgba(6, 182, 212, 0.45); }
.visitors-label { font-size: 0.72rem; color: var(--text-secondary); }

[data-theme="dark"] .visitor-stat-row { border-bottom-color: var(--dm-border, rgba(255,255,255,0.08)); }
[data-theme="dark"] .visitor-stat-label,
[data-theme="dark"] .visitors-count { color: var(--dm-text, #e2e8f0); }
[data-theme="dark"] .visitor-stat-value.today { color: #22d3ee; }
[data-theme="dark"] .visitor-stat-value.total { color: #a78bfa; }
[data-theme="dark"] .visitors-bar-wrap { background: rgba(255, 255, 255, 0.07); }

/* ═══ [v5.6.3] دفاعية موبايل: توسيط رؤوس الأقسام + أيقونات الخدمات ═══ */
@media (max-width: 991px) {
    .section-header,
    .section-header .section-badge,
    .section-header .section-title,
    .section-header .section-desc {
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }
    .section-header .section-badge { display: inline-block; }

    /* توسيط أيقونات الخدمات الثلاثية داخل البطاقات (طلب المستخدم: بالمنتصف في الموبايل) */
    .service-card .service-icon {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}


/* ═══ [v5.6.3] إظهار لوجو الهيرو في الموبايل (العمود كان d-none d-lg-block) ═══ */
@media (max-width: 991px) {
    .hero .col-lg-5 {
        display: block !important;   /* يلغي display:none !important من d-none */
        order: -1;                   /* اللوجو يظهر فوق المحتوى */
        padding-bottom: 0;
    }
    .hero-visual {
        display: block !important;
        height: 220px;
        margin-bottom: 6px;
    }
    .hero-logo-img {
        width: 130px !important;
        height: 130px !important;
    }
}

/* ═══ [v5.6.4] توسيط بطاقات آراء العملاء في الموبايل (طلب المستخدم) ═══ */
@media (max-width: 991px) {
    .testimonials-section .testimonial-card {
        text-align: center !important;
        align-items: center;
        max-width: 480px;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .testimonials-section .testimonial-stars {
        display: flex;
        justify-content: center;
        gap: 3px;
    }
    .testimonials-section .testimonial-text {
        text-align: center !important;
        width: 100%;
    }
    .testimonials-section .testimonial-author {
        justify-content: center;
        text-align: center;
    }
    .testimonials-section .testimonial-author strong,
    .testimonials-section .testimonial-author small {
        text-align: center;
    }
}
