:root {
    --primary: #1a936f;
    --secondary: #88d498;
    --accent: #f3e9d2;
    --dark: #114b5f;
    --light: #f9f9f9;
    --text: #333333;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: #f8fafc;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* شريط التنقل */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.logo-img i {
    color: white;
    font-size: 24px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-link {
    margin: 0 15px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.guest-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-buttons {
    display: flex;
    align-items: center;
}

.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 147, 111, 0.2);
    position: relative;
    overflow: hidden;
}

.user-menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.user-menu-btn:hover::before {
    left: 100%;
}

.user-menu-btn:hover {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 147, 111, 0.4);
}

.user-menu-btn i:first-child {
    font-size: 1.2rem;
}

.user-menu-btn i:last-child {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-menu-btn.active i:last-child {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.dropdown-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
}

.dropdown-user-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-user-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.dropdown-user-role {
    font-size: 0.85rem;
    color: #64748b;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
    z-index: -1;
}

.dropdown-item:hover::before {
    width: 100%;
}

.dropdown-item:hover {
    color: white;
    transform: translateX(5px);
}

.dropdown-item i {
    width: 18px;
    font-size: 1rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.dropdown-item:hover i {
    color: white;
    transform: scale(1.1);
}

.dropdown-item.ai-assistant-link i {
    color: #6366f1;
}

.dropdown-item.ai-assistant-link::before {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 0;
}

.logout-btn {
    color: var(--danger) !important;
    border-top: 1px solid rgba(220, 53, 69, 0.1);
    margin-top: 8px;
}

.logout-btn::before {
    background: linear-gradient(90deg, var(--danger), #ff6b6b) !important;
}

.logout-btn:hover {
    color: white !important;
    background: rgba(220, 53, 69, 0.05);
}

.logout-btn i {
    color: var(--danger) !important;
}

.logout-btn:hover i {
    color: white !important;
}

/* Currency Selector Styles */
.currency-selector {
    position: relative;
    margin-left: 10px;
}

.currency-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.currency-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.currency-btn i:first-child {
    font-size: 1rem;
}

.currency-btn i:last-child {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.currency-btn.active i:last-child {
    transform: rotate(180deg);
}

.currency-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.currency-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.currency-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f5f9;
}

.currency-option:last-child {
    border-bottom: none;
}

.currency-option:hover {
    background: #f8fafc;
}

.currency-flag {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.currency-name {
    flex: 1;
    font-weight: 500;
    color: var(--dark);
}

.currency-symbol {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

/* Price Display Styles */
.price-display {
    font-weight: 600;
    color: var(--primary);
}

.price-display.original {
    text-decoration: line-through;
    color: #666;
    font-weight: normal;
    margin-right: 8px;
}

.price-display.converted {
    color: var(--success);
}

/* Currency Conversion Info */
.currency-info {
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
}

.currency-info .rate {
    font-weight: 500;
    color: var(--primary);
}

/* Security Styles */
.security-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

.security-alert-info {
    background: #eff6ff;
    border: 1px solid #3b82f6;
    color: #1e40af;
}

.security-alert-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
}

.security-alert-error {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.alert-content i {
    font-size: 1.2rem;
}

.alert-content span {
    flex: 1;
    font-weight: 500;
}

.alert-close {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.alert-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Input Validation Styles */
.input-error {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.input-error::before {
    content: '⚠';
    font-size: 0.9rem;
}

.form-control.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.password-strength {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

.password-strength.weak {
    background: #fee2e2;
    color: #991b1b;
}

.password-strength.fair {
    background: #fef3c7;
    color: #92400e;
}

.password-strength.good {
    background: #dbeafe;
    color: #1e40af;
}

.password-strength.strong {
    background: #d1fae5;
    color: #065f46;
}

/* Security Indicators */
.security-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.security-indicator.secure {
    background: #d1fae5;
    color: #065f46;
}

.security-indicator.warning {
    background: #fef3c7;
    color: #92400e;
}

.security-indicator.danger {
    background: #fee2e2;
    color: #991b1b;
}

/* Session Timeout Warning */
.session-timeout-warning {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    text-align: center;
    max-width: 400px;
}

.session-timeout-warning h3 {
    margin: 0 0 15px 0;
    color: var(--dark);
}

.session-timeout-warning p {
    margin: 0 0 20px 0;
    color: #666;
}

.session-timeout-warning .countdown {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    margin: 10px 0;
}

/* Loading Security */
.security-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.9rem;
}

.security-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-left: 10px;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--dark);
    border-color: var(--dark);
}

/* تحسينات لقائمة اللغة */
.language-selector {
    display: flex;
    align-items: center;
    margin-left: 20px;
    position: relative;
}

.lang-btn {
    background: var(--light);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.lang-btn i {
    margin-right: 5px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 10px;
    width: 150px;
    display: none;
    z-index: 1001; /* تم تغيير الـ z-index من 1000 إلى 1001 */
    margin-top: 5px;
    animation: fadeIn 0.2s ease;
}

.lang-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    color: #495057;
    transition: all 0.2s ease;
    font-weight: 500;
    border-radius: 5px;
}

.lang-option:hover {
    background: #f8f9fa;
    color: var(--primary);
}

.lang-option i {
    width: 20px;
    text-align: center;
    color: #6c757d;
}

.lang-option:hover i {
    color: var(--primary);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* User Navigation Dropdown */
.user-nav-btn {
    position: relative;
    display: inline-block;
    margin-left: 20px;
}

.user-nav-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
}

.user-nav-trigger:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.user-nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px 0;
    min-width: 200px;
    display: none;
    z-index: 1000;
    margin-top: 8px;
}

.user-nav-dropdown.show {
    display: block;
}

.user-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #495057;
    transition: all 0.2s ease;
    font-weight: 500;
}

.user-nav-item:hover {
    background: #f8f9fa;
    color: var(--primary);
}

.user-nav-item i {
    width: 20px;
    text-align: center;
    color: #6c757d;
}

.user-nav-item:hover i {
    color: var(--primary);
}

.user-nav-divider {
    height: 1px;
    background: #e9ecef;
    margin: 4px 0;
}

/* الهيرو */
.hero {
    background: linear-gradient(120deg, var(--primary) 0%, var(--dark) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-highlights {
    list-style: none;
    padding: 0;
    margin: 24px auto 0;
    max-width: 720px;
    text-align: left;
    display: grid;
    gap: 10px;
}

.hero-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1rem;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
}

.hero-highlights li::before {
    content: '\2713';
    font-weight: 700;
    color: var(--accent, #fe6845);
    font-size: 1.1rem;
    line-height: 1;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.btn-hero {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary {
    background: white;
    color: var(--primary);
    border: 2px solid white;
}

.btn-hero-primary:hover {
    background: transparent;
    color: white;
}

.btn-hero-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--primary);
}

/* الخدمات */
.services {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 20px;
    font-weight: 800;
    position: relative;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.service-icon {
    height: 120px;
    background: linear-gradient(120deg, var(--secondary) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

.service-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.service-description {
    color: #666;
    margin-bottom: 20px;
    flex: 1;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0;
}

.service-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.service-link:hover {
    color: var(--dark);
    transform: translateX(5px);
}

/* كيف تعمل المنصة */
.how-it-works {
    background: var(--light);
    padding: 80px 0;
}

.steps {
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 40px;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--primary);
    z-index: 1;
}

.step {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.step-description {
    color: #666;
    max-width: 250px;
    margin: 0 auto;
}

/* قسم المختصين */
.featured-specialists {
    padding: 80px 0;
}

.specialists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.specialist-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.specialist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.specialist-img {
    height: 200px;
    background-color: #eee;
    background-position: center;
    background-size: cover;
    position: relative;
}

.specialist-rating {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--dark);
}

.specialist-rating i {
    color: var(--warning);
    margin-left: 5px;
}

.specialist-content {
    padding: 20px;
}

.specialist-name {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 5px;
    font-weight: 700;
}

.specialist-title {
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 500;
}

.specialist-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
}

.view-profile {
    display: block;
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: var(--light);
    color: var(--dark);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-profile:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* نظام الترجمة بالذكاء الاصطناعي */
.ai-section {
    background: linear-gradient(120deg, var(--dark) 0%, #1e3a5f 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.ai-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.ai-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.ai-card i {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--secondary);
}

.ai-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* الفوتر */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-right: 5px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-left: 10px;
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
}

.close:hover {
    color: var(--dark);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 147, 111, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-container input {
    margin-right: 8px;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-full {
    width: 100%;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: #64748b;
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Auth Modal Enhancements */
body.modal-open {
    overflow: hidden;
}

.auth-modal .auth-modal__content {
    max-width: 520px;
    padding: 36px 40px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.auth-modal__header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-modal__header h2 {
    margin-bottom: 6px;
}

.auth-modal__subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: transparent;
    font-size: 1.25rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--dark);
}

.auth-role-switch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.auth-role-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.auth-role-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.auth-role-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 12px 30px rgba(26, 147, 111, 0.25);
}

.auth-role-tab i {
    font-size: 1.1rem;
}

.auth-social {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.auth-social .btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-social .btn-social:hover {
    box-shadow: 0 10px 25px rgba(148, 163, 184, 0.25);
    transform: translateY(-1px);
}

.auth-social .btn-google i {
    color: #ea4335;
}

.auth-social .btn-facebook i {
    color: #1877f2;
}

.auth-social--stacked {
    flex-direction: column;
    margin-top: 20px;
}

.auth-social--stacked .btn-social {
    width: 100%;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin-bottom: 18px;
    color: #94a3b8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 32%;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-feedback {
    min-height: 18px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.auth-feedback--error {
    color: #dc2626;
}

.auth-feedback--success {
    color: #059669;
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--primary);
}

.password-strength {
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.password-strength[data-strength="fair"] {
    color: #f59e0b;
}

.password-strength[data-strength="good"] {
    color: #16a34a;
}

.password-strength[data-strength="strong"] {
    color: #0f9f6e;
}

.form-hint {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #64748b;
}

.map-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 24px;
    text-align: center;
    color: #dc2626;
    background: #fef2f2;
    font-weight: 600;
}

.auth-benefits {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.auth-benefits__title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.auth-benefits__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.auth-benefits__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #475569;
    line-height: 1.5;
}

.auth-benefits__list li::before {
    content: '>';
    color: var(--primary);
    font-weight: 700;
    margin-top: 2px;
}

/* Notification Styles */
.notification {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--primary);
}

.notification-success {
    border-left-color: var(--success);
}

.notification-error {
    border-left-color: var(--danger);
}

.notification-warning {
    border-left-color: var(--warning);
}

.notification-icon {
    margin-right: 12px;
    font-size: 18px;
}

.notification-success .notification-icon {
    color: var(--success);
}

.notification-error .notification-icon {
    color: var(--danger);
}

.notification-warning .notification-icon {
    color: var(--warning);
}

.notification-content {
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    font-size: 12px;
}

.notification-close:hover {
    color: var(--dark);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* تحسينات للاستجابة */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .steps {
        flex-direction: column;
        gap: 30px;
    }
    
    .steps::before {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .services-grid,
    .specialists-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card,
    .specialist-card {
        margin-bottom: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
    }
    
    .lang-dropdown {
        left: auto;
        right: 0;
    }
    
    .service-link, .view-profile {
        text-align: center;
        display: block;
        margin-top: 15px;
    }
    
    /* User Nav Dropdown for mobile */
    .user-nav-dropdown {
        right: 0;
        left: auto;
    }
}

/* تحسينات للطباعة */
@media print {
    .navbar, .footer, .btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container {
        max-width: 100% !important;
    }
}