body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('../images/back.png') no-repeat center center fixed;
    background-size: cover;
    color: white;
    min-height: 100vh;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
    overflow-x: hidden;
}

/* Background overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: -1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Loading overlay to prevent white screen */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 123, 255, 0.3);
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Removed - replaced with new background system */

.glass {
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 123, 255, 0.2);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.4),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(15, 20, 45, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(0, 123, 255, 0.2);
    padding: 3rem;
    margin: 2rem auto;
    max-width: 1400px;
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.4),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.1) 0%, transparent 70%);
    animation: rotateGlow 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

header {
    padding: 1.5rem 3rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 1rem 3rem;
    background: rgba(10, 14, 39, 0.95);
    box-shadow: 0 4px 30px rgba(0, 123, 255, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    font-weight: 500;
}

nav a:hover, nav a.active {
    background: rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
}

nav a i {
    margin-left: 8px;
}

main {
    padding: 2rem;
    padding-bottom: 100px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background: linear-gradient(135deg, rgba(15, 20, 45, 0.8), rgba(30, 40, 80, 0.6));
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 123, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.02);
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.3), rgba(138, 43, 226, 0.3));
    box-shadow: 
        0 15px 40px rgba(0, 123, 255, 0.4),
        0 0 60px rgba(138, 43, 226, 0.3);
    border-color: rgba(0, 123, 255, 0.6);
}

.feature-item i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #007bff, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
    display: inline-block;
}

.feature-item:hover i {
    transform: scale(1.2) rotate(5deg);
}

