/* ===== ملف الأنماط الرئيسي المحسّن لـ 3 Tools Pro ===== */

/* ===== RESET وتحديد المتغيرات المُحسّنة ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #627ae3;
    --secondary-color: #3a0ca3;
    --accent-color: #7209b7;
    --accent-color2: #4cc9f0;
    --light-color: #f8f9ff;
    --dark-color: #2b2d42;
    --success-color: #4ade80;
    --warning-color: #fbbf24;
    --error-color: #f87171;
    --info-color: #60a5fa;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    --border-radius: 18px;
    --border-radius-sm: 12px;
    --border-radius-lg: 24px;
    --gradient-primary: linear-gradient(135deg, #657ce9 0%, #3a0ca3 100%);
    --gradient-secondary: linear-gradient(135deg, #7209b7 0%, #f72585 100%);
    --gradient-accent: linear-gradient(135deg, #4cc9f0 0%, #657ce9 100%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    background: linear-gradient(135deg, #f8f9ff 0%, #e9ecef 100%);
    color: var(--dark-color);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

/* ===== LOADER محسّن ===== */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #657ce9 0%, #3a0ca3 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.8s ease;
}

.loader {
    width: 80px;
    height: 80px;
    position: relative;
    margin: 0 auto 30px;
}

.loader-circle {
    position: absolute;
    border-radius: 50%;
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.loader-circle:nth-child(1) {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(67, 97, 238, 0.1);
    border-top-color: rgba(67, 97, 238, 0.9);
    animation: spin 1.2s linear infinite;
}

.loader-circle:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border: 3px solid rgba(122, 9, 183, 0.1);
    border-top-color: rgba(122, 9, 183, 0.8);
    animation: spinReverse 1s linear infinite;
}

.loader-circle:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    opacity: 0.7;
    animation: pulseGlow 1.5s ease-in-out infinite alternate;
    box-shadow: 0 0 20px rgba(67, 97, 238, 0.5);
}

.loader-text {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textShimmer 3s infinite linear;
}

.loader-subtext {
    color: #666;
    font-size: 1rem;
    margin-top: 12px;
    opacity: 0.8;
}

.loader-brand {
    margin-bottom: 25px;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.loader-brand i {
    font-size: 1.8rem;
    animation: bounceSoft 2s infinite;
}

.loader-progress {
    width: 220px;
    height: 4px;
    background: rgba(67, 97, 238, 0.15);
    border-radius: 2px;
    margin: 25px auto 0;
    overflow: hidden;
    position: relative;
}

.loader-progress::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, 
        rgba(67, 97, 238, 0.1), 
        rgba(67, 97, 238, 0.9), 
        rgba(67, 97, 238, 0.1));
    animation: progressMove 1.8s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinReverse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.4;
        transform: scale(0.9);
        box-shadow: 0 0 15px rgba(67, 97, 238, 0.4);
    }
    100% {
        opacity: 1;
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(67, 97, 238, 0.8);
    }
}

@keyframes progressMove {
    0% { left: -40%; }
    100% { left: 100%; }
}

@keyframes bounceSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes textShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== شريط اللغة محسّن ===== */
.language-bar {
    background: linear-gradient(90deg, var(--dark-color) 0%, #1a1b2e 100%);
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    color: white;
}

.language-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        transparent 100%);
    animation: shimmerBG 3s infinite linear;
}

.language-label {
    color: white;
    margin-right: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-btn {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 25px;
    padding: 8px 18px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===== شريط التنقل محسّن ===== */
.nav-bar {
    background: var(--glass-bg);
    padding: 15px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-brand {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    transition: var(--transition);
}

.logo-brand:hover {
    transform: translateY(-2px);
}

.logo-brand i {
    font-size: 1.8rem;
    animation: pulse 3s infinite;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: rgba(67, 97, 238, 0.1);
    transform: rotate(90deg);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.4s ease;
    border-radius: 3px;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(122, 9, 183, 0.1) 100%);
    color: var(--primary-color);
    font-weight: 700;
}

.nav-link.active::before {
    width: 100%;
}

/* ===== نافذة اختيار اللغة محسّنة ===== */
.language-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    animation: fadeIn 0.4s ease;
    backdrop-filter: blur(10px);
}

.language-modal.active {
    display: flex;
}

.language-modal-content {
    background: var(--glass-bg);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-hover);
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
}

.language-modal-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.language-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.language-option {
    padding: 20px 15px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.language-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.2);
}

.language-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.08) 0%, rgba(122, 9, 183, 0.08) 100%);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.2);
    transform: translateY(-5px);
}

.language-flag {
    font-size: 2.5rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.language-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark-color);
}

.close-language-modal {
    padding: 14px 35px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
    letter-spacing: 0.5px;
}

