/* VCore Solutions — design system (mode + palette على html) */
html[data-palette="ocean"] {
    --primary: #22d3ee;
    --primary-dark: #06b6d4;
    --secondary: #a78bfa;
    --mesh-1: 34, 211, 238;
    --mesh-2: 167, 139, 250;
    --mesh-3: 244, 114, 182;
}

html[data-palette="violet"] {
    --primary: #c084fc;
    --primary-dark: #a855f7;
    --secondary: #f472b6;
    --mesh-1: 192, 132, 252;
    --mesh-2: 244, 114, 182;
    --mesh-3: 129, 140, 248;
}

html[data-palette="emerald"] {
    --primary: #34d399;
    --primary-dark: #10b981;
    --secondary: #2dd4bf;
    --mesh-1: 52, 211, 153;
    --mesh-2: 45, 212, 191;
    --mesh-3: 74, 222, 128;
}

html[data-palette="sunset"] {
    --primary: #fb923c;
    --primary-dark: #ea580c;
    --secondary: #f472b6;
    --mesh-1: 251, 146, 60;
    --mesh-2: 244, 114, 182;
    --mesh-3: 250, 204, 21;
}

html[data-palette="amber"] {
    --primary: #fbbf24;
    --primary-dark: #d97706;
    --secondary: #fb7185;
    --mesh-1: 251, 191, 36;
    --mesh-2: 251, 113, 133;
    --mesh-3: 249, 115, 22;
}

html[data-palette="rose"] {
    --primary: #fb7185;
    --primary-dark: #e11d48;
    --secondary: #e879f9;
    --mesh-1: 251, 113, 133;
    --mesh-2: 232, 121, 249;
    --mesh-3: 244, 114, 182;
}

html {
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --nav-height: 64px;
    --primary-glow: rgba(var(--mesh-1), 0.18);
    --shadow-sm: 0 4px 24px rgba(0, 0, 0, 0.14);
    --shadow-md: 0 16px 48px rgba(0, 0, 0, 0.22);
    --shadow-glow: 0 0 48px rgba(var(--mesh-1), 0.25);
}

/* داكن — خلفية محايدة */
html[data-mode="dark"],
html:not([data-mode]) {
    --bg: #09090b;
    --nav-bg: rgba(24, 24, 27, 0.9);
    --card-bg: rgba(39, 39, 42, 0.42);
    --border: rgba(255, 255, 255, 0.09);
    --text-main: #fafafa;
    --text-muted: #a1a1aa;
    --heading-gradient: linear-gradient(180deg, #fff 25%, #a1a1aa);
    --btn-ghost-bg: rgba(255, 255, 255, 0.05);
    --footer-bg: rgba(9, 9, 11, 0.75);
    --input-bg: rgba(39, 39, 42, 0.85);
}

html[data-mode="light"] {
    --bg: #f4f4f5;
    --nav-bg: rgba(255, 255, 255, 0.94);
    --card-bg: rgba(255, 255, 255, 0.92);
    --border: rgba(9, 9, 11, 0.1);
    --text-main: #18181b;
    --text-muted: #52525b;
    --heading-gradient: linear-gradient(180deg, #18181b 25%, #52525b);
    --btn-ghost-bg: rgba(9, 9, 11, 0.04);
    --footer-bg: rgba(244, 244, 245, 0.95);
    --input-bg: #fff;
    --shadow-sm: 0 4px 20px rgba(9, 9, 11, 0.06);
    --shadow-md: 0 12px 36px rgba(9, 9, 11, 0.1);
    --primary-glow: rgba(var(--mesh-1), 0.12);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.85; }
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes meshShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { 
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    --accent: rgba(var(--mesh-2), 0.14);
    --muted-2: rgba(255,255,255,0.06);
    --fw-heading: 800;
    --fw-regular: 400;
}

body {
    font-family: 'Noto Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    background-color: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    letter-spacing: -0.01em;
    overflow-x: hidden;
    transition: background-color 0.36s var(--ease), color 0.36s var(--ease);
    font-weight: var(--fw-regular);
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 85% 55% at 10% -15%, rgba(var(--mesh-1), 0.22), transparent 52%),
        radial-gradient(ellipse 65% 45% at 95% 5%, rgba(var(--mesh-2), 0.16), transparent 48%),
        radial-gradient(ellipse 75% 55% at 50% 105%, rgba(var(--mesh-3), 0.12), transparent 52%);
    animation: meshShift 14s ease-in-out infinite;
    transition: background 0.6s var(--ease);
}

html:not([data-mode="light"]) body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.35;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 70%);
}