.products-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.product-card {
    border-radius: 20px;
    overflow: hidden;
    text-align: right;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(135deg, rgba(15, 20, 45, 0.9), rgba(30, 40, 80, 0.7));
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(138, 43, 226, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 
        0 15px 40px rgba(0, 123, 255, 0.4),
        0 0 60px rgba(138, 43, 226, 0.3);
    border-color: rgba(0, 123, 255, 0.6);
}

.product-image-container {
    height: 120px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-grow: 1;
}

.product-details h3 {
    margin: 0;
    font-size: 1rem;
    color: #ffffff;
}

.product-details p {
    margin: 0;
    color: #b0b0b0;
    font-size: 0.8rem;
    line-height: 1.2;
}

.rating-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 5px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.rating i {
    color: #0066CC;
    font-size: 0.6rem;
}

.rating-value {
    font-size: 0.7rem;
    color: #0066CC;
    font-weight: bold;
}

.rating {
    background-color: #1976d2;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rating i {
    color: #0066CC;
    font-size: 0.75rem;
}


.price-and-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-card .price {
    font-size: 1rem;
    font-weight: bold;
    color: #4CAF50;
    margin: 0;
}

.buy-now-btn {
    background: linear-gradient(135deg, #007bff, #8a2be2);
    border: none;
    padding: 8px 16px;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.buy-now-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.buy-now-btn:hover::before {
    width: 300px;
    height: 300px;
}

.buy-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.5);
}

/* Purchase Panel Styles */
.purchase-panel {
    background: linear-gradient(135deg, #1a237e, #283593, #3949ab);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 2px, transparent 2px);
    background-size: 300px 300px, 300px 300px, 150px 150px;
    border-radius: 15px;
    margin: 3rem auto;
    max-width: 800px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.purchase-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 85% 85%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 200px 200px, 200px 200px, 100px 100px;
    pointer-events: none;
}

.purchase-panel-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.purchase-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.purchase-panel-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.5rem;
}

.close-panel {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-panel:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.purchase-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.purchase-panel .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: bold;
}

.purchase-panel .form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.purchase-panel .form-group input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 10px rgba(25, 118, 210, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.purchase-panel .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.purchase-summary {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

.purchase-summary p {
    margin: 0.5rem 0;
    color: #ffffff;
    font-size: 1.1rem;
}

.purchase-panel .buy-btn {
    background: linear-gradient(45deg, #1976d2, #2196f3);
    border: none;
    padding: 1rem 2rem;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.purchase-panel .buy-btn:hover {
    background: linear-gradient(45deg, #1565c0, #1976d2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
}

@media (max-width: 768px) {
    .purchase-panel {
        margin: 2rem 1rem;
    }
    
    .purchase-panel-content {
        padding: 1.5rem;
    }
    
    .purchase-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.buy-btn {
    background: linear-gradient(45deg, #007bff, #0056b3); /* تدرج أزرق */
    border: none;
    padding: 0.8rem 2rem;
    color: white; /* لون نص أبيض ليتناسب مع الأزرق */
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.buy-btn:hover {
    background: linear-gradient(45deg, #0056b3, #007bff); /* تدرج أزرق معكوس عند التحويم */
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4); /* ظل أزرق */
}

.price {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    color: #007bff; /* أزرق */
    margin: 1rem 0;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3); /* ظل أزرق */
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    nav a {
        font-size: 0.95rem;
        padding: 0.7rem 1rem;
    }
    
    .features-grid, .shop-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .glass-card {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .main-logo {
        width: 200px;
        height: 200px;
    }
    
    .logo-container::before {
        width: 250px;
        height: 250px;
    }
    
    header {
        padding: 1rem;
    }
    
    header.scrolled {
        padding: 0.8rem;
    }
}

.rules-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.rule-item {
    padding: 2rem;
    border-radius: 15px;
    text-align: right;
}

.rule-item i {
    font-size: 2rem;
    color: #007bff; /* أزرق */
    margin-bottom: 1rem;
}

.rule-item ul {
    list-style: none;
    padding: 0;
}

.rule-item ul li {
    margin: 1rem 0;
    padding-right: 1.5rem;
    position: relative;
}

.rule-item ul li::before {
    content: "•";
    color: #007bff; /* أزرق */
    position: absolute;
    right: 0;
    font-size: 1.2rem;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.download-item {
    padding: 2rem;
    text-align: center;
    border-radius: 15px;
}

.download-item i {
    font-size: 3rem;
    color: #007bff; /* أزرق */
    margin-bottom: 1rem;
}

h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #007bff 50%, #8a2be2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
    padding-bottom: 1rem;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #007bff, transparent);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .rules-container {
        grid-template-columns: 1fr;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
}

.download-link {
    text-decoration: none;
    display: block;
    width: 100%;
}

.download-item p.file-info {
    color: #007bff; /* أزرق */
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.download-item p.file-info i {
    margin-left: 5px;
}

.download-steps {
    text-align: right;
    padding: 1rem;
    margin-top: 1rem;
    background: rgba(0, 123, 255, 0.1); /* خلفية زرقاء شفافة */
    border-radius: 8px;
    display: none;
}

.download-steps.active {
    display: block;
}

.download-steps ol {
    margin: 0;
    padding-right: 1.5rem;
}

.download-steps li {
    margin: 0.5rem 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* أسود شفاف */
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: 10% auto;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    /* خلفية المودال يمكن أن تكون سوداء شفافة أو متدرجة */
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 123, 255, 0.2); /* حدود زرقاء شفافة */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: #007bff; /* أزرق عند التحويم */
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #007bff; /* أزرق */
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(0, 123, 255, 0.3); /* حدود زرقاء شفافة */
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2); /* أسود شفاف */
    color: white;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff; /* أزرق عند التركيز */
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.2); /* ظل أزرق */
}

.purchase-info {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(0, 123, 255, 0.1); /* خلفية زرقاء شفافة */
    border-radius: 8px;
}

.purchase-info p {
    margin: 0.5rem 0;
}

.purchase-info span {
    color: #007bff; /* أزرق */
    font-weight: bold;
}

.apply-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.apply-form {
    padding: 2rem;
    border-radius: 15px;
}

.apply-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(0, 123, 255, 0.3); /* حدود زرقاء شفافة */
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2); /* أسود شفاف */
    color: white;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.apply-form textarea:focus {
    outline: none;
    border-color: #007bff; /* أزرق عند التركيز */
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.2); /* ظل أزرق */
}

/* تم تكرار هذا الجزء، تأكد من أنك تريده مرتين أو ادمج المتشابه */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #007bff; /* أزرق */
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(0, 123, 255, 0.3); /* حدود زرقاء شفافة */
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2); /* أسود شفاف */
    color: white;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff; /* أزرق عند التركيز */
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.2); /* ظل أزرق */
}

.auth-status {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4); /* أسود شفاف */
    padding: 6px;
    border-radius: 50px;
    border: 1px solid rgba(0, 123, 255, 0.3); /* حدود زرقاء شفافة */
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.user-profile:hover {
    background: rgba(0, 0, 0, 0.6);
}

.user-profile-dropdown {
    position: relative;
}

.dropdown-arrow {
    color: #fff;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.user-profile:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 8px;
    min-width: 200px;
    z-index: 1000;
    margin-top: 5px;
    backdrop-filter: blur(10px);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
    font-size: 14px;
}

.dropdown-item:hover {
    background: rgba(0, 123, 255, 0.2);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

/* Shop header styles */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(0, 102, 204, 0.2);
}

.shop-header h1 {
    color: #0066CC;
    text-shadow: 0 0 10px rgba(0, 102, 204, 0.3);
    margin: 0;
}

.admin-panel-btn {
    background: linear-gradient(45deg, #ff4444, #cc0000);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-panel-btn:hover {
    background: linear-gradient(45deg, #cc0000, #990000);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.3);
}

/* Loading and error states */
.loading-products {
    text-align: center;
    padding: 3rem;
    color: #fff;
}

.loading-products i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.no-products, .error-loading {
    text-align: center;
    padding: 3rem;
    color: #fff;
}

.no-products p, .error-loading p {
    font-size: 1.2rem;
    margin: 0;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #007bff; /* أزرق */
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3); /* ظل أزرق */
}

.user-details {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 10px;
}

#displayName, #username {
    color: #fff;
    font-size: 0.95rem;
}

#username::before {
    content: '•';
    margin: 0 5px;
    color: #007bff; /* أزرق */
}

.logout-btn {
    background: rgba(220, 53, 69, 0.1); /* أحمر شفاف للخروج */
    color: #dc3545;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn:hover {
    background: rgba(220, 53, 69, 0.2); /* أحمر أغمق شفاف عند التحويم */
    color: #ff4757;
}

#userInfo {
    display: flex;
    align-items: center;
}