.close-language-modal:hover {
    background: var(--gradient-secondary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(122, 9, 183, 0.4);
}

/* ===== الهيدر محسّن ===== */
header {
    background: var(--gradient-primary);
    color: white;
    padding: 60px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    opacity: 0.6;
    animation: floatBG 20s infinite linear;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    gap: 20px;
}

.logo-icon {
    font-size: 3.5rem;
    animation: bounce 3s infinite;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

.logo h1 {
    font-size: 3rem;
    font-weight: 900;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 1.4rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.8;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ===== المحتوى الرئيسي محسّن ===== */
.main-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    gap: 40px;
}

.sidebar {
    flex: 0 0 320px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* ===== بطاقات الخدمة محسّنة ===== */
.service-card {
    background: var(--glass-bg);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: var(--shadow-hover);
}

.service-title {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 800;
    gap: 20px;
}

.service-title i {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 5px 10px rgba(67, 97, 238, 0.3));
}

/* ===== Text Compare Styles محسّن ===== */
.compare-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.text-compare-input {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.text-compare-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.text-compare-label {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.text-compare-count {
    font-size: 0.95rem;
    color: #666;
    background: rgba(0, 0, 0, 0.04);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.text-compare-textarea {
    width: 100%;
    height: 300px;
    padding: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    font-size: 1.05rem;
    resize: vertical;
    transition: var(--transition);
    line-height: 1.7;
    font-family: 'Courier New', monospace;
    background: rgba(248, 249, 255, 0.8);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.text-compare-textarea:focus {
    border-color: var(--accent-color2);
    outline: none;
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.05),
        0 0 0 4px rgba(76, 201, 240, 0.15);
    background: white;
}

/* Results Section محسّن */
.text-compare-result {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(248, 249, 255, 0.9) 0%, rgba(240, 242, 255, 0.9) 100%);
    border-radius: var(--border-radius-lg);
    display: none;
    animation: fadeInUp 0.6s ease;
    border: 1px solid rgba(67, 97, 238, 0.1);
}

.result-header {
    font-size: 1.8rem;
    color: var(--accent-color2);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 800;
}

.result-header i {
    font-size: 2rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-stat {
    background: white;
    padding: 25px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.result-stat:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.result-label {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.result-value {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent-color2);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.result-details {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Diff Styling محسّن */
.diff-result-container {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: var(--border-radius);
    max-height: 450px;
    overflow-y: auto;
    line-height: 1.8;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.diff-added, .diff-removed, .diff-changed {
    padding: 3px 6px;
    border-radius: 6px;
    margin: 0 2px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.diff-added {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15) 0%, rgba(74, 222, 128, 0.3) 100%);
    color: #166534;
    border-left: 4px solid #4ade80;
    box-shadow: 0 2px 5px rgba(74, 222, 128, 0.2);
}

.diff-removed {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.15) 0%, rgba(248, 113, 113, 0.3) 100%);
    color: #991b1b;
    text-decoration: line-through;
    border-left: 4px solid #f87171;
    box-shadow: 0 2px 5px rgba(248, 113, 113, 0.2);
}

.diff-changed {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0.3) 100%);
    color: #92400e;
    border-left: 4px solid #fbbf24;
    box-shadow: 0 2px 5px rgba(251, 191, 36, 0.2);
}

.diff-unchanged {
    padding: 3px 0;
}

.diff-line {
    padding: 5px 10px;
    border-radius: 6px;
    margin-bottom: 3px;
    transition: background 0.3s ease;
}

.diff-line:hover {
    background: rgba(0, 0, 0, 0.03);
}

.diff-line-number {
    display: inline-block;
    width: 40px;
    color: #666;
    font-size: 0.9em;
    text-align: right;
    margin-right: 15px;
    user-select: none;
    font-weight: 500;
}

/* ===== Background Remover Styles محسّن ===== */
.upload-area {
    border: 3px dashed var(--primary-color);
    border-radius: var(--border-radius-lg);
    padding: 80px 30px;
    text-align: center;
    background: rgba(67, 97, 238, 0.03);
    margin: 40px 0;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(67, 97, 238, 0.05) 50%, 
        transparent 70%);
    animation: shimmer 3s infinite linear;
}

.upload-area:hover {
    background: rgba(67, 97, 238, 0.08);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.upload-area.dragover {
    background: rgba(67, 97, 238, 0.15);
    border-color: var(--accent-color2);
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(67, 97, 238, 0.2);
}

.upload-icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    filter: drop-shadow(0 10px 15px rgba(67, 97, 238, 0.3));
    animation: float 3s infinite ease-in-out;
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 40px 0;
    justify-content: center;
}

.image-preview {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 450px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    object-fit: contain;
    transition: var(--transition);
}

.image-preview img:hover {
    transform: scale(1.02);
}

.processing-indicator {
    text-align: center;
    padding: 30px;
    display: none;
    animation: fadeIn 0.5s ease;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* ===== Word Counter Styles محسّن ===== */
.word-counter-input {
    width: 100%;
    min-height: 350px;
    padding: 25px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-lg);
    font-size: 1.1rem;
    line-height: 1.7;
    font-family: inherit;
    resize: vertical;
    transition: var(--transition);
    background: rgba(248, 249, 255, 0.8);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.word-counter-input:focus {
    border-color: var(--accent-color2);
    outline: none;
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.05),
        0 0 0 4px rgba(76, 201, 240, 0.15);
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background: white;
    padding: 25px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-accent);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-color2);
    margin-bottom: 10px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.detail-stats {
    background: linear-gradient(135deg, rgba(248, 249, 255, 0.9) 0%, rgba(240, 242, 255, 0.9) 100%);
    padding: 35px;
    border-radius: var(--border-radius-lg);
    margin: 40px 0;
    border: 1px solid rgba(67, 97, 238, 0.1);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.detail-item:hover {
    padding-left: 10px;
    padding-right: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.detail-label {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-value {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.reading-time {
    background: var(--gradient-primary);
    color: white;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    margin: 40px 0;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.reading-time::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
    animation: shimmer 3s infinite linear;
}

/* ===== أزرار العمل محسّنة ===== */
.action-btn {
    padding: 18px 40px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.4);
    text-decoration: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.action-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 70%);
    transform: translateX(-100%);
}

.action-btn:hover::after {
    animation: btnShimmer 1s;
}

.action-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(67, 97, 238, 0.6);
    background: var(--gradient-secondary);
}

.action-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.action-btn:disabled:hover::after {
    animation: none;
}

.action-btn i {
    margin: 0 12px;
    font-size: 1.3rem;
}

/* ===== صفحات المعلومات محسّنة ===== */
.info-page {
    background: var(--glass-bg);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    box-shadow: var(--shadow);
    margin: 40px 0;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease;
}

.info-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 900;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-section {
    margin-bottom: 50px;
}

.section-title {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid rgba(122, 9, 183, 0.2);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-content {
    line-height: 1.8;
    font-size: 1.15rem;
    color: #444;
}

.info-content p {
    margin-bottom: 20px;
}

.info-content ul, .info-content ol {
    margin: 20px 0 20px 40px;
}

.info-content li {
    margin-bottom: 12px;
    padding-left: 10px;
}

.info-content strong {
    color: var(--primary-color);
    font-weight: 700;
}

.back-to-tools {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 30px;
    transition: var(--transition);
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.3);
}

.back-to-tools:hover {
    background: var(--gradient-secondary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(122, 9, 183, 0.4);
}

/* ===== Contact Page Styles محسّن ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin: 50px 0;
}

.contact-card {
    background: white;
    padding: 50px 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.contact-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 10px 15px rgba(67, 97, 238, 0.2));
}

.contact-card h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 1.6rem;
    font-weight: 800;
}

.contact-card p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.faq-section {
    margin-top: 70px;
}

.faq-item {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.faq-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.faq-question {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 800;
    gap: 15px;
}

.faq-question i {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-form {
    background: white;
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    margin-top: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-control {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    font-size: 1.05rem;
    font-family: inherit;
    transition: var(--transition);
    background: rgba(248, 249, 255, 0.8);
}

.form-control:focus {
    border-color: var(--accent-color2);
    outline: none;
    box-shadow: 0 0 0 4px rgba(76, 201, 240, 0.15);
    background: white;
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

/* ===== إعلانات محسّنة ===== */
.adsense-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.adsense-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.adsense-placeholder {
    width: 100%;
    max-width: 728px;
    height: 90px;
    background: linear-gradient(90deg, #f0f2ff 25%, #e0e5ff 50%, #f0f2ff 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.adsense-sidebar {
    width: 300px;
    height: 600px;
    background: linear-gradient(90deg, #f0f2ff 25%, #e0e5ff 50%, #f0f2ff 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 12px;
    margin: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.adsense-incontent {
    width: 100%;
    max-width: 300px;
    height: 250px;
    background: linear-gradient(90deg, #f0f2ff 25%, #e0e5ff 50%, #f0f2ff 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 12px;
    margin: 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* ===== الفوتر محسّن ===== */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a1b2e 100%);
    color: white;
    padding: 70px 20px 40px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 90%, rgba(67, 97, 238, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 10%, rgba(122, 9, 183, 0.1) 0%, transparent 50%);
    opacity: 0.4;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: white;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
    padding-right: 10px;
    transform: translateX(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #aaa;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.social-link {
    color: #bbb;
    font-size: 1.5rem;
    transition: var(--transition);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    color: white;
    transform: translateY(-5px) scale(1.1);
    background: var(--gradient-primary);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.4);
}

/* ===== الإشعارات محسّنة ===== */
.notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: var(--success-color);
    color: white;
    padding: 20px 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideInRight 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 700;
    max-width: 400px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification.error {
    background: linear-gradient(135deg, var(--error-color) 0%, #dc2626 100%);
}

.notification.warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    color: #1f2937;
}

.notification.info {
    background: linear-gradient(135deg, var(--info-color) 0%, #2563eb 100%);
}

/* ===== الأنيميشنات الجديدة ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes shimmerBG {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes floatBG {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(5px, 5px);
    }
    50% {
        transform: translate(10px, 0);
    }
    75% {
        transform: translate(5px, -5px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes btnShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.spin {
    animation: spin 1s linear infinite;
}

.float-animation {
    animation: float 3s infinite ease-in-out;
}

/* ===== RTL Support ===== */
[dir="rtl"] .logo-brand i,
[dir="rtl"] .service-title i,
[dir="rtl"] .result-header i,
[dir="rtl"] .faq-question i,
[dir="rtl"] .language-btn i,
[dir="rtl"] .social-link i,
[dir="rtl"] .action-btn i,
[dir="rtl"] .language-label i,
[dir="rtl"] .text-compare-label i,
[dir="rtl"] .form-label i,
[dir="rtl"] .footer-links a i,
[dir="rtl"] .detail-label i {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .loader-brand i {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 10px;
    transform: translateX(5px);
}

[dir="rtl"] .info-content ul,
[dir="rtl"] .info-content ol {
    margin: 20px 40px 20px 0;
}

[dir="rtl"] .detail-item:hover {
    padding-right: 10px;
    padding-left: 10px;
}

[dir="rtl"] .nav-link::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .notification {
    right: auto;
    left: 30px;
    animation: slideInLeft 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

[dir="rtl"] .section-title {
    padding-right: 0;
    padding-left: 15px;
}

[dir="rtl"] .footer-section h3::after {
    left: auto;
    right: 0;
}

/* ===== تصميم متجاوب محسّن ===== */
@media (max-width: 1200px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        flex: none;
        width: 100%;
        order: 2;
    }

    .adsense-sidebar {
        width: 100%;
        max-width: 300px;
        margin: 30px auto;
    }
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
        border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
        border: 1px solid var(--glass-border);
        backdrop-filter: blur(20px);
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 18px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        font-size: 1.1rem;
        border-radius: var(--border-radius-sm);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 2.2rem;
    }
    
    .logo-icon {
        font-size: 2.8rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .service-card {
        padding: 30px 25px;
    }

    .service-title {
        font-size: 1.8rem;
    }

    .compare-container {
        flex-direction: column;
    }

    .text-compare-input {
        min-width: 100%;
    }

    .text-compare-textarea {
        height: 250px;
    }

    .image-preview-container {
        flex-direction: column;
    }

    .image-preview {
        min-width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .adsense-placeholder {
        height: 100px;
    }

    .language-bar {
        justify-content: center;
        padding: 12px 15px;
    }

    .language-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .language-modal-content {
        padding: 25px 20px;
        max-height: 85vh;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    [dir="rtl"] .footer-section h3::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .notification {
        top: 80px;
        right: 20px;
        left: 20px;
        max-width: 90%;
        font-size: 1rem;
        padding: 18px 20px;
    }
    
    [dir="rtl"] .notification {
        right: 20px;
        left: 20px;
    }

    .contact-form {
        padding: 35px 25px;
    }

    .contact-card {
        padding: 40px 30px;
    }
    
    .info-page {
        padding: 35px 25px;
    }
    
    .info-title {
        font-size: 2rem;
    }
    
    .main-container {
        padding: 20px;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .logo-icon {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .info-page {
        padding: 25px 20px;
    }

    .main-container {
        padding: 15px;
        gap: 25px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .result-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-btn {
        width: 100%;
        margin-top: 20px;
        padding: 16px 30px;
        font-size: 1.1rem;
    }

    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-title {
        font-size: 1.6rem;
    }
    
    .contact-card {
        padding: 35px 25px;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .language-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}


/* ===== القوائم المنسدلة المحسنة ===== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--dark-color);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--glass-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 10px 0;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(122, 9, 183, 0.1) 100%);
    color: var(--primary-color);
    padding-left: 25px;
}

.dropdown-item.active {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.15) 0%, rgba(122, 9, 183, 0.15) 100%);
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.dropdown-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

/* ===== تصحيح القائمة المتنقلة للهواتف ===== */
@media (max-width: 992px) {
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 0;
        padding: 18px 20px;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        background: rgba(0, 0, 0, 0.03);
        border: none;
        margin: 0;
        padding: 0;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    .dropdown-item {
        padding: 15px 40px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .dropdown-item:hover {
        padding-left: 45px;
    }
    
    .dropdown-toggle::after {
        transition: transform 0.4s ease;
    }
}