/* تصميم حديث ومتطور لشركة الجنرال */
/* استيراد خطوط Google Fonts المتميزة */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&display=swap');

/* متغيرات الألوان - ELGENERAL Dark Premium Theme */
:root {
    --primary-gradient: linear-gradient(135deg, #ff4343 0%, #132147 100%);
    --secondary-gradient: linear-gradient(135deg, #132147 0%, #1e293b 100%);
    --dark-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --card-gradient: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --glass-gradient: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    
    --primary-color: #ff4343;
    --secondary-color: #132147;
    --accent-color: #ff6b6b;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --border-color: #334155;
    --success-color: #ff4343;
    --warning-color: #ff6b6b;
    --danger-color: #e63946;
    
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-light: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dark: #1e293b;
    
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #334155;
    --bg-glass: rgba(255,255,255,0.1);
    
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 24px;
    
    --shadow-dark: 0 4px 25px rgba(0, 0, 0, 0.3), 0 8px 50px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(255, 67, 67, 0.3), 0 4px 25px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-floating: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* تصميم الخريطة التفاعلية */
.map-container {
    position: relative;
    margin-top: 15px;
}

.current-location-btn {
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    width: 100%;
    justify-content: center;
}

.current-location-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.map-help {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
    font-style: italic;
}

/* تحسين خريطة Leaflet للتصميم العربي */
.leaflet-container {
    direction: ltr; /* الخريطة تحتاج LTR */
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.leaflet-popup-content-wrapper {
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
}

.leaflet-popup-content {
    color: var(--text-primary);
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    text-align: right;
}

/* تعليمات استخدام الخريطة */
.map-help-section {
    margin-top: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--bg-light);
}

.map-help {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-instructions {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.map-instructions li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-light);
}

.map-instructions li:last-child {
    border-bottom: none;
}

.map-instructions li i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.map-note {
    margin-top: 15px;
    padding: 12px 16px;
    background: rgba(67, 233, 123, 0.1);
    border: 1px solid rgba(67, 233, 123, 0.3);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-note i {
    color: #43e97b;
}

.map-help-links {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.map-help-link {
    text-align: center;
}

.map-help-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: var(--transition-normal);
}

.map-help-link a:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

@media (min-width: 768px) {
    .map-help-links {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
}

.current-location-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* تنبيهات الموقع السريعة */
.location-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success-gradient);
    color: var(--text-white);
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 300px;
    word-wrap: break-word;
}

.location-alert.show {
    transform: translateX(0);
    opacity: 1;
}

.location-alert-success {
    background: var(--success-gradient);
}

.location-alert i {
    font-size: 16px;
}

@media (max-width: 768px) {
    body {
        background: var(--dark-gradient) !important;
        background-attachment: fixed;
    }
    
    .location-alert {
        right: 15px;
        left: 15px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .location-alert.show {
        transform: translateY(0);
    }
}

/* إعادة تعيين أساسية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* إعداد HTML للتأكد من الخلفية الداكنة على جميع الأجهزة */
html {
    background: var(--dark-gradient);
    background-attachment: fixed;
    min-height: 100vh;
}

/* التصميم المتميز للصفحة - Dark Theme */
body {
    font-family: 'Tajawal', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    direction: rtl;
    text-align: right;
    background: 
        var(--dark-gradient),
        radial-gradient(circle at 20% 30%, rgba(255, 67, 67, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(19, 33, 71, 0.15) 0%, transparent 50%);
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* تأثير خلفية متحرك داكن */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 67, 67, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(19, 33, 71, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 107, 107, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 25s ease infinite;
}

/* إضافة عناصر القهوة في الخلفية */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,67,67,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(19,33,71,0.1)"/><circle cx="50" cy="70" r="2.5" fill="rgba(255,107,107,0.08)"/><circle cx="10" cy="60" r="1" fill="rgba(255,67,67,0.12)"/><circle cx="90" cy="80" r="1.8" fill="rgba(19,33,71,0.08)"/></svg>');
    background-size: 200px 200px;
    opacity: 0.6;
    z-index: -1;
    animation: floatElements 25s ease-in-out infinite;
}

@keyframes floatElements {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(10px) translateY(-15px); }
    50% { transform: translateX(-10px) translateY(10px); }
    75% { transform: translateX(15px) translateY(-5px); }
}

@keyframes backgroundShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-20px) translateY(-10px); }
    50% { transform: translateX(20px) translateY(10px); }
    75% { transform: translateX(-10px) translateY(20px); }
}

/* حاوي أساسي */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* الهيدر المتميز مع شعار ELGENERAL - Dark Theme */
.header {
    background: var(--card-gradient);
    color: var(--text-primary);
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-dark);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 67, 67, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(19, 33, 71, 0.15) 0%, transparent 50%),
        linear-gradient(45deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    pointer-events: none;
}

