/* === Dark Theme Base === */
body {
    font-family: 'Cairo', sans-serif;
    background: radial-gradient(circle at center, #1f233a, #181c2f 75%); /* High-quality radial gradient background */
    color: #fff;
    padding-right: 240px !important;
}

/* Navbar */
.navbar {
    background: #23263a !important;
    box-shadow: none;
    padding: 0.7rem 0;
}
.navbar-brand {
    font-weight: 900;
    font-size: 1.7rem;
    background: linear-gradient(90deg, #e14eca 0%, #7367f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-link {
    color: #fff !important;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0 0.3rem;
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: #e14eca !important;
}
.nav-link.btn {
    color: #fff !important;
    background: linear-gradient(90deg, #e14eca 0%, #7367f0 100%);
    border: none;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(115,103,240,0.15);
    transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.nav-link.btn:hover {
    background: linear-gradient(90deg, #7367f0 0%, #e14eca 100%);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(225,78,202,0.15);
}

/* Hero Section */
.hero-section {
    background: #181c2f;
    color: #fff;
    padding: 90px 0 60px 0;
    text-align: center;
}
.hero-section h1 {
    font-weight: 900;
    font-size: 3rem;
    color: #fff;
    margin-bottom: 10px;
}
.hero-section .brand-gradient {
    background: linear-gradient(90deg, #e14eca 0%, #7367f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 2.5rem;
    display: inline-block;
}
.hero-section .lead {
    color: #c7c7c7;
    font-size: 1.2rem;
    margin-bottom: 30px;
}
.hero-section .btn-primary, .hero-section .btn-dark {
    font-weight: 700;
    font-size: 1.1rem;
    padding: 12px 32px;
    border-radius: 8px;
    margin: 0 8px;
    transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out, color 0.3s ease-in-out;
}
.hero-section .btn-primary {
    background: linear-gradient(90deg, #e14eca 0%, #7367f0 100%);
    border: none;
}
.hero-section .btn-primary:hover {
    background: linear-gradient(90deg, #7367f0 0%, #e14eca 100%);
}
.hero-section .btn-dark {
    background: #23263a;
    color: #fff;
    border: 1px solid #7367f0;
}
.hero-section .btn-dark:hover {
    background: #181c2f;
    color: #e14eca;
}

/* Card Styles */
.card {
    background: #23263a;
    border: 1.5px solid #31344d;
    border-radius: 14px;
    box-shadow: none;
    color: #fff;
    margin-bottom: 30px;
    transition: border 0.3s ease-in-out, box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.card:hover {
    border-color: #7367f0;
    box-shadow: 0 4px 24px rgba(115,103,240,0.08);
    transform: translateY(-5px);
}
.card-title {
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}
.card .bi {
    font-size: 2.2rem;
    margin-bottom: 18px;
    color: #e14eca;
}

/* Pricing Section */
.pricing-section {
    background: #181c2f;
    padding: 70px 0 40px 0;
}
.pricing-section h2 {
    color: #fff;
}
.pricing-section .card {
    background: #23263a;
    border: 1.5px solid #31344d;
    color: #fff;
    transition: border 0.3s ease-in-out, box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.pricing-section .card:hover {
    border-color: #7367f0;
    box-shadow: 0 4px 24px rgba(115,103,240,0.08);
    transform: translateY(-5px);
}
.pricing-section .card-title {
    color: #fff;
}
.pricing-section .display-4 {
    color: #e14eca;
    font-weight: 900;
}
.pricing-section .btn-primary {
    background: linear-gradient(90deg, #e14eca 0%, #7367f0 100%);
    border: none;
    font-weight: 700;
    transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.pricing-section .btn-primary:hover {
    background: linear-gradient(90deg, #7367f0 0%, #e14eca 100%);
}

/* Footer */
footer {
    background: #23263a;
    color: #fff;
    padding: 40px 0 20px;
    border-top: 2px solid #31344d;
}
footer h5 {
    color: #e14eca;
    font-weight: 800;
}
footer a {
    color: #fff;
    opacity: 0.8;
    transition: color 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
footer a:hover {
    color: #e14eca;
    opacity: 1;
}
.social-links a {
    background: #31344d;
    color: #e14eca;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 1.2rem;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}
.social-links a:hover {
    background: #e14eca;
    color: #fff;
}

/* Form Styles */
.form-control {
    background: #23263a;
    color: #fff;
    border: 1.5px solid #31344d;
    border-radius: 8px;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.form-control:focus {
    border-color: #e14eca;
    background: #23263a;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(225,78,202,0.15);
}

.form-select {
    background-color: #23263a !important;
    color: #fff !important;
    border: 1.5px solid #31344d !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Custom Text Colors */
.text-purple-300 {
    color: #c792ea !important;
}

.text-gray-300 {
    color: #a0aec0 !important;
}

/* Custom Button Styles */
.btn-green {
    background: #16a34a !important;
    color: #fff !important;
    font-weight: bold;
    font-size: 1.3rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.btn-green:hover {
    background: #15803d !important;
    color: #fff !important;
}

.btn-green span {
    color: #fff !important;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
    background: #2c2f48;
    color: #fff;
    transition: opacity 0.3s ease-in-out;
}

/* Badge Styles */
.badge {
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 500;
    background: #31344d;
    color: #e14eca;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Main Content Area */
.main-content {
    margin-right: 240px;
    transition: margin-right 0.3s ease-in-out;
}

/* Responsive Styles */
@media (max-width: 991px) {
    body {
        padding-right: 0 !important;
    }
    .sidebar {
        width: 100% !important;
        height: auto !important;
        position: static !important;
        flex-direction: row !important;
        border-bottom: 2px solid #31344d;
        box-shadow: none;
        overflow-x: auto;
        white-space: nowrap;
        transition: all 0.3s ease-in-out;
    }
    .sidebar .sidebar-header {
        padding: 16px 0 8px 0 !important;
        border-bottom: none !important;
    }
    .sidebar .nav {
        flex-direction: row !important;
        justify-content: center;
        padding: 0 15px;
    }
    .sidebar .nav-link {
        margin: 0 10px;
        padding: 10px 15px;
        transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, margin 0.3s ease-in-out, padding 0.3s ease-in-out;
    }
    .sidebar .nav-link.btn {
        margin: 0 10px;
    }
    .main-content {
        margin-right: 0;
    }
}
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0 30px 0;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section .brand-gradient {
        font-size: 1.8rem;
    }
    .hero-section .lead {
        font-size: 1rem;
    }
    .hero-section .btn-primary, .hero-section .btn-dark {
        font-size: 1rem;
        padding: 10px 24px;
        margin: 0 5px;
    }
    .card-body {
        padding: 18px;
    }
    .btn {
        padding: 10px 18px;
    }
    .pricing-section {
        padding: 50px 0 20px 0;
    }
    .pricing-section .display-4 {
        font-size: 2.5rem;
    }
    .table-responsive {
        overflow-x: auto;
    }
}
@media (max-width: 576px) {
    body {
        font-size: 0.9rem;
    }
    .navbar-brand {
        font-size: 1.4rem;
    }
    .nav-link {
        font-size: 0.95rem;
        margin: 0 0.2rem;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .hero-section .brand-gradient {
        font-size: 1.5rem;
    }
    .hero-section .lead {
        font-size: 0.9rem;
    }
    .hero-section .btn-primary, .hero-section .btn-dark {
        font-size: 0.9rem;
        padding: 8px 18px;
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    .hero-section .btn-dark {
        margin-right: 0;
    }
    .card {
        margin-bottom: 20px;
    }
    .card-title {
        font-size: 1.2rem;
    }
    .card .bi {
        font-size: 1.8rem;
    }
    .form-control {
        font-size: 0.9rem;
    }
    .alert {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    .badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    footer {
        padding: 30px 0 15px;
    }
    footer h5 {
        font-size: 1.1rem;
    }
}
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 100%;
}

/* RTL Fixes */
[dir="rtl"] .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}
[dir="rtl"] .text-start {
    text-align: right !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.card { animation: fadeIn 0.5s ease-out; } 
.card { animation: fadeIn 0.5s ease-out; } 