html[data-mode="light"] body::after { opacity: 0.12; }

img { max-width: 100%; height: auto; }

a { color: inherit; }

.main-wrapper,
.container {
    width: min(1140px, 92vw);
    margin-inline: auto;
}

.container { width: min(1200px, 92vw); }

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
    pointer-events: auto;
}

#preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-shield {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 2rem;
    color: #fff;
    animation: pulse 1.4s infinite var(--ease);
    box-shadow: var(--shadow-glow);
}

/* Navbar */
.site-header {
    position: sticky;
    top: 12px;
    z-index: 1000;
    margin-bottom: 2rem;
    animation: fadeInUp 0.55s var(--ease) both;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px 10px 20px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

nav.is-scrolled {
    box-shadow: var(--shadow-md);
    border-color: rgba(6, 182, 212, 0.2);
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    flex-shrink: 0;
}

.v-logo-shield {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.15rem;
    color: #fff;
    box-shadow: 0 10px 30px rgba(var(--mesh-1), 0.18), inset 0 -6px 18px rgba(0,0,0,0.18);
    animation: floatLogo 5s ease-in-out infinite;
    border: 1px solid rgba(255,255,255,0.06);
}

.logo-text {
    font-size: 1.14rem;
    font-weight: var(--fw-heading);
    letter-spacing: -0.02em;
}

.logo-text span {
    color: var(--primary);
    font-weight: 400;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--btn-ghost-bg);
    color: var(--text-main);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all 0.25s var(--ease);
    flex-shrink: 0;
    position: relative;
    z-index: 1002;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nav-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.nav-links-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.nav-links a:not(.btn-auth):not(.btn-nav-support):not(.btn) {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: calc(var(--radius-pill));
    transition: color 0.22s var(--ease), background 0.22s var(--ease), transform 0.22s var(--ease);
    position: relative;
}

.nav-links a:not(.btn-auth):not(.btn-nav-support):not(.btn):hover {
    color: var(--text-main);
    background: linear-gradient(90deg, rgba(var(--mesh-1),0.03), rgba(var(--mesh-2),0.02));
    transform: translateY(-2px);
}

.nav-links a.active-link:not(.btn-nav-support) {
    color: var(--primary) !important;
    background: var(--primary-glow) !important;
}

html[dir="rtl"] .btn-ghost .fa-arrow-left { transform: scaleX(-1); }
html[dir="rtl"] .btn-back .fa-arrow-right { transform: scaleX(-1); }

.btn-nav-support {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(var(--mesh-1), 0.35);
    background: var(--primary-glow);
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    transition: all 0.25s var(--ease);
}

.btn-nav-support:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.btn-auth {
    background: var(--text-main);
    color: var(--bg) !important;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.25s var(--ease);
}

.btn-auth:hover {
    background: var(--primary);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.35);
}

.controls-box {
    display: flex;
    align-items: center;
    gap: 8px;
    border-inline-start: 1px solid var(--border);
    padding-inline-start: 12px;
}

.control-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.25s var(--ease);
}

.control-btn:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
}

/* Typography & sections */
.page-header,
header.page-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem 0 1.5rem;
    animation: fadeInUp 0.7s var(--ease) 0.08s both;
}

