:root {
    --background: 220 30% 8%;
    /* Navy dark blue بدل الأسود */
    --foreground: 0 0% 98%;
    /* أبيض تقريباً */
    --card: 220 30% 10%;
    --card-foreground: 0 0% 98%;
    --primary: 210 100% 50%;
    /* Blue-500 قوي */
    --primary-foreground: 0 0% 98%;
    --primary-glow: 210 100% 65%;
    /* Blue-400 أفتح للـ glow */
    --secondary: 220 20% 18%;
    --secondary-foreground: 0 0% 98%;
    --muted: 220 20% 14%;
    --muted-foreground: 220 10% 70%;
    --accent: 220 30% 20%;
    --accent-foreground: 0 0% 98%;
    --border: 220 20% 25%;
    --tech-blue: 210 100% 60%;
    /* Blue أساسي */
    --tech-cyan: 190 95% 50%;
    /* Cyan للتنويع */
    --tech-light-blue: 210 80% 70%;
    --tech-white: 0 0% 98%;
}

body {
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.bg-gradient-dark {
    background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--muted)));
}

.bg-gradient-primary {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
}

.bg-gradient-tech {
    background: linear-gradient(135deg, hsl(var(--tech-blue)), hsl(var(--tech-cyan)));
}

.bg-gradient-accent {
    background: linear-gradient(135deg, hsl(var(--tech-cyan)), hsl(var(--tech-light-blue)));
}

.text-gradient-primary {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card {
    background: hsl(var(--card) / 0.6);
    border: 1px solid hsl(var(--border) / 0.4);
    border-radius: 0.75rem;
    backdrop-filter: blur(12px);
    transition: all 0.4s ease;
}

.card:hover {
    background: hsl(var(--card) / 0.8);
    border-color: hsl(var(--primary) / 0.5);
    transform: translateY(-4px);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 4px 15px hsl(var(--primary) / 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px hsl(var(--primary) / 0.5);
}


.btn-light {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
    color: hsl(var(--foreground));
}



.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}



.icon {
    width: 1.25rem;
    height: 1.25rem;
}

.hero-bg {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><pattern id="qr" width="4" height="4" patternUnits="userSpaceOnUse"><rect width="4" height="4" fill="%23102040"/><rect x="1" y="1" width="2" height="2" fill="%2360a5fa"/></pattern></defs><rect width="24" height="24" fill="url(#qr)" opacity="0.15"/></svg>');
}

.logo {
    width: 70px;
}

.error-text {
    color: hsl(0 80% 60%);
    font-size: 0.875rem;
}

.social-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
}