/* تصميم الهيدر الجديد */
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.logo-section {
    flex-shrink: 0;
}

.main-logo {
    width: 300px;
    height: 300px;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
    animation: logoFloat 6s ease-in-out infinite alternate;
}

@keyframes logoFloat {
    from { transform: translateY(0px) rotate(0deg); }
    to { transform: translateY(-8px) rotate(2deg); }
}

.brand-info {
    text-align: center;
    color: white;
}

.brand-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    color: var(--text-primary);
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
    letter-spacing: 3px;
    font-family: 'Playfair Display', serif;
    position: relative;
}

.brand-tagline {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
}

.brand-quality {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 20px;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
}

@keyframes titleGlow {
    from { filter: drop-shadow(0 0 5px rgba(255,255,255,0.3)); }
    to { filter: drop-shadow(0 0 20px rgba(255,255,255,0.6)); }
}

.brand-description {
    font-size: 1.3rem;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.9;
    font-family: 'Tajawal', sans-serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* بطاقات متميزة - Dark Theme */
.card, .form-container, .stats-card, .table-container {
    background: var(--card-gradient);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 30px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before, .form-container::before, .stats-card::before, .table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.card:hover, .form-container:hover, .stats-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.form-container {
    padding: 40px;
}

.form-container h2 {
    color: var(--text-primary);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

.form-container p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* مجموعات النموذج الحديثة */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-fast);
}

/* حقول الإدخال الحديثة - Dark Theme */
input[type="text"], input[type="email"], select, textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
    background: var(--bg-secondary);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    direction: rtl;
    text-align: right;
}

input[type="text"]:focus, input[type="email"]:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 67, 67, 0.2);
    transform: translateY(-2px);
    background: var(--bg-card);
}

/* الأزرار المتميزة */
.btn {
    background: var(--primary-gradient);
    color: var(--text-primary);
    border: none;
    padding: 18px 36px;
    border-radius: var(--border-radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 200px;
}

.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 ease;
}

.btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-glow);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* شبكة الإحصائيات */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stats-card {
    padding: 30px;
    text-align: center;
    position: relative;
}

.stats-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
    font-family: 'Playfair Display', serif;
}

.stats-card div:last-child {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.stats-card {
    padding: 30px;
    text-align: center;
    position: relative;
}

/* التنقل الحديث */
.navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.navigation a {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.navigation a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition-fast);
}