.page-header h1,
header.page-hero h1,
.hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.page-header h1 span,
header.page-hero h1 span,
.hero h1 span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-heading {
    background: var(--heading-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p,
header.page-hero p,
.hero p {
    color: var(--text-muted);
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    max-width: 36rem;
    margin-inline: auto;
    line-height: 1.75;
}

.it-badge,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    background: var(--primary-glow);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.section-label,
.title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-label h2,
.title h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-label p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 14px auto 0;
    border-radius: 2px;
}

/* Buttons */
.hero-actions,
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 2rem;
}

.btn-dashboard,
.btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    box-shadow: 0 10px 28px -6px rgba(6, 182, 212, 0.45);
}

.btn-dashboard:hover,
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px -6px rgba(6, 182, 212, 0.5);
    color: #fff;
}

.btn-ghost,
.ghost {
    background: var(--btn-ghost-bg);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s var(--ease);
    box-shadow: none;
}

.btn-ghost:hover,
.ghost:hover {
    border-color: rgba(6, 182, 212, 0.4);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Stats */
.stats-row,
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 3.5rem;
    animation: fadeInUp 0.75s var(--ease) 0.15s both;
}

.stat-box,
.stat {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.35rem 1rem;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: all 0.3s var(--ease);
}

.stat-box:hover,
.stat:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: var(--shadow-glow);
}

.stat-box h3,
.stat h3 {
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 900;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-box p,
.stat p {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Cards */
.grid-main,
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.feature-card,
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(6, 182, 212, 0.1), transparent 45%);
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
}

.feature-card:hover::before { opacity: 1; }

.feature-card:hover,
.card:hover {
    transform: translateY(-6px);
    border-color: rgba(6, 182, 212, 0.28);
    box-shadow: var(--shadow-md);
}

.card-icon-box {
    width: 56px;
    height: 56px;
    background: var(--primary-glow);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    z-index: 1;
}

.feature-card i.fa-icon {
    font-size: 1.6rem;
    color: var(--primary);
}

.feature-card h3,
.card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    z-index: 1;
}

.feature-card p,
.card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    z-index: 1;
}

.card .num {
    font-size: 3.5rem;
    font-weight: 900;
    position: absolute;
    inset-inline-start: 1.25rem;
    top: 0.75rem;
    opacity: 0.06;
    line-height: 1;
    user-select: none;
}

.card h3 { margin: 0 0 0.75rem; position: relative; }

/* IT Company page */
.grid-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem 0 3rem;
    min-height: auto;
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    text-align: start;
}

.hero p {
    text-align: start;
    margin-inline: 0;
    max-width: none;
}

.hero .actions {
    justify-content: flex-start;
}

.visual {
    display: grid;
    gap: 14px;
}

.visual .panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1.25rem 1.35rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(8px);
    transition: all 0.35s var(--ease);
}

.visual .panel i {
    font-size: 1.5rem;
    color: var(--primary);
    background: var(--primary-glow);
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(6, 182, 212, 0.15);
    flex-shrink: 0;
}

.visual .panel:hover {
    transform: translateX(-6px);
    border-color: rgba(6, 182, 212, 0.3);
}

html[dir="ltr"] .visual .panel:hover {
    transform: translateX(6px);
}

.visual .panel h3 {
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.visual .panel p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.section { padding: 3.5rem 0; }

.why,
.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.item,
.step {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    transition: all 0.3s var(--ease);
}

.item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.item:hover,
.step:hover {
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-3px);
}

.step {
    border-inline-end: 4px solid var(--primary);
}

.step strong {
    display: block;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.step p { color: var(--text-muted); font-size: 0.92rem; }

.cta {
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(6, 182, 212, 0.08), rgba(59, 130, 246, 0.06));
    border: 1px solid var(--border);
    margin: 2rem 0;
}

.cta h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
}