.social-btn.facebook {
    background: linear-gradient(135deg, #3b5998, #4c70ba);
}

.social-btn.twitter {
    background: linear-gradient(135deg, #1da1f2, #1ab7ea);
}

.social-btn.google {
    background: linear-gradient(135deg, #db4437, #e57368);
}

.form-label {
    display: block;
    text-align: left;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
}

.form-control.is-invalid {
    border-color: hsl(0 70% 50%);
}

.invalid-feedback {
    color: hsl(0 70% 50%);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group .form-control {
    padding-right: 2.5rem;
    /* Add padding to accommodate the icon */
}

.input-group .btn-light {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    border-radius: 0 0.375rem 0.375rem 0;
    padding: 0 0.75rem;
    display: flex;
    align-items: center;
    z-index: 10;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    background: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
}

.form-check-label {
    font-size: 0.875rem;
    color: hsl(var(--foreground));
}

.d-grid {
    display: grid;
}

.list-inline {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.list-inline-item {
    display: inline-block;
}

.social-list-item {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.social-list-item.bg-primary {
    background: linear-gradient(135deg, #3b5998, #4c70ba);
}

.social-list-item.bg-info {
    background: linear-gradient(135deg, #1da1f2, #1ab7ea);
}

.social-list-item.bg-danger {
    background: linear-gradient(135deg, #db4437, #e57368);
}

.text-muted {
    color: hsl(var(--muted-foreground));
}

body {
    background: hsl(var(--background));
    overflow-x: hidden;
    color: hsl(var(--foreground));
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

.bg-gradient-dark {
    background: linear-gradient(135deg, hsl(240 10% 3.9%), hsl(240 5% 6%));
}

.bg-gradient-primary {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
}

.bg-gradient-tech {
    background: linear-gradient(135deg, hsl(var(--tech-blue)), hsl(var(--tech-purple)));
}

.bg-gradient-accent {
    background: linear-gradient(135deg, hsl(var(--tech-cyan)), hsl(var(--tech-pink)));
}

.text-gradient-primary {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card {
    background: hsl(var(--card) / 0.5);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: 0.75rem;
    backdrop-filter: blur(8px);
}

.card:hover {
    background: hsl(var(--card) / 0.7);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px hsl(var(--primary) / 0.4);
}


.btn-outline {
    background: transparent;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background: hsl(var(--muted));
    border-color: hsl(var(--primary));
}

.btn-xl {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}



.shadow-tech {
    box-shadow: 0 10px 40px -10px hsl(var(--primary) / 0.5);
}






.loader {
    border: 4px solid hsl(var(--muted));
    border-top: 4px solid hsl(var(--primary));
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.subscription-message {
    background: hsl(var(--primary) / 0.1);
    border: 1px solid hsl(var(--primary) / 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    background: hsl(var(--card) / 0.85);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: 0.5rem;
    backdrop-filter: blur(12px);
    top: 100%;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    transform: translateY(0);
    opacity: 1;
}

.dropdown-item:hover {
    background: hsl(var(--muted) / 0.5);
}

header {
    backdrop-filter: blur(16px);
    background: hsla(var(--background) / 0.9);
    border-bottom: 1px solid hsl(var(--border) / 0.3);
}

@media (min-width: 768px) {
    header {
        padding: .5rem 0;
    }

    header .container {
        max-width: 1200px;
    }

    header .logo-container {
        gap: 0.75rem;
        width: 70px;
    }

    header .logo-container i {
        width: 2.5rem;
        height: 2.5rem;
    }

    header .logo-container span {
        font-size: 1.75rem;
    }

    header .btn-primary {
        padding: 0.875rem 2rem;
        font-size: 1.1rem;
    }
}



#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.4s ease-in-out;
    backdrop-filter: blur(12px);
    background: linear-gradient(135deg, hsla(240 10% 3.9% / 0.95), hsla(240 5% 6% / 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#mobile-menu.show {
    transform: translateY(0);
    opacity: 1;
}

#mobile-menu .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    position: relative;
}

#mobile-menu a,
#mobile-menu button {
    font-size: 1.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background 0.3s ease, transform 0.2s ease;
    width: 80%;
    text-align: center;
}

#mobile-menu a:hover,
#mobile-menu button:hover {
    background: hsl(var(--muted) / 0.5);
    transform: scale(1.05);
}

#mobile-menu-button {
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    position: relative;
    z-index: 99999999999999;
}

#mobile-menu-button:hover {
    background: hsl(var(--muted) / 0.3);
    box-shadow: 0 0 5px hsl(var(--primary) / 0.3);
}

#mobile-menu-button:active {
    transform: scale(0.95);
}

.hamburger {
    width: 1.5rem;
    height: 0.15rem;
    background: hsl(var(--foreground));
    border-radius: 0.1rem;
    position: relative;
    transition: all 0.3s ease;
    position: relative;
    right: 11px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 1.5rem;
    height: 0.15rem;
    background: hsl(var(--foreground));
    border-radius: 0.1rem;
    transition: all 0.3s ease;
}

.hamburger::before {
    transform: translateY(-0.5rem);
}

.hamburger::after {
    transform: translateY(0.5rem);
}

#mobile-menu-button.active .hamburger {
    background: transparent;
}

#mobile-menu-button.active .hamburger::before {
    transform: translateY(0) rotate(45deg);
}

#mobile-menu-button.active .hamburger::after {
    transform: translateY(0) rotate(-45deg);
}

#mobile-menu-button.active .close-icon {
    display: block;
}

.close-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease-in-out;
}

#mobile-menu-button.active .close-icon {
    opacity: 1;
}

.social-btn.google {
    background: linear-gradient(135deg, #db4437, #e57368);
}