.navigation a:hover {
    transform: translateY(-3px);
    color: var(--text-white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.navigation a:hover::before {
    opacity: 1;
}

.navigation a span {
    position: relative;
    z-index: 1;
}

/* الجداول الحديثة */
.table-container {
    padding: 30px;
    overflow-x: auto;
}

.table-container h2 {
    color: var(--text-primary);
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 700;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-primary);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

th, td {
    padding: 18px 20px;
    text-align: right;
    border-bottom: 1px solid var(--bg-light);
}

th {
    background: var(--primary-gradient);
    color: var(--text-white);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr {
    transition: var(--transition-fast);
}

tr:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    transform: scale(1.01);
}

td:first-child {
    font-weight: 600;
    color: var(--primary-color);
}

/* شارات نوع التاجر */
.merchant-type {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.merchant-type:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.merchant-type-retail {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #8b5a5a;
}

.merchant-type-wholesale {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
    color: #5a5a8b;
}

.merchant-type-bulk {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #4a6b4a;
}

.merchant-type-super {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #8b5a8b;
}

/* الرسائل */
.success-message, .error-message {
    padding: 20px;
    border-radius: var(--border-radius-md);
    margin-bottom: 25px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 5px solid #28a745;
}

.error-message {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 5px solid #dc3545;
}

/* تأثيرات التحميل */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shimmer 2s infinite;
}

/* تصميم متجاوب متطور */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2.8rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .navigation a {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    th, td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header .subtitle {
        font-size: 1.1rem;
    }
    
    .form-container {
        padding: 20px;
    }
    
    input[type="text"], input[type="email"], select, textarea {
        padding: 14px 16px;
    }
    
    .btn {
        padding: 16px 24px;
        font-size: 1rem;
        width: 100%;
    }
}

/* تأثيرات إضافية للتفاعل */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

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

.slide-up {
    animation: slideUp 0.6s ease-out;
}

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

/* معرض القهوة */
.coffee-gallery-section {
    margin: 40px 0;
}

.coffee-header {
    text-align: center;
    margin-bottom: 40px;
}

.coffee-header h3 {
    color: var(--text-primary);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.coffee-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.coffee-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.coffee-item {
    background: var(--card-gradient);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-card);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.coffee-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition-normal);
}

.coffee-item:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.coffee-item:hover::before {
    opacity: 0.05;
}

.coffee-item:hover .coffee-img {
    transform: scale(1.1);
}

.coffee-img {
    width: 100%;
    max-width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: var(--transition-normal);
    border-radius: var(--border-radius-md);
    position: relative;
    z-index: 1;
}

.coffee-item h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.coffee-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* تحسين بطاقات المميزات */
.feature-card {
    background: var(--card-gradient);
    padding: 25px;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.feature-card:hover {
    background: var(--bg-card);
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.feature-card h4 {
    color: #ffffff;
    font-weight: 600;
    margin: 15px 0 10px 0;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* قسم التجريب الحديث */
.demo-section {
    background: var(--primary-gradient);
    color: white;
    text-align: center;
}

.demo-header h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 2rem;
}

.demo-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.demo-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.demo-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 15px 20px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.demo-btn:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.demo-btn i {
    margin-left: 8px;
    font-size: 1.1rem;
}

/* تحسينات الاستجابة للجوال */
@media (max-width: 768px) {
    body {
        background: var(--dark-gradient) !important;
        background-attachment: fixed;
    }
    
    .header-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    
    .main-logo {
        width: 150px;
        height: 150px;
    }
    
    .brand-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .brand-tagline {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .brand-quality {
        font-size: 0.9rem;
    }
    
    .brand-description {
        font-size: 1.1rem;
    }
    
    .coffee-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .coffee-img {
        max-width: 120px;
        height: 120px;
    }
    
    .demo-buttons-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    body {
        background: var(--dark-gradient) !important;
        background-attachment: fixed;
        min-height: 100vh;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .main-logo {
        width: 120px;
        height: 120px;
    }
    
    .brand-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .brand-tagline {
        font-size: 0.9rem;
    }
    
    .brand-quality {
        font-size: 0.8rem;
    }
    
    .brand-description {
        font-size: 1rem;
    }
    
    .coffee-header h3 {
        font-size: 1.8rem;
    }
    
    .coffee-header p {
        font-size: 1rem;
    }
}

/* تحسينات إضافية للأداء */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* إضافة قواعد خاصة للجوال لضمان الخلفية الداكنة */
@media screen and (max-width: 767px) {
    html, body {
        background: var(--dark-gradient) !important;
        background-attachment: fixed !important;
        background-size: cover !important;
        min-height: 100vh !important;
    }
    
    .container {
        background: transparent !important;
    }
}

/* قاعدة أخرى للأجهزة الصغيرة جداً */
@media screen and (max-width: 375px) {
    html, body {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%) !important;
        background-attachment: fixed !important;
    }
}

/* إعداد HTML للتأكد من الخلفية الداكنة */
html {
    background: var(--dark-gradient);
    background-attachment: fixed;
    min-height: 100vh;
}