/* About */
.about-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(8px);
    animation: fadeInUp 0.8s var(--ease) 0.12s both;
}

.profile-box {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.profile-avatar {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 8px 28px rgba(6, 182, 212, 0.35);
}

.profile-box h2 {
    font-size: 1.6rem;
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 4px;
}

.profile-box .role {
    color: var(--text-muted);
    font-weight: 600;
}

.about-desc {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.info-card {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s var(--ease);
}

html[data-mode="light"] .info-card {
    background: rgba(255, 255, 255, 0.75);
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.35);
}

.info-card i {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Support */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s var(--ease);
    backdrop-filter: blur(8px);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.contact-card > i {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    margin-top: 1rem;
    width: 100%;
    transition: all 0.25s var(--ease);
}

.btn-wa { background: #15803d; color: #fff; }
.btn-wa:hover { background: #16a34a; box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35); color: #fff; }

.btn-mail {
    background: var(--input-bg);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-mail:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.form-section,
.faq-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

.form-section h2,
.faq-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.contact-form {
    display: grid;
    gap: 12px;
    max-width: 520px;
    margin-inline: auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    font-family: inherit;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(6, 182, 212, 0.35);
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    cursor: pointer;
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-answer {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    display: none;
    padding-top: 10px;
    padding-inline-start: 1.75rem;
}

.faq-item.is-open .faq-answer { display: block; }
.faq-item.is-open .faq-question i { transform: rotate(180deg); }

/* Footer */
footer,
.site-footer {
    margin-top: 4rem;
    text-align: center;
    padding: 2.5rem 1rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--footer-bg);
}

.eng-title {
    font-weight: 900;
    font-size: 1.35rem;
    margin-bottom: 6px;
    background: linear-gradient(90deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.eng-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.copyright-text {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 1.5rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(6, 182, 212, 0.25);
    background: var(--primary-glow);
    transition: all 0.25s var(--ease);
}

.btn-back:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.footer-links-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 380px;
    margin: 0 auto;
}

.footer-btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s var(--ease);
    border: 1px solid var(--border);
    background: var(--btn-ghost-bg);
    color: var(--text-main);
}

.footer-btn.btn-primary-glow {
    border-color: rgba(6, 182, 212, 0.3);
    background: var(--primary-glow);
    color: var(--primary);
}

.footer-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

/* WhatsApp & scroll */
@keyframes waFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes waRing {
    0% { transform: scale(1); opacity: 0.55; }
    100% { transform: scale(2.2); opacity: 0; }
}

.wa-wrapper {
    position: fixed;
    bottom: 24px;
    inset-inline-start: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-bubble {
    display: none;
    background: #fff;
    color: #111;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 16px 16px 16px 4px;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

html[dir="ltr"] .wa-bubble {
    border-radius: 16px 16px 4px 16px;
}

.wa-bubble.show { display: block; }

.whatsapp-float {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c3e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    animation: waFloat 3s ease-in-out infinite;
    overflow: hidden;
    transition: width 0.35s var(--ease), border-radius 0.35s var(--ease);
}

.whatsapp-float:hover {
    width: 170px;
    border-radius: var(--radius-pill);
    animation-play-state: paused;
    color: #fff;
}

.wa-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.35);
    animation: waRing 2.4s ease-out infinite;
    pointer-events: none;
}

.wa-ring:nth-child(2) { animation-delay: 0.8s; }
.wa-ring:nth-child(3) { animation-delay: 1.6s; }

.whatsapp-float:hover .wa-ring { display: none; }

.wa-label {
    font-size: 0.85rem;
    font-weight: 800;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    transition: max-width 0.35s var(--ease), opacity 0.25s, margin 0.35s;
}

.whatsapp-float:hover .wa-label {
    max-width: 120px;
    opacity: 1;
    margin-inline-start: 6px;
}

.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-main);
    cursor: pointer;
    z-index: 9998;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    backdrop-filter: blur(10px);
    transition: all 0.35s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero h1,
    .hero p { text-align: center; }

    .hero .actions { justify-content: center; }

    .visual .panel { text-align: start; }
}

@media (max-width: 768px) {
    body { padding: 0 10px 24px; }

    .site-header { top: 8px; margin-bottom: 1.25rem; z-index: 1000; }

    nav {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo toggle"
            "menu menu";
        align-items: center;
        gap: 0 10px;
        border-radius: var(--radius-md);
        padding: 10px 14px;
    }

    .logo-box {
        grid-area: logo;
        min-width: 0;
    }

    .nav-toggle {
        display: flex;
        grid-area: toggle;
        justify-self: end;
    }

    .nav-links-container {
        grid-area: menu;
        display: none !important;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-top: 12px;
        margin-top: 10px;
        border-top: 1px solid var(--border);
    }

    nav.is-open .nav-links-container {
        display: flex !important;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 4px;
    }

    .nav-links a:not(.btn-auth):not(.btn-nav-support) {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .btn-nav-support,
    .btn-auth {
        width: 100%;
        justify-content: center;
    }

    .controls-box {
        border-inline-start: none;
        padding-inline-start: 0;
        justify-content: center;
        width: 100%;
    }

    .stats-row,
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header,
    header.page-hero { padding-top: 1.5rem; }

    .hero-actions .btn-dashboard,
    .hero-actions .btn-ghost,
    .actions .btn,
    .actions .ghost {
        width: 100%;
        justify-content: center;
    }

    .about-section,
    .form-section,
    .faq-section { padding: 1.5rem 1.25rem; }

    .wa-wrapper { bottom: 16px; inset-inline-start: 16px; }
    .scroll-top-btn { bottom: 16px; inset-inline-end: 16px; }
}

@media (max-width: 480px) {
    .stats-row,
    .stats { grid-template-columns: 1fr 1fr; }

    .grid-main { grid-template-columns: 1fr; }

    .feature-card { padding: 1.5rem; }

    .logo-text { font-size: 1rem; }

    .v-logo-shield {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* ===== قسم ربط الفروع (توضيح بصري) ===== */
.connect-section {
    margin-bottom: 3.5rem;
    animation: fadeInUp 0.8s var(--ease) 0.15s both;
}

.connect-diagram {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 8px;
    padding: 2rem 1.25rem;
    margin-bottom: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.connect-diagram::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(var(--mesh-1), 0.08), transparent 65%);
    pointer-events: none;
}

.connect-node {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
}

html[data-mode="light"] .connect-node {
    background: rgba(255, 255, 255, 0.7);
}

.connect-node i {
    font-size: 1.5rem;
    color: var(--primary);
}

.connect-node.hq {
    border-color: rgba(var(--mesh-1), 0.45);
    box-shadow: var(--shadow-glow);
    min-width: 120px;
}

.connect-node.hq i {
    font-size: 1.75rem;
}

.connect-line {
    flex: 0 1 48px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    position: relative;
    z-index: 1;
}

.connect-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 28%;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
    transform: translateY(-50%);
    animation: connectFlow 2.2s ease-in-out infinite;
}

@keyframes connectFlow {
    0% { left: 0; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 72%; opacity: 0; }
}

.connect-remote {
    width: 100%;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-pill);
    border: 1px dashed rgba(var(--mesh-1), 0.4);
    background: var(--primary-glow);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 1;
}

.connect-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.connect-step {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--card-bg);
    text-align: center;
    transition: all 0.3s var(--ease);
}

.connect-step:hover {
    border-color: rgba(var(--mesh-1), 0.35);
    transform: translateY(-3px);
}

.connect-step .step-num {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-glow);
    color: var(--primary);
    font-weight: 900;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.connect-step h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--text-main);
}

