:root {
    --primary: #2b7a62;
    --primary-dark: #1f5a48;
    --primary-light: #4da88f;
    --accent: #fbbf24;
    --danger: #ef4444;
    --success: #10b981;
    --bg-light: #f8fafc;
    --text-muted: #64748b;
    --cairo: 'Cairo', sans-serif;
    --inter: 'Inter', sans-serif;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-light);
    font-family: var(--inter);
}


.font-cairo,
[dir="rtl"],
[dir="rtl"] * {
    font-family: var(--cairo);
}

@font-face {
  font-family: "Font Awesome 6 Brands";
  font-display: swap;
}
@font-face {
  font-family: "Font Awesome 6 Free";
  font-display: swap;
}

.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", fontawesome !important;
}


::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}


.dir-ltr {
    direction: ltr;
}

.dir-rtl {
    direction: rtl;
}


.gradient-bg {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}

.cta-gradient {
    background: linear-gradient(to right, var(--primary), var(--primary-light));
}


.card-hover {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.custom-shadow {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.step-number {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 10px 15px -3px rgba(43, 122, 98, 0.3);
}


.vertical-video {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 9/16;
    border-radius: 2rem;
    overflow: hidden;
    background: #000;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.35);
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}


.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-500 {
    transition-delay: 500ms;
}


*,
*::before,
*::after {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.1s ease;
}


.step-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 25px rgba(43, 122, 98, 0.4);
    filter: brightness(1.2);
}

.step-card:hover h3 {
    color: var(--primary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }
}

.animate-scroll {
    animation: scroll 25s linear infinite;
}

.animate-scroll-reverse {
    animation: scroll-reverse 30s linear infinite;
}


.premium-input,
.premium-select {
    background-color: #ffffff;
    border: 2px solid #f8fafc;
    border-radius: 1.25rem;
    padding: 0.9rem 1.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    outline: none !important;
}

.premium-input:hover,
.premium-select:hover {
    border-color: #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.premium-input:focus,
.premium-select:focus,
.premium-input:focus-visible,
.premium-select:focus-visible {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: none !important;
    outline: none !important;
    transform: none;
}

.premium-input::placeholder {
    color: #cbd5e1;
    font-weight: 600;
}


body.dark #darkModeToggle i {
    color: var(--accent);
    transform: scale(1.1);
}


.admin-sidebar {
    background: linear-gradient(195deg, var(--primary-dark) 0%, #0f3a2c 100%);
    transition: all 0.4s cubic-bezier(.4, 0, .2, 1);
}

.sidebar-scroll {
    scrollbar-width: none;
}

.sidebar-scroll::-webkit-scrollbar {
    display: none;
}

@media (max-width: 1024px) {
    .admin-sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        bottom: 0;
        z-index: 1000;
        width: 300px;
    }

    [dir="rtl"] .admin-sidebar {
        left: auto;
        right: -300px;
    }

    .admin-sidebar.active {
        left: 0;
    }

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

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 900;
        display: none;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

.admin-card {
    background: white;
    border-radius: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s;
}

.nav-link {
    transition: all 0.2s;
    border-radius: 1.25rem;
    border-left: 4px solid transparent;
}

[dir="rtl"] .nav-link {
    border-left: 0;
    border-right: 4px solid transparent;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--accent);
}

[dir="rtl"] .nav-link.active {
    border-right-color: var(--accent);
}

.glass-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
}


html.dark body {
    background-color: #0f172a;
    color: #f1f5f9;
}

html.dark main {
    background-color: #0f172a !important;
}

html.dark .admin-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
}

html.dark .glass-header {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

html.dark .premium-input,
html.dark .premium-select {
    background-color: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

html.dark .premium-input:focus {
    border-color: var(--primary-light);
}

html.dark h2,
html.dark h3,
html.dark h4 {
    color: #f8fafc;
}

html.dark .text-gray-800 {
    color: #f1f5f9 !important;
}

html.dark .text-gray-500 {
    color: #94a3b8 !important;
}

html.dark .bg-white {
    background-color: #1e293b !important;
}

html.dark .bg-gray-50 {
    background-color: #0f172a !important;
}

html.dark .border-gray-100 {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

html.dark .tab-content {
    background-color: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

html.dark table thead {
    background-color: rgba(255, 255, 255, 0.02);
}

html.dark tr:hover {
    background-color: rgba(255, 255, 255, 0.03) !important;
}