/* ================ أساسيات ================ */
:root {
    --primary-green: #00ff88;
    --dark-green: #00cc6a;
    --black: #0a0a0a;
    --dark-gray: #1a1a1a;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-green: #00ff88;
    --blue-glass: rgba(0, 150, 255, 0.3);
    --blue-border: rgba(0, 150, 255, 0.5);
    --red: #ff4444;
    --orange: #ffa500;
    --purple: #8b5cf6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ================ خلفية 3D للملابس ================ */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    perspective: 800px;
}

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.25;
    animation: floatClothes 18s infinite ease-in-out;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #00ff88, #006644);
    top: -100px;
    right: -50px;
    animation-delay: 0s;
    box-shadow: 0 0 80px rgba(0, 255, 136, 0.3);
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ff6b6b, #cc0000);
    bottom: -150px;
    left: -100px;
    animation-delay: -6s;
    box-shadow: 0 0 100px rgba(255, 107, 107, 0.3);
}

.circle-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #4dabf7, #0066cc);
    top: 60%;
    left: 60%;
    animation-delay: -12s;
    box-shadow: 0 0 90px rgba(77, 171, 247, 0.3);
}

/* أيقونات ملابس عائمة */
.floating-clothes {
    position: absolute;
    font-size: 3rem;
    animation: floatClothes 12s infinite ease-in-out;
    opacity: 0.3;
    filter: blur(2px);
}

.cloth-1 { top: 15%; left: 10%; animation-delay: 0s; }
.cloth-2 { top: 70%; left: 20%; animation-delay: -3s; }
.cloth-3 { top: 30%; left: 80%; animation-delay: -6s; }
.cloth-4 { top: 80%; left: 70%; animation-delay: -9s; }
.cloth-5 { top: 50%; left: 40%; animation-delay: -4s; }

@keyframes floatClothes {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) scale(1);
        opacity: 0.25;
    }
    25% {
        transform: translate3d(60px, -100px, 150px) rotateX(20deg) rotateY(15deg) scale(1.2);
        opacity: 0.4;
    }
    50% {
        transform: translate3d(-40px, 60px, 250px) rotateX(-15deg) rotateY(-20deg) scale(0.9);
        opacity: 0.3;
    }
    75% {
        transform: translate3d(-80px, -50px, 200px) rotateX(15deg) rotateY(10deg) scale(1.1);
        opacity: 0.45;
    }
}

@keyframes float3d {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) scale(1);
    }
    25% {
        transform: translate3d(50px, -80px, 100px) rotateX(15deg) rotateY(10deg) scale(1.1);
    }
    50% {
        transform: translate3d(-30px, 50px, 200px) rotateX(-10deg) rotateY(-15deg) scale(0.95);
    }
    75% {
        transform: translate3d(-60px, -40px, 150px) rotateX(10deg) rotateY(5deg) scale(1.05);
    }
}

/* ================ تأثير الزجاج ================ */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* ================ زر الإغلاق ================ */
.close-btn-blue {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--blue-glass);
    border: 2px solid var(--blue-border);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-btn-blue:hover {
    background: rgba(0, 150, 255, 0.5);
    transform: rotate(90deg);
}

/* ================ الهيدر ================ */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo h1 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary-green);
}

.nav-desktop {
    display: flex;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green);
    background: rgba(0, 255, 136, 0.1);
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary-green);
}

.user-btn {
    background: rgba(0, 255, 136, 0.2);
    border: 2px solid var(--primary-green);
}

.badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary-green);
    color: var(--black);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

/* ================ شريط البحث ================ */
.search-bar {
    position: fixed;
    top: 70px;
    width: 90%;
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    padding: 1rem;
    border-radius: 30px;
}

.search-bar input {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    text-align: right;
}

/* ================ نافذة الإشعارات ================ */
.notifications-panel {
    position: fixed;
    top: 80px;
    left: 20px;
    width: 380px;
    max-height: 500px;
    z-index: 1500;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notifications-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.notifications-header h3 {
    color: var(--primary-green);
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
}

.notification-item.unread {
    background: rgba(0, 255, 136, 0.1);
    border-right: 3px solid var(--primary-green);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
}

.notification-content h4 {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.notification-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.mark-all-read {
    margin: 0.5rem;
    padding: 0.7rem;
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--primary-green);
    border-radius: 20px;
    cursor: pointer;
}

/* ================ المحتوى الرئيسي ================ */
.main-content {
    padding-top: 100px;
    min-height: calc(100vh - 70px);
    padding-bottom: 80px;
}

/* ================ البانر ================ */
.hero {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.hero-content {
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-btn {
    background: var(--primary-green);
    color: var(--black);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.4);
}

/* ================ الأقسام ================ */
.categories,
.products-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.category-card {
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 255, 136, 0.15);
}

.category-card i {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 0.8rem;
}

.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ================ المنتجات ================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-green);
}

.product-info {
    padding: 1rem;
}

.product-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-price {
    color: var(--primary-green);
    font-size: 1.2rem;
    font-weight: bold;
}

/* سعر الشحن */
.shipping-price {
    color: var(--orange);
    font-size: 0.85rem;
    margin-top: 0.3rem;
    font-weight: normal;
}

.add-to-cart {
    width: 100%;
    margin-top: 0.8rem;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    padding: 0.6rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.add-to-cart:hover {
    background: var(--primary-green);
    color: var(--black);
}

.view-product-btn {
    width: 100%;
    margin-top: 0.5rem;
    background: rgba(0, 150, 255, 0.2);
    border: 1px solid var(--blue-border);
    color: white;
    padding: 0.6rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.view-product-btn:hover {
    background: rgba(0, 150, 255, 0.4);
}

/* ================ نافذة تفاصيل المنتج ================ */
.product-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    z-index: 2500;
    border-radius: 25px;
    overflow-y: auto;
    padding: 1.5rem;
}

.product-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.product-modal-header h2 {
    color: var(--primary-green);
    font-size: 1.5rem;
}

.product-modal-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-images {
    text-align: center;
}

.main-image {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    margin-bottom: 1rem;
}

.thumbnail-images {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.thumbnail {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-green);
    transform: scale(1.1);
}

.product-details h3,
.product-info-section h3,
.product-sizes h3,
.product-colors h3,
.product-video h3,
.product-reviews h3 {
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.product-details p,
.product-info-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.product-price-large {
    font-size: 1.8rem;
    color: var(--primary-green);
    font-weight: bold;
}

.shipping-price-large {
    font-size: 1rem;
    color: var(--orange);
    margin-top: 0.3rem;
}

.sizes-container {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.size-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.size-circle:hover,
.size-circle.selected {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.colors-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.color-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid white;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.color-circle:hover,
.color-circle.selected {
    transform: scale(1.2);
}

.color-circle.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 0 0 3px black;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.rating-stars {
    color: #ffd700;
    font-size: 1.5rem;
}

.review-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.reviewer-name {
    font-weight: bold;
}

.review-rating {
    color: #ffd700;
}

.write-review {
    margin-top: 1.5rem;
}

.review-stars-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.review-stars-input button {
    background: none;
    border: none;
    color: #ffd700;
    font-size: 1.5rem;
    cursor: pointer;
}

.review-input textarea {
    width: 100%;
    min-height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    resize: vertical;
}

.submit-review {
    background: var(--primary-green);
    color: var(--black);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
}

.product-actions {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.add-to-cart-modal {
    background: var(--primary-green);
    color: var(--black);
    border: none;
    padding: 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.back-to-home {
    background: rgba(0, 150, 255, 0.2);
    border: 1px solid var(--blue-border);
    color: white;
    padding: 0.8rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ================ نوافذ المصادقة ================ */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.85);
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 10px;
}

.auth-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 2rem;
    margin: auto;
}

.auth-close {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 10;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.auth-logo span {
    color: var(--primary-green);
}

.auth-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.auth-btn {
    background: var(--primary-green);
    color: var(--black);
    border: none;
    padding: 1rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

/* ================ السلة ================ */
.cart-sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100vh;
    z-index: 2000;
    transition: left 0.3s;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    left: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.empty-cart {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.cart-item-icon {
    font-size: 2rem;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    margin-bottom: 0.3rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--blue-glass);
    border: 2px solid var(--blue-border);
    color: white;
    cursor: pointer;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--red);
    font-size: 1.2rem;
    cursor: pointer;
}

.cart-footer {
    position: sticky;
    bottom: 0;
    background: rgba(20, 20, 20, 0.95);
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.checkout-btn {
    width: 100%;
    background: var(--primary-green);
    color: var(--black);
    border: none;
    padding: 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
}

/* ================ صفحة إتمام الطلب ================ */
.checkout-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    z-index: 2500;
    border-radius: 25px;
    overflow-y: auto;
    padding: 2rem;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.checkout-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.payment-option {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
}

.payment-option label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bank-details,
.wallet-details,
.instapay-details {
    padding: 1rem;
    margin-top: 0.5rem;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.payment-proof-upload {
    margin-top: 1rem;
}

.payment-proof-upload input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
}

.checkout-actions {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.complete-order-btn {
    background: var(--primary-green);
    color: var(--black);
    border: none;
    padding: 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cancel-order-btn {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid rgba(255, 0, 0, 0.5);
    color: white;
    padding: 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
}

/* ================ نافذة النجاح ================ */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
}

.success-content {
    text-align: center;
    padding: 3rem;
    border-radius: 25px;
    max-width: 400px;
    width: 90%;
}

.success-icon {
    font-size: 5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.order-code {
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 15px;
    border: 2px solid var(--primary-green);
}

.order-code h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.back-home-btn {
    background: var(--blue-glass);
    border: 2px solid var(--blue-border);
    color: white;
    padding: 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
}

/* ================ الهيدر السفلي ================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 0.8rem;
    z-index: 1000;
}

.bottom-nav-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
}

.bottom-nav-item i {
    font-size: 1.5rem;
}

.bottom-nav-item.active {
    color: var(--primary-green);
}

/* ================ الشات ================ */
.chat-fab {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #00ff88;
    color: #0a0a0a;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
}

.chat-widget {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (max-width: 768px) {
    .chat-widget {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80vh;
        border-radius: 25px 25px 0 0;
        z-index: 2000;
    }
    
    .chat-fab {
        bottom: 80px;
        left: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) {
    .chat-widget {
        position: fixed;
        bottom: 30px;
        left: 30px;
        width: 350px;
        height: 500px;
        border-radius: 20px;
        z-index: 2000;
    }
    
    .chat-fab {
        bottom: 30px;
        left: 30px;
    }
}

.chat-header {
    padding: 1rem;
    background: rgba(0, 255, 136, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    padding: 0.8rem;
    border-radius: 15px;
}

.message.admin {
    background: rgba(0, 255, 136, 0.2);
    align-self: flex-start;
}

.message.user {
    background: rgba(255, 255, 255, 0.2);
    align-self: flex-end;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
}

.chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0.7rem 1rem;
    color: var(--text-primary);
}

.chat-input button {
    background: var(--primary-green);
    color: var(--black);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

/* ================ البروفايل ================ */
.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.85);
    overflow-y: auto !important;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 10px;
}

.profile-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 2rem;
    margin: auto;
}

.profile-close {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 10;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), #00cc6a);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 3rem;
    color: var(--black);
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.edit-profile-btn,
.save-profile-btn,
.logout-btn {
    padding: 0.8rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.edit-profile-btn {
    background: var(--blue-glass);
    border: 2px solid var(--blue-border);
    color: white;
}

.save-profile-btn {
    background: var(--primary-green);
    color: var(--black);
    border: none;
    width: 100%;
}

.profile-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
}

.referral-link-box {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.referral-link-box input {
    flex: 1;
    padding: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
}

.referral-link-box button {
    width: 40px;
    background: var(--blue-glass);
    border: 2px solid var(--blue-border);
    color: white;
    border-radius: 10px;
    cursor: pointer;
}

.orders-stats {
    display: flex;
    gap: 1rem;
}

.order-stat {
    flex: 1;
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
}

.active-orders {
    background: rgba(255, 165, 0, 0.2);
}

.completed-orders {
    background: rgba(0, 255, 136, 0.2);
}

.cancelled-orders {
    background: rgba(255, 0, 0, 0.2);
}

.order-count {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

.logout-btn {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid rgba(255, 0, 0, 0.5);
    color: white;
}

/* ================ الاستجابة للموبايل ================ */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .bottom-nav {
        display: flex;
    }
    
    .main-content {
        padding-bottom: 100px;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-image {
        height: 150px;
        font-size: 2rem;
    }
    
    .cart-sidebar {
        width: 100%;
        left: -100%;
    }
    
    .product-modal {
        width: 95%;
        padding: 1rem;
    }
    
    .main-image {
        height: 250px;
        font-size: 5rem;
    }
}