.connect-step p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.hero-brand {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.hero-brand span {
    color: var(--primary);
}

@media (max-width: 768px) {
    .connect-diagram {
        flex-direction: column;
        padding: 1.5rem 1rem;
    }

    .connect-line {
        width: 3px;
        height: 28px;
        flex: none;
        background: linear-gradient(180deg, transparent, var(--primary), transparent);
    }

    .connect-line::after {
        width: 3px;
        height: 28%;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        animation: connectFlowV 2.2s ease-in-out infinite;
    }

    @keyframes connectFlowV {
        0% { top: 0; opacity: 0; }
        20% { opacity: 1; }
        80% { opacity: 1; }
        100% { top: 72%; opacity: 0; }
    }

    .connect-steps {
        grid-template-columns: 1fr;
    }
}

/* ===== Theme picker (وضع + ألوان) ===== */
.theme-picker-wrap {
    position: relative;
}

.theme-panel {
    position: fixed;
    top: 84px;
    inset-inline-end: 16px;
    width: min(280px, calc(100vw - 32px));
    padding: 16px;
    background: var(--nav-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 10050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: all 0.3s var(--ease);
    pointer-events: none;
}

.theme-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.theme-panel-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.mode-btn {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--btn-ghost-bg);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s var(--ease);
}

.mode-btn:hover {
    border-color: var(--primary);
    color: var(--text-main);
}

.mode-btn.is-active {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(var(--mesh-1), 0.2);
}

.palette-grid {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .palette-btn {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        padding: 10px 12px;
        border-radius: calc(var(--radius-sm));
        border: 2px solid transparent;
        background: var(--btn-ghost-bg);
        cursor: pointer;
        font-family: inherit;
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--text-muted);
        transition: all 0.18s var(--ease);
.palette-btn.is-active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-glow);
}