/* زر تسجيل الدخول */
.login-btn {
    background: linear-gradient(45deg, #007bff, #0056b3); /* تدرج أزرق */
    color: white; /* لون نص أبيض ليتناسب مع الأزرق */
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2); /* ظل أزرق */
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3); /* ظل أزرق أكبر */
}

.login-btn i {
    font-size: 1.2em;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 1.2rem;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 123, 255, 0.3);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.copyright {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
}

.copyright a {
    color: #007bff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.copyright a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #8a2be2);
    transition: width 0.3s ease;
}

.copyright a:hover::after {
    width: 100%;
}

.copyright a:hover {
    color: #8a2be2;
}


.product-image-container {
    height: 200px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1; /* Allows details section to grow and push price/button to bottom */
}

.product-details h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #ffffff;
}

.product-details p {
    margin: 0;
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.rating-container {
    display: flex;
    justify-content: flex-end; /* Aligns rating to the right */
    margin-bottom: 10px;
}

.rating {
    background-color: #1976d2; /* Darker purple for rating background */
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rating i {
    color: #0066CC; /* Blue color for the star icon */
    font-size: 0.75rem;
}

.price-and-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Subtle separator */
}

.product-card .price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #4CAF50; /* Green color for the price */
    margin: 0;
}

.buy-now-btn {
    background: linear-gradient(45deg, #007bff, #0056b3); /* Blue gradient for button */
    border: none;
    padding: 10px 20px;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.buy-now-btn:hover {
    background: linear-gradient(45deg, #1976d2, #2196f3);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(138, 43, 226, 0.4);
}
