        @import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');
        
        @import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');

:root { 
    /* Modern Cloud Palette - Light Mode */
    --primary-color: #4f46e5; /* Indigo */
    --primary-dark: #4338ca;
    --secondary-color: #0ea5e9; /* Sky Blue */
    --accent-color: #8b5cf6; /* Violet */
    --bg-body: #ffffff;
    --bg-light: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --gradient-main: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    --gradient-hero: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
}

/* Dark Mode Variables */
body.dark-mode {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --bg-body: #0f172a;
    --bg-light: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: #1e293b;
    --border-color: #334155;
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}

body { 
    font-family: 'Cairo', sans-serif; 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    scroll-behavior: smooth; 
    text-align: right; 
    direction: rtl;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* Hero Section */
.hero-section { 
    padding: 100px 0 60px; 
    background: var(--gradient-hero); 
    position: relative; 
    overflow: hidden; 
    transition: background 0.3s;
}

/* Theme Toggle & Login Trigger */
.floating-actions {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.action-btn {
    cursor: pointer; 
    background: var(--card-bg); 
    color: var(--primary-color); 
    width: 45px; 
    height: 45px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    transition: 0.3s; 
    border: 1px solid var(--border-color); 
}
.action-btn:hover { 
    transform: translateY(-3px); 
    background: var(--primary-color);
    color: white;
}

.login-trigger { 
    background: var(--gradient-main);
    color: white;
    border: none;
}
.login-trigger:hover { 
    transform: scale(1.05); 
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
}

.register-card { 
    background: var(--card-bg); 
    border-radius: 24px; 
    padding: 40px; 
    border: 1px solid var(--border-color); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.05); 
    text-align: right; 
    position: relative;
    z-index: 2;
}

.form-control { 
    border-radius: 12px; 
    padding: 12px; 
    border: 1px solid var(--border-color); 
    background: var(--bg-body); 
    color: var(--text-main);
    transition: 0.3s; 
    text-align: right; 
}
.form-control:focus { 
    border-color: var(--primary-color); 
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.1); 
    background: var(--bg-body);
    color: var(--text-main);
    outline: none; 
}

.btn-main { 
    background: var(--gradient-main); 
    color: white; 
    border-radius: 12px; 
    padding: 14px; 
    font-weight: 700; 
    border: none; 
    transition: 0.3s; 
}
.btn-main:hover { 
    filter: brightness(1.1);
    transform: translateY(-3px); 
    color: white; 
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

/* Features Tabs */
.features-tabs { 
    background: var(--bg-light); 
    padding: 100px 0; 
    border-top: 1px solid var(--border-color); 
    border-bottom: 1px solid var(--border-color); 
}

.nav-custom-pills { 
    overflow-x: auto; 
    flex-wrap: nowrap; 
    padding-bottom: 10px; 
    border: none; 
    gap: 10px;
}
.nav-custom-pills .nav-link { 
    color: var(--text-muted); 
    font-weight: 700; 
    border-radius: 12px; 
    margin: 0; 
    transition: 0.4s; 
    padding: 12px 25px; 
    white-space: nowrap; 
    border: 1px solid transparent; 
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}
.nav-custom-pills .nav-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}
.nav-custom-pills .nav-link.active { 
    background: var(--primary-color) !important; 
    color: white !important; 
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2); 
    transform: translateY(-2px);
}

.preview-box { 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.1); 
    border: 8px solid var(--card-bg); 
    margin-top: 20px; 
    transition: transform 0.3s ease;
    background: var(--card-bg);
}
.preview-box:hover {
    transform: translateY(-5px);
}

/* Features Grid */
.feature-item { 
    text-align: right; 
    height: 100%; 
    padding: 20px;
    border-radius: 20px;
    transition: 0.3s;
}
.feature-item:hover {
    background: var(--card-bg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.icon-box { 
    width: 70px; 
    height: 70px; 
    background: rgba(79, 70, 229, 0.1); 
    color: var(--primary-color); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 18px; 
    margin-bottom: 20px; 
    font-size: 1.8rem; 
    transition: 0.3s;
}
.feature-item:hover .icon-box {
    background: var(--primary-color);
    color: white;
    transform: rotate(5deg);
}

/* Packages */
.package-card { 
    border-radius: 30px; 
    padding: 40px 30px; 
    border: 1px solid var(--border-color); 
    transition: 0.4s; 
    background: var(--card-bg); 
    height: 100%; 
    text-align: right; 
    position: relative;
}
.package-card.featured { 
    border: 2px solid var(--primary-color); 
    background: var(--card-bg); 
    transform: scale(1.05); 
    z-index: 2;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
}
.package-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.05); 
}
.package-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.text-primary-custom { color: var(--primary-color) !important; }

/* Stats */
.stat-item { 
    border-right: 2px solid var(--border-color); 
    padding: 15px; 
    text-align: center; 
}
.stat-num { 
    font-size: 2.5rem; 
    font-weight: 900; 
    color: var(--primary-color); 
    line-height: 1;
    margin-bottom: 5px;
}

/* Partners Section */
.partners-section {
    padding: 60px 0;
    background: var(--bg-body);
    border-top: 1px solid var(--border-color);
}
.partner-logo {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: 0.3s;
    max-width: 120px;
    height: auto;
}
.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: #0f172a; /* Always dark footer */
    color: white;
    padding: 80px 0 40px;
    direction: rtl;
    text-align: right;
}
footer a {
    transition: 0.3s;
}
footer a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
    display: inline-block;
}

/* Modal Styles */
.modal-content {
    background-color: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.btn-close {
    filter: invert(var(--invert-val)); /* Adjust close button color */
}
body.dark-mode { --invert-val: 1; }
body:not(.dark-mode) { --invert-val: 0; }

/* Responsive */
@media (max-width: 768px) {
    .headline { font-size: 2rem !important; }
    .stat-num { font-size: 2rem; }
    .stat-item { border-right: none; border-bottom: 2px solid var(--border-color); margin-bottom: 15px; }
    .nav-custom-pills { justify-content: flex-start !important; }
    .floating-actions { top: 15px; left: 15px; }
    .package-card.featured { transform: scale(1); }
    .package-card.featured:hover { transform: translateY(-10px); }
}