.palette-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.palette-swatch.ocean {
    background: linear-gradient(135deg, #22d3ee, #a78bfa);
}

.palette-swatch.violet {
    background: linear-gradient(135deg, #c084fc, #f472b6);
}

.palette-swatch.emerald {
    background: linear-gradient(135deg, #34d399, #2dd4bf);
}

.palette-swatch.sunset {
    background: linear-gradient(135deg, #fb923c, #f472b6);
}

.palette-swatch.amber {
    background: linear-gradient(135deg, #fbbf24, #fb7185);
}

.palette-swatch.rose {
    background: linear-gradient(135deg, #fb7185, #e879f9);
}

.control-btn.theme-trigger.is-open {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
}


.theme-backdrop {
    display: none;
}

/* Android touch optimization */
.theme-trigger {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.theme-panel {
    -webkit-overflow-scrolling: touch;
}

.mode-btn,
.palette-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Ensure proper z-index stacking on mobile */
.theme-picker-wrap.is-backdrop {
    z-index: 10051;
}

@media (max-width: 768px) {
    .theme-panel {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        inset-inline: 0;
        width: 100%;
        max-width: 100%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        transform: translateY(100%);
        z-index: 10050;
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .theme-panel.is-open {
        transform: translateY(0);
    }

    .theme-picker-wrap {
        position: static;
    }

    .theme-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10040;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s;
        pointer-events: none;
    }

    .theme-backdrop.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

/* Premium floating action button (fixed) */
.premium-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 18px 50px rgba(var(--mesh-1), 0.18), 0 6px 20px rgba(0,0,0,0.32);
    border: 1px solid rgba(255,255,255,0.06);
    font-weight: 800;
    font-size: 0.95rem;
    z-index: 10060;
    cursor: pointer;
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), opacity 0.18s;
    -webkit-tap-highlight-color: transparent;
}

.premium-fab i {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    font-size: 0.95rem;
}

.premium-fab:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 26px 70px rgba(var(--mesh-1),0.22); }

@media (max-width: 480px) {
    .premium-fab { right: 12px; bottom: 12px; padding: 10px 12px; font-size: 0.92rem; }
    .premium-fab i { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
