:root {
    --primary-color: #1e293b;
    --accent-blue: #3b82f6;
    --accent-blue-dark: #2563eb;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --bg-light: #f1f5f9;
    --white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --gradient-bg: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    direction: rtl;
    overflow-x: hidden;
}

/* Landing Page Wrapper */
.cla-landing {
    overflow: hidden;
}

.cla-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.cla-hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: var(--white);
    padding: 80px 0 160px;
    position: relative;
    text-align: center;
}

.cla-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--bg-light);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.cla-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
}

.cla-hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.cla-hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Buttons */
.cla-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.cla-btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.cla-btn-success {
    background-color: var(--accent-green);
    color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.4);
}

.cla-btn-success:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
}

.cla-btn-white {
    background-color: var(--white);
    color: #3b82f6;
}

.cla-btn-white:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
}

/* Sections */
.cla-section {
    padding: 80px 0;
}

.cla-section-title {
    text-align: center;
    margin-bottom: 60px;
}

.cla-section-title h2 {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.cla-section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Problem Cards */
.cla-problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.cla-problem-card {
    background: var(--white);
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.cla-problem-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.2);
}

.cla-problem-icon {
    font-size: 2.5rem;
    background: #eff6ff;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

/* Feature Cards */
.cla-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.cla-feature-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.cla-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-blue);
    opacity: 0;
    transition: var(--transition-smooth);
}

.cla-feature-card:hover {
    transform: translateY(-8px);
}

.cla-feature-card:hover::before {
    opacity: 1;
}

.cla-feature-icon-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.cla-feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.cla-feature-list {
    list-style: none;
    text-align: right;
}

.cla-feature-list li {
    margin-bottom: 12px;
    padding-right: 28px;
    position: relative;
    font-size: 0.95rem;
}

.cla-feature-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--accent-green);
    font-weight: 700;
}

/* Pricing Grid */
.cla-pricing-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.cla-pricing-card {
    background: var(--white);
    padding: 48px;
    border-radius: 32px;
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.cla-pricing-card.featured {
    border: 2px solid var(--accent-blue);
    position: relative;
    transform: scale(1.05);
}

.cla-pricing-card.featured::after {
    content: 'الأكثر طلباً';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-blue);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Auth Pages Wrapper */
.cla-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--gradient-bg);
    position: relative;
    overflow: hidden;
}

/* Background Decoration */
.cla-auth-wrapper::before,
.cla-auth-wrapper::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
}

.cla-auth-wrapper::before {
    background: var(--accent-blue);
    top: -100px;
    right: -100px;
    animation: float 10s ease-in-out infinite;
}

.cla-auth-wrapper::after {
    background: var(--accent-green);
    bottom: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

/* Auth Card Premium */
.cla-auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
    padding: 48px;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 10;
    transition: var(--transition-smooth);
    animation: fadeInUp 0.6s ease-out;
}

.cla-auth-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.cla-auth-card h2 {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 16px;
}

.cla-auth-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 2px;
}

/* Form Groups */
.cla-form-group {
    margin-bottom: 24px;
}

.cla-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.cla-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-main);
    background: var(--white);
    transition: var(--transition-smooth);
    font-family: inherit;
}

.cla-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Auth Buttons */
.cla-btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.4);
    margin-top: 16px;
}

.cla-btn-primary:hover {
    filter: brightness(110%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.5);
}

/* Alerts */
.cla-alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cla-alert-error {
    background-color: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

.cla-alert-success {
    background-color: #ecfdf5;
    color: #10b981;
    border: 1px solid #a7f3d0;
}

/* Footer Links */
.cla-auth-footer {
    margin-top: 32px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.cla-auth-footer p {
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cla-auth-footer p:last-child {
    margin-bottom: 0;
}

.cla-auth-footer a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.cla-auth-footer a:hover {
    color: var(--accent-blue-dark);
    text-decoration: underline;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Avatar */
.cla-user-avatar {
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .cla-hero h1 {
        font-size: 2rem;
    }

    .cla-hero p {
        font-size: 1.1rem;
    }

    .cla-hero-btns {
        flex-direction: column;
        padding: 0 40px;
    }

    .cla-feature-grid {
        grid-template-columns: 1fr;
    }

    .cla-pricing-card.featured {
        transform: scale(1);
    }
}