:root {
    --neon-primary: #00f3ff;
    --neon-secondary: #ff00e6;
    --neon-accent: #00ff9d;
    --deep-space: #0a0a1a;
    --cosmic-purple: #1a0a2a;
    --galaxy-blue: #0011ff;
    --supernova: #ffdd00;
    --win-text: #ffffff;
    --win-text-secondary: #a0a0a0;
    --win-radius: 8px;
    --win-radius-lg: 16px;
    --win-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    --win-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', 'Tajawal', sans-serif;
}

body {
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 243, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 230, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 157, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, #000000 0%, var(--deep-space) 50%, #000000 100%);
    color: var(--win-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    direction: rtl;
}

/* تأثيرات الخلفية */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.smoke {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--neon-primary) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s infinite linear;
    opacity: 0.1;
}

.smoke:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.smoke:nth-child(2) { top: 60%; left: 80%; animation-delay: 5s; }
.smoke:nth-child(3) { top: 80%; left: 30%; animation-delay: 10s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(100px, -50px) scale(1.2); }
    50% { transform: translate(-50px, 100px) scale(0.8); }
    75% { transform: translate(-100px, -100px) scale(1.1); }
}

/* الحاوية الرئيسية */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* شريط المهام */
.taskbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(25px);
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    border: 1px solid var(--neon-primary);
    border-radius: 15px;
    min-width: 450px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 243, 255, 0.3);
    transition: all 0.3s ease;
}

.taskbar:hover {
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 243, 255, 0.5);
    transform: translateX(-50%) translateY(-5px);
}

.start-button {
    background: linear-gradient(135deg, var(--neon-primary), var(--neon-accent));
    border: none;
    color: black;
    padding: 12px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
    transition: all 0.3s ease;
}

.start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.8);
}

.taskbar-icons {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.taskbar-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.2);
    font-size: 18px;
}

.taskbar-icon:hover {
    background: rgba(0, 243, 255, 0.2);
    border: 1px solid var(--neon-primary);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.system-tray {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 16px;
    background: rgba(0, 243, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

/* أنماط الأزرار في system-tray */
.system-tray .btn-primary,
.system-tray .btn-secondary {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.system-tray .btn-primary {
    background: linear-gradient(135deg, var(--neon-primary), var(--neon-accent));
    color: black;
}

.system-tray .btn-secondary {
    background: transparent;
    color: var(--neon-primary);
    border: 1px solid var(--neon-primary);
}

.system-tray .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 243, 255, 0.4);
}

.system-tray .btn-secondary:hover {
    background: rgba(0, 243, 255, 0.1);
}

/* الهيدر */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 24px;
    color: black;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
    animation: logoGlow 3s infinite;
}

@keyframes logoGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(0, 243, 255, 0.5); }
    50% { box-shadow: 0 0 40px rgba(0, 243, 255, 0.8); }
}

.logo-text h1 {
    font-size: 42px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text p {
    color: var(--neon-primary);
    font-size: 16px;
    margin-top: 8px;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-item {
    color: var(--win-text-secondary);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--win-radius);
    transition: all 0.3s ease;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid transparent;
}

.nav-item:hover, .nav-item.active {
    color: var(--win-text);
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    transform: translateY(-2px);
}

/* قسم البطل */
.hero {
    background: rgba(10, 10, 26, 0.7);
    backdrop-filter: blur(25px);
    border-radius: var(--win-radius-lg);
    padding: 70px 50px;
    margin-bottom: 60px;
    box-shadow: 
        var(--win-shadow),
        0 0 30px rgba(0, 243, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-primary), var(--neon-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--win-text-secondary);
    margin-bottom: 35px;
    max-width: 600px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border-radius: var(--win-radius);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-primary), var(--neon-accent));
    color: black;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.7);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-primary);
    border: 2px solid var(--neon-primary);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(0, 243, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.4);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.coin-animation {
    width: 300px;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coin-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--neon-primary) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s infinite;
    opacity: 0.3;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.coin {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--supernova), #ffaa00, var(--supernova));
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 40px rgba(255, 221, 0, 0.7);
    animation: rotate 6s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 22px;
    color: #8b6914;
    z-index: 2;
}

@keyframes rotate {
    0% { transform: rotateY(0deg) scale(1); }
    50% { transform: rotateY(180deg) scale(1.05); }
    100% { transform: rotateY(360deg) scale(1); }
}

/* قسم المنتجات */
.products-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.05) 0%, rgba(255, 0, 230, 0.05) 100%);
    backdrop-filter: blur(20px);
    margin: 50px 0;
    border-radius: var(--win-radius-lg);
    border: 1px solid rgba(0, 243, 255, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--neon-primary), var(--neon-secondary), var(--neon-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.section-header p {
    color: var(--win-text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.product-card {
    background: rgba(10, 10, 26, 0.7);
    border-radius: var(--win-radius-lg);
    padding: 25px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-primary);
    box-shadow: 0 20px 40px rgba(0, 243, 255, 0.3);
}

.product-image-container {
    width: 100%;
    height: 220px;
    border-radius: var(--win-radius);
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-placeholder {
    font-size: 3rem;
    color: rgba(0, 243, 255, 0.3);
}

.product-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--win-text);
}

.product-description {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--neon-accent);
    margin-bottom: 10px;
}

.product-stock {
    color: var(--supernova);
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.stock-low {
    color: #ff6b6b;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.buy-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, var(--neon-primary), var(--neon-accent));
    border: none;
    border-radius: var(--win-radius);
    color: #000;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 243, 255, 0.5);
}

.buy-button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #ccc;
    font-size: 1.2rem;
    grid-column: 1 / -1;
}

.loading-spinner {
    border: 3px solid #333;
    border-top: 3px solid var(--neon-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.admin-section {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.add-product-btn {
    background: linear-gradient(45deg, var(--neon-secondary), var(--supernova));
    padding: 15px 30px;
    border: none;
    border-radius: var(--win-radius);
    color: #000;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.add-product-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 0, 230, 0.4);
}

/* التجاوب مع الشاشات */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 50px 30px;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .taskbar {
        min-width: 90%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-text h1 {
        font-size: 32px;
    }
}