:root {
    --primary-color: #0d47a1;
    --primary-light: #1976d2;
    --primary-dark: #002171;
    --accent-color: #00e5ff;
    --background-dark: #060913;
    --surface-dark: #0f1626;
    --surface-light: #1a233a;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --glass-bg: rgba(15, 22, 38, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
}

* { box-sizing: border-box; padding: 0; margin: 0; }

body {
    background-color: var(--background-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-color); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky !important;
    top: 0;
    z-index: 100 !important;
}

.nav-container {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right { display: flex; align-items: center; gap: 40px; }
.nav-left { display: flex; align-items: center; gap: 15px; }

.logo { 
    display: flex; 
    align-items: center; 
    gap: 12px;
}
.nav-logo-img {
    width: 42px; 
    height: 42px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(270deg, #ffffff, var(--primary-light), #ffffff, var(--primary-light));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineLogo 5s ease infinite;
    line-height: 1;
    white-space: nowrap;
}

@keyframes shineLogo {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.nav-links { display: flex; gap: 20px; align-items: center; flex-wrap: nowrap; }

.nav-link {
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 5px;
    font-size: 1.15rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover { color: white; }
.nav-link:hover::after { width: 100%; }
.special-link { color: var(--accent-color); }

/* Megamenu Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}
.nav-dropdown-content {
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%) translateY(10px);
    background-color: var(--surface-dark);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 100;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0);
}
.nav-dropdown-content a {
    color: var(--text-primary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background 0.3s;
    text-align: right;
    border-bottom: 1px solid var(--glass-border);
    font-size: 1rem;
    font-weight: 500;
}
.nav-dropdown-content a:last-child {
    border-bottom: none;
}
.nav-dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

/* Search Bar */
.search-container { position: relative; margin: 0 10px; }
.search-bar {
    display: flex; align-items: center; 
    width: 40px; height: 40px;
    background: transparent; border: 1px solid transparent;
    border-radius: 20px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.search-bar:hover .search-btn { color: white; }
.search-bar.active {
    width: 280px;
    background: var(--surface-dark); 
    border-color: rgba(80, 80, 150, 0.5);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.search-bar.active:focus-within {
    border-color: var(--primary-light); background: var(--surface-dark);
}
.search-btn {
    background: transparent; border: none; color: var(--text-secondary);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex-shrink: 0;
    transition: color 0.3s ease;
}
#search-input {
    background: transparent; border: none; color: white; width: 100%; outline: none;
    font-family: inherit; font-size: 0.9rem; padding: 0 10px;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.search-bar.active #search-input {
    opacity: 1; pointer-events: all;
}

.search-results-dropdown {
    position: absolute; top: 110%; left: 0; width: 100%;
    background: var(--surface-dark); border: 1px solid var(--glass-border);
    border-radius: 12px; max-height: 300px; overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); opacity: 0; visibility: hidden;
    transition: all 0.3s ease; z-index: 1000;
}
.search-results-dropdown.active { opacity: 1; visibility: visible; }
.search-result-item { padding: 10px 15px; display: flex; flex-direction: column; cursor: pointer; border-bottom: 1px solid var(--glass-border); }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(255,255,255,0.05); }
.search-result-name { font-size: 0.9rem; font-weight: 600; color: white; margin-bottom: 3px;}
.search-result-price { font-size: 0.8rem; color: var(--accent-color); }
.search-no-results { padding: 15px; text-align: center; color: var(--text-secondary); font-size: 0.9rem; }

.icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.icon-btn:hover {
    color: white;
    background: rgba(255,255,255,0.05);
    border-color: var(--glass-border);
}

.cart-btn:hover {
    color: white;
    background: var(--primary-light);
    border-color: var(--primary-light);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
}

.cart-badge {
    position: absolute;
    top: -2px; right: -2px;
    background-color: var(--danger);
    color: white;
    font-size: 0.7rem; font-weight: bold;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--background-dark);
}

.settings-pill {
    display: flex; align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 5px 12px; gap: 8px;
    color: var(--text-secondary);
}

.custom-dropdown {
    position: relative;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-selected {
    padding: 2px 5px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.dropdown-selected:hover {
    color: white;
}

.dropdown-options {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--surface-dark);
    border: 1px solid var(--primary-light);
    border-radius: 8px;
    min-width: 80px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    opacity: 0; visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.custom-dropdown.active .dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-option {
    padding: 8px 15px;
    color: var(--text-primary);
    text-align: center;
    transition: background 0.2s ease;
}

.dropdown-option:hover {
    background: var(--primary-light);
    color: white;
}

.separator { color: var(--glass-border); }

/* Profile Dropdown */
.profile-menu-container { position: relative; }
.profile-dropdown {
    position: absolute;
    top: 120%; left: 50%; transform: translateX(-50%) translateY(10px);
    background: var(--surface-dark);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    min-width: 230px; padding: 8px 0 10px;
    box-shadow: 0 14px 36px rgba(0,0,0,0.55);
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease; z-index: 1000;
}
.profile-dropdown.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.profile-dropdown-head {
    padding: 10px 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 6px;
}
.profile-dropdown-name { font-weight: 800; color: #fff; font-size: 0.92rem; }
.profile-dropdown-meta {
    font-size: 0.75rem; color: var(--text-secondary);
    direction: ltr; text-align: right; margin-top: 3px;
}
.dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    color: var(--text-primary); text-align: right;
    transition: background 0.2s ease;
    text-decoration: none;
}
.dropdown-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.8; }
.dropdown-item:hover { background: rgba(255,255,255,0.05); color: var(--accent-color); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: rgba(231, 76, 60, 0.08); }

/* Hero Section (Left Aligned like reference) */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex; align-items: center;
    overflow: hidden; padding: 60px 0;
    background: linear-gradient(to right, rgba(6, 9, 19, 0.1) 0%, rgba(6, 9, 19, 0.7) 50%, rgba(6, 9, 19, 1) 100%),
                url('assets/hero-bg.png') no-repeat center right;
    background-size: cover;
}
.hero-container {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
}
.hero-content { max-width: 600px; text-align: right; }
.hero-title {
    font-size: 4rem; font-weight: 900;
    margin-bottom: 20px; line-height: 1.1;
    text-transform: uppercase;
}
.highlight {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.1rem; color: var(--text-secondary);
    margin-bottom: 40px; max-width: 500px;
}
.hero-features {
    display: flex; gap: 20px; margin-bottom: 40px;
    flex-wrap: wrap;
}
.feature-item {
    display: flex; align-items: center; gap: 10px;
}
.feature-icon {
    width: 24px; height: 24px;
    color: var(--primary-light);
}
.feature-item div { display: flex; flex-direction: column; }
.feature-item strong { font-size: 0.9rem; }
.feature-item span { font-size: 0.8rem; color: var(--text-secondary); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    color: white; border: none;
    padding: 12px 24px; border-radius: 8px;
    cursor: pointer; font-weight: 700; font-size: 1.1rem;
    transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.4);
}



/* Sections */
.section { padding: 50px 0; }
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}
.section-title { font-size: 1.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;}
.view-all {
    font-size: 0.9rem; font-weight: 600; color: var(--text-secondary);
    background: rgba(255,255,255,0.05); padding: 5px 15px; border-radius: 20px;
}
.view-all:hover { background: var(--primary-light); color: white; }

/* Wide Category Cards */
.categories-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.category-card-wide {
    background: var(--surface-dark);
    border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 25px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}
.category-card-wide:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: linear-gradient(180deg, var(--surface-light) 0%, var(--surface-dark) 100%);
}
.cat-icon-wrapper {
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(13, 71, 161, 0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-light); margin-bottom: 15px;
    transition: all 0.3s ease;
}
.category-card-wide:hover .cat-icon-wrapper {
    background: var(--primary-light); color: white;
    transform: scale(1.1);
}
.category-card-wide h3 { font-size: 1.2rem; margin-bottom: 5px; }
.category-card-wide p { font-size: 0.85rem; color: var(--text-secondary); }

/* Modern Product Cards */
.products-row-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.products-row {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marquee 30s linear infinite;
}
.products-row:hover {
    animation-play-state: paused;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); } /* Assumes duplicated content for RTL seamless loop */
}
.product-card-modern {
    background: var(--surface-dark);
    border: 1px solid var(--glass-border);
    border-radius: 16px; overflow: hidden;
    position: relative; 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    min-width: 300px;
    width: 300px;
}
.product-card-modern:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.1), 0 5px 15px rgba(0,0,0,0.4);
}
.product-bg {
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    background: var(--surface-light);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}
.product-rating {
    position: absolute; top: 12px; left: 12px;
    background: rgba(0,0,0,0.6); padding: 4px 8px; border-radius: 8px;
    font-weight: 800; color: #fbbf24; font-size: 0.85rem;
    display: flex; align-items: center; gap: 4px;
    backdrop-filter: blur(4px); z-index: 10;
}
.product-bg img { width: 100%; height: 100%; object-fit: cover; filter: none; transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.product-card-modern:hover .product-bg img { transform: scale(1.05); }

.product-info { padding: 15px; position: relative; }
.product-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; }
.product-price { font-size: 1.2rem; font-weight: 900; color: white; margin-bottom: 15px; display: flex; align-items: center;}
.product-pill {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.05); padding: 4px 10px; border-radius: 12px;
    font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
}
.pill-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent-color);
}

/* Stats Section */
.stats-section { padding: 60px 0; border-top: 1px solid var(--glass-border); margin-top: 40px;}
.stats-title { font-size: 1.4rem; font-weight: 800; text-transform: uppercase; margin-bottom: 40px; letter-spacing: 1px; text-align: center;}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px;
}
.stat-card {
    background: var(--surface-dark);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px 20px;
    display: flex; align-items: center; gap: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    opacity: 0; transition: opacity 0.4s ease;
}
.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4), 0 0 15px rgba(13, 71, 161, 0.2);
    border-color: var(--primary-light);
}
.stat-card:hover::before { opacity: 1; }

.stat-icon-glow {
    color: var(--accent-color);
    width: 60px; height: 60px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
    transition: all 0.4s ease;
    flex-shrink: 0;
}
.stat-card:hover .stat-icon-glow {
    background: var(--accent-color);
    color: var(--background-dark);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
    transform: scale(1.1) rotate(5deg);
}

.stat-info { display: flex; flex-direction: column; position: relative; z-index: 1;}
.stat-info strong { font-size: 1.8rem; font-weight: 900; letter-spacing: 1px; color: white;}
.stat-info span { font-size: 0.95rem; color: var(--text-secondary); margin-top: 4px;}

.stars {
    display: flex; gap: 4px; font-size: 1rem; margin-top: 2px;
}

/* Footer */
.footer {
    background: var(--surface-dark);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 20px; margin-top: 50px;
}
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; margin: 15px 0; }
.copyright { color: rgba(255,255,255,0.3); font-size: 0.8rem; margin-top: 20px; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.link-column h4 { font-size: 1.1rem; margin-bottom: 20px; font-weight: 700;}
.link-column a { display: block; color: var(--text-secondary); margin-bottom: 10px; font-size: 0.9rem; }
.link-column a:hover { color: var(--accent-color); }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.5rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-container { flex-direction: column; }
    .hero-image-wrapper { display: none; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
}

.currency-img { height: 1.2em; vertical-align: middle; margin-right: 4px; border-radius: 4px; filter: brightness(0) invert(1); opacity: 0.9; }

/* Reviews Section */
.reviews-section { padding: 60px 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.review-card {
    background: var(--surface-dark); border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 25px; transition: all 0.3s;
}
.review-card:hover { border-color: var(--primary-light); transform: translateY(-3px); }
.review-header { display: flex; justify-content: space-between; margin-bottom: 15px; }
.reviewer-name { font-weight: 700; color: white; font-size: 1.05rem;}
.review-date { font-size: 0.8rem; color: var(--text-secondary); }
.review-text { font-size: 0.95rem; color: #d1d5db; line-height: 1.6; }


/* Particles Canvas */
#particles-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}
body > *:not(#particles-canvas):not(.navbar):not(.cart-modal-overlay):not(.product-detail-overlay) {
    position: relative;
    z-index: 1;
}

/* Cart Modal Styles - Glassmorphism */
.cart-modal-overlay {
    position: fixed !important; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    display: none; justify-content: center; align-items: center; z-index: 1000 !important;
}
.cart-modal {
    background: rgba(15, 22, 38, 0.85);
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    border-radius: 20px; width: 900px; max-width: 95%; max-height: 85vh;
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlideUp {
    from { transform: translateY(30px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
.cart-modal-header {
    display: flex; justify-content: space-between; align-items: center; padding: 20px 25px;
    background: rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cart-modal-title { display: flex; align-items: center; gap: 15px; }
.cart-modal-title h2 { font-size: 1.3rem; margin: 0; font-weight: 800; }
.cart-modal-title span { color: var(--text-secondary); font-size: 0.9rem; }
.cart-close-btn {
    background: rgba(255,255,255,0.05); border: none; color: #fff; width: 36px; height: 36px;
    border-radius: 10px; font-size: 1.3rem; cursor: pointer; transition: all 0.3s ease;
}
.cart-close-btn:hover { background: rgba(255,255,255,0.12); transform: rotate(90deg); }
.cart-modal-body { display: grid; grid-template-columns: 1fr 2fr; flex: 1; overflow: hidden; }
@media (max-width: 768px) { .cart-modal-body { grid-template-columns: 1fr; overflow-y: auto; } }
.cart-modal-summary {
    padding: 25px; background: rgba(0,0,0,0.15);
    border-left: 1px solid rgba(255,255,255,0.05);
    display: flex; flex-direction: column; gap: 20px;
}
.discount-input {
    width: 100%; padding: 12px 15px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; color: #fff; outline: none; font-family: inherit;
    transition: border-color 0.3s;
}
.discount-input:focus { border-color: var(--primary-light); }
.discount-btn {
    background: rgba(25, 118, 210, 0.15); border: 1px solid rgba(25, 118, 210, 0.3);
    color: var(--primary-light); padding: 0 18px; border-radius: 10px; cursor: pointer;
    font-weight: 700; font-family: inherit; transition: all 0.3s;
}
.discount-btn:hover { background: var(--primary-light); color: #fff; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.95rem; }
.checkout-modal-btn {
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff; border: none; padding: 15px; border-radius: 12px;
    font-weight: 700; cursor: pointer; font-family: inherit; font-size: 1rem;
    transition: all 0.3s; margin-top: auto;
    box-shadow: 0 5px 20px rgba(229, 57, 53, 0.3);
}
.checkout-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(25, 118, 210, 0.5); }
.checkout-btn:active { transform: translateY(0); }
.open-ticket-btn {
    background: linear-gradient(135deg, var(--accent-color), #00b4d8);
    color: #000;
    font-weight: 700;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    transition: all 0.3s ease;
}
.open-ticket-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
}
.open-ticket-btn:active {
    transform: translateY(0) scale(0.98);
}
@keyframes popIn {
    0% { opacity: 0; transform: scale(0.9) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
.animated-modal {
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.checkout-modal-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(229, 57, 53, 0.5); }
.cart-modal-items { padding: 25px; overflow-y: auto; max-height: 500px; display: flex; flex-direction: column; gap: 12px; }
.modal-cart-item {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; padding: 18px; display: flex; justify-content: space-between; align-items: center;
    transition: all 0.3s ease;
}
.modal-cart-item:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); }
.item-actions-left { display: flex; align-items: center; gap: 15px; }
.modal-qty-control {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.06); padding: 6px 12px; border-radius: 25px;
}
.modal-qty-control button {
    background: none; border: none; color: #fff; cursor: pointer;
    font-size: 1.1rem; width: 26px; height: 26px; border-radius: 50%;
    transition: background 0.2s;
}
.modal-qty-control button:hover { background: rgba(255,255,255,0.1); }
.modal-remove-btn {
    background: rgba(229, 57, 53, 0.1); color: #e53935; border: none;
    padding: 10px; border-radius: 10px; cursor: pointer; transition: all 0.3s;
}
.modal-remove-btn:hover { background: rgba(229, 57, 53, 0.2); }

/* Product Detail Modal */
.product-detail-overlay {
    position: fixed !important; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    display: none; justify-content: center; align-items: center; z-index: 1000 !important;
}
.product-detail-modal {
    background: #0d111a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px; width: 850px; max-width: 95%; max-height: 90vh;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}
.product-detail-grid {
    display: grid; grid-template-columns: 1fr 350px; min-height: 400px;
}
@media (max-width: 768px) {
    .product-detail-grid { grid-template-columns: 1fr; }
    .product-detail-image-side { order: -1; }
}
.product-detail-info-side {
    padding: 35px;
    display: flex; flex-direction: column;
}
.product-detail-image-side {
    background: #0b1020;
    display: block;
    position: relative; padding: 0;
    min-height: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}
.product-detail-image-side img {
    width: 100%; height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    cursor: zoom-in;
    filter: none;
    transition: transform 0.35s ease;
}
.product-detail-image-side img.is-zoomed {
    transform: scale(1.35);
    cursor: zoom-out;
}
.pd-thumbs {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-top: 14px;
}
.pd-thumb {
    width: 62px; height: 62px; padding: 6px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.25);
    cursor: pointer;
    object-fit: contain;
}
.pd-thumb.active { border-color: var(--accent-color); }

.product-detail-close {
    position: absolute; top: 15px; left: 15px;
    background: rgba(0,0,0,0.4); border: none; color: #fff;
    width: 36px; height: 36px; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer; transition: all 0.3s;
    backdrop-filter: blur(10px); z-index: 10;
}
.product-detail-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }

.pd-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; color: white; }
.pd-subtitle { font-size: 0.9rem; color: var(--accent-color); margin-bottom: 20px; font-weight: 700; background: rgba(0, 229, 255, 0.1); display: inline-block; padding: 4px 12px; border-radius: 20px; }
.pd-price { font-size: 1.5rem; font-weight: 900; color: #fff; margin-bottom: 25px; display: flex; align-items: center; gap: 8px; }
.pd-price .currency-img { height: 1.2em; filter: brightness(0) invert(1); }

.pd-whatsapp-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: rgba(46, 204, 113, 0.1); border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71; padding: 12px; border-radius: 12px; text-decoration: none;
    font-weight: 700; transition: all 0.3s; margin-bottom: 25px;
}
.pd-whatsapp-btn:hover { background: rgba(46, 204, 113, 0.2); }

.pd-features { margin-bottom: 25px; }
.pd-features ul { list-style: none; padding: 0; }
.pd-features li {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
    color: #e5e7eb; font-size: 0.9rem;
}
.pd-features li svg { color: var(--accent-color); flex-shrink: 0; }

.pd-add-to-cart {
    background: var(--primary-light); color: white; border: none;
    padding: 16px; border-radius: 12px; font-size: 1.1rem; font-weight: 800;
    cursor: pointer; transition: all 0.3s; width: 100%; display: flex; justify-content: center; align-items: center; gap: 10px;
}
.pd-add-to-cart:hover { background: #0d47a1; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(13, 71, 161, 0.4); }


/* 3D Tilt Effect on Product Cards */
.product-card-modern {
    transform-style: preserve-3d;
    perspective: 1000px;
}
.product-content {
    display: flex; align-items: center; justify-content: center;
    padding: 20px; min-height: 100px;
}

/* Nav Special Link */
.special-link { color: #dc2626 !important; font-weight: 800 !important; }
.special-link:hover { color: #ef4444 !important; }

/* Restored Search & Settings Pill Styles */
.search-container { position: relative; display: flex; align-items: center; }
.search-bar {
    display: flex; align-items: center; background: transparent;
    border: 1px solid transparent; border-radius: 30px; padding: 4px;
    width: 40px; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}
.search-bar:focus-within { 
    width: 250px; background: rgba(255,255,255,0.05); 
    border-color: rgba(255,255,255,0.1); 
}
.search-input { 
    background: none; border: none; color: white; padding: 0; 
    width: 0; outline: none; font-family: inherit; font-size: 0.95rem; 
    transition: all 0.4s ease; opacity: 0;
}
.search-bar:focus-within .search-input {
    width: 100%; padding: 5px 15px; opacity: 1;
}
.search-btn { 
    background: rgba(255,255,255,0.1); border: none; color: white; 
    width: 32px; height: 32px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background 0.3s;
}
.search-btn:hover { background: var(--primary); }

/* Fixed Riyal Icon */
.currency-img { width: auto !important; height: 1em !important; object-fit: contain !important; vertical-align: middle; }

/* Animated Marquee for Reviews */
.reviews-marquee-wrapper {
    overflow: hidden; white-space: nowrap; width: 100%; position: relative;
    padding: 20px 0; display: flex; align-items: center;
}
.reviews-track {
    display: flex; gap: 20px;
    animation: scrollRTL 25s linear infinite;
}
.reviews-track:hover { animation-play-state: paused; }
@keyframes scrollRTL {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}
.review-card {
    min-width: 300px;
    white-space: normal;
}

.settings-pill {
    display: flex; align-items: center; background: rgba(255,255,255,0.05);
    border-radius: 20px; padding: 5px 15px; border: 1px solid rgba(255,255,255,0.1); gap: 10px;
}
.custom-dropdown { position: relative; cursor: pointer; font-size: 0.9rem; font-weight: 600; color: #fff; padding: 5px; }
.custom-dropdown::after { content: ''; position: absolute; top: 100%; left: -20px; right: -20px; height: 15px; }
.dropdown-options {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: var(--surface-dark); border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 8px; margin-top: 15px; display: flex; flex-direction: column; 
    min-width: 80px; z-index: 10; text-align: center;
    opacity: 0; visibility: hidden; transition: all 0.2s ease;
}
.dropdown-options::before {
    content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
    border-width: 6px; border-style: solid; border-color: transparent transparent rgba(255,255,255,0.1) transparent;
}
.dropdown-options::after {
    content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
    border-width: 5px; border-style: solid; border-color: transparent transparent var(--surface-dark) transparent;
}
.custom-dropdown.active .dropdown-options { opacity: 1; visibility: visible; }
.dropdown-option { padding: 8px 12px; transition: background 0.2s; }
.dropdown-option:hover { background: rgba(255,255,255,0.1); }
.separator { color: rgba(255,255,255,0.2); }

/* Floating Wheel Button */
.wheel-floating-btn {
    position: fixed !important; bottom: 30px; right: 30px;
    width: 70px; height: 70px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    box-shadow: 0 0 20px rgba(25, 118, 210, 0.5), 0 0 40px rgba(0, 229, 255, 0.3);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 99; transition: all 0.3s;
    border: 3px solid var(--accent-color); animation: pulseWheel 2s infinite;
}
.wheel-floating-btn:hover { transform: scale(1.1) rotate(15deg); }
@keyframes pulseWheel {
    0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(0, 229, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

/* Wheel Modal */
.wheel-modal-overlay {
    position: fixed !important; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
    display: none; align-items: center; justify-content: center; z-index: 9999 !important;
}
.wheel-container {
    background: transparent;
    border: none;
    padding: 40px; text-align: center; position: relative; 
    box-shadow: none;
}
.wheel-box { 
    position: relative; width: 350px; height: 350px; margin: 0 auto 30px; 
    border-radius: 50%; overflow: hidden; 
    border: 6px solid #00e5ff; 
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.6), inset 0 0 20px rgba(0, 229, 255, 0.4); 
}
.wheel-inner { 
    width: 100%; height: 100%; border-radius: 50%; position: relative; 
    transition: transform 6s cubic-bezier(0.1, 0.7, 0.1, 1); 
}
.wheel-pointer {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0; 
    border-left: 20px solid transparent; border-right: 20px solid transparent; border-top: 35px solid #3498db;
    z-index: 10; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6));
}
.wheel-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80px; height: 80px; 
    border-radius: 50%;
    border: 4px solid #00e5ff; 
    font-weight: 900; color: #fff; font-size: 1.4rem; cursor: pointer;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.8), inset 0 0 15px rgba(0,0,0,0.8); z-index: 5;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #000, 0 2px 5px rgba(0,0,0,0.8);
    display: flex; align-items: center; justify-content: center;
    background-color: transparent;
    overflow: hidden;
}
.wheel-btn::before {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    background: linear-gradient(rgba(15, 22, 38, 0.8), rgba(15, 22, 38, 0.8)), url('assets/logo.png') center/cover no-repeat;
    filter: blur(2px);
    z-index: -1;
}
.wheel-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 0 35px rgba(0, 229, 255, 1);
}
.wheel-btn:disabled { background: #555; color: #aaa; border-color: #333; box-shadow: none; cursor: not-allowed; transform: translate(-50%, -50%); }
.wheel-timer { font-size: 1.2rem; color: var(--accent-color); font-weight: 700; margin-top: 15px; display: none; }
.wheel-close { position: absolute; top: 15px; left: 15px; background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 1.5rem; cursor: pointer; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.wheel-close:hover { background: rgba(255,255,255,0.2); }

/* Hero Carousel Styles */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-top: 0;
}
.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    z-index: 1;
}
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(6,9,19,0.1) 0%, rgba(6,9,19,0.95) 100%);
    z-index: 1;
}
.hero-slide.active {
    opacity: 1;
    z-index: 2;
}
.slide-content {
    position: relative;
    z-index: 3;
    padding: 0 5%;
    max-width: 800px;
    color: #fff;
    text-align: right;
}
.slide-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.slide-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}
.slide-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 0.9rem;
}
.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-light);
    color: white;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}
.slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.5);
}
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.carousel-control:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}
.carousel-control.prev { right: 20px; }
.carousel-control.next { left: 20px; }
@media (max-width: 768px) {
    .carousel-control { display: flex; width: 40px; height: 40px; }
}

.carousel-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.carousel-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}
.carousel-dot.active {
    background: var(--primary-light);
    width: 30px;
    border-radius: 10px;
}

/* Toast Notification */
.d7-toast {
    position: fixed !important;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(46, 204, 113, 0.9);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    z-index: 999999 !important;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    backdrop-filter: blur(5px);
}
.d7-toast.show {
    opacity: 1;
}
.d7-toast.error {
    background: rgba(231, 76, 60, 0.9);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

@media (max-width: 768px) {
    .hero-carousel { height: 400px; margin-top: 0; }
    .slide-title { font-size: 2.2rem; }
    .slide-subtitle { font-size: 1rem; }
    .carousel-control { display: flex; width: 38px; height: 38px; }
}

/* =========================================
   Live Chat Widget
========================================= */
.chat-floating-btn {
    position: fixed !important; bottom: 30px; left: 30px;
    width: 60px; height: 60px; border-radius: 50%;
    background: #0284c7; color: #fff;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
    cursor: pointer; z-index: 100; transition: 0.3s;
}
.chat-floating-btn:hover { transform: scale(1.1); background: #0369a1; }
.chat-badge {
    position: absolute; top: -5px; right: -5px;
    background: #e74c3c; color: #fff;
    font-size: 0.8rem; font-weight: bold;
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--background-dark);
}
.chat-widget {
    position: fixed !important; bottom: 100px; left: 30px;
    width: 350px; height: 450px; background: #e0f2fe; color: #0f172a;
    border: 1px solid #bae6fd; border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: none; flex-direction: column; z-index: 100;
    overflow: hidden;
}
.chat-widget.open { display: flex; animation: slideUpChat 0.3s ease; }
@keyframes slideUpChat { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }
.chat-widget .chat-header {
    background: #0284c7; padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.chat-widget .chat-header h4 { margin: 0; color: #fff; }
.chat-messages {
    flex: 1; padding: 15px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 10px;
    background: rgba(0,0,0,0.2);
}
.chat-widget .chat-messages {
    background: #f0f9ff;
}
.chat-msg {
    max-width: 80%; padding: 10px 15px; border-radius: 12px;
    font-size: 0.9rem; line-height: 1.4; word-wrap: break-word;
}
.chat-msg.customer {
    align-self: flex-start; background: var(--primary); color: #fff;
    border-bottom-right-radius: 2px;
}
.chat-widget .chat-msg.customer {
    background: #0284c7; color: #fff;
}
.chat-msg.admin {
    align-self: flex-end; background: var(--border); color: var(--text-primary);
    border-bottom-left-radius: 2px;
}
.chat-widget .chat-msg.admin {
    background: #bae6fd; color: #0f172a;
}
.chat-input-area {
    padding: 15px; background: var(--surface); border-top: 1px solid var(--border);
    display: flex; gap: 10px;
}
.chat-widget .chat-input-area {
    background: #e0f2fe; border-top: 1px solid #bae6fd;
}
.chat-input-area input {
    flex: 1; background: rgba(0,0,0,0.3); border: 1px solid var(--border);
    padding: 10px 15px; border-radius: 20px; color: #fff; outline: none; transition: 0.3s;
}
.chat-widget .chat-input-area input {
    border: 1px solid #7dd3fc; background: #ffffff; color: #0f172a;
}
.chat-send-btn {
    background: var(--primary); border: none; width: 40px; height: 40px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #fff; transition: 0.2s;
}
.chat-send-btn:hover { background: var(--primary-light); }
.chat-send-btn svg { width: 18px; height: 18px; }
@media (max-width: 480px) {
    .chat-widget {
        bottom: 0; left: 0; width: 100%; height: 100%;
        border-radius: 0;
    }
}


/* =========================================================
   D7 STORE — UI UPGRADE (v9)
   شريط الإعلانات / الكاردات / العملات / العجلة / الديسكورد
   ========================================================= */

/* ---------- 1) Announcement Bar (شريط الإعلانات) ---------- */
.d7-announce-bar {
    position: relative;
    z-index: 120;
    width: 100%;
    overflow: hidden;
    padding: 8px 0;
    background: linear-gradient(90deg, #001a4d 0%, var(--primary-color) 50%, #001a4d 100%);
    border-bottom: 1px solid rgba(0, 229, 255, 0.25);
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.d7-announce-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation-name: d7AnnounceScroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}
.d7-announce-bar:hover .d7-announce-track { animation-play-state: paused; }
@keyframes d7AnnounceScroll {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
.d7-announce-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cairo', 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.d7-announce-sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    color: var(--accent-color);
    font-size: 0.65rem;
    opacity: 0.85;
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .d7-announce-item { font-size: 0.8rem; }
    .d7-announce-sep { width: 46px; }
}

/* ---------- 2) Navbar: توحيد ارتفاع الأقسام والدعم الفني ---------- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: nowrap;
    height: 44px;
}
.nav-links > a.nav-link,
.nav-links > .nav-dropdown,
.nav-links > .nav-dropdown > .nav-link {
    display: flex;
    align-items: center;
    height: 44px;
    line-height: 1;
}
.nav-link {
    padding: 0 2px;
    font-size: 1.02rem;
    white-space: nowrap;
}
.nav-link::after { bottom: 8px; }
.nav-dropdown > .nav-link::after { bottom: 8px; }
.nav-dropdown > .nav-link { gap: 5px; }
.nav-dropdown > .nav-link::before {
    content: '';
    width: 6px; height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.7;
    transition: transform 0.3s ease;
}
.nav-dropdown:hover > .nav-link::before { transform: rotate(-135deg) translateY(-1px); }
.nav-dropdown-content {
    top: 100%;
    padding: 6px;
    transform: translateX(50%) translateY(4px);
}
.nav-dropdown-content a {
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    white-space: nowrap;
}
.nav-dropdown-content a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-container { padding: 10px 20px; }

/* ---------- 3) Currency / Price display (الريال وشعارات العملات) ---------- */
.price-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    direction: ltr;
    line-height: 1;
    white-space: nowrap;
}
.price-tag .price-num { font-variant-numeric: tabular-nums; letter-spacing: 0.3px; }

/* شعار الريال السعودي الرسمي */
.cur-img {
    height: 1.02em;
    width: auto;
    display: block;
    object-fit: contain;
    opacity: 0.96;
    transform: translateY(0.02em);
}
/* العملات بدون شعار رسمي: نص مرتب بجانب الرقم */
.cur-abbr {
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.4px;
    opacity: 0.72;
    background: none;
    border: none;
    padding: 0;
    color: inherit;
}
.cur-glyph { font-size: 0.92em; font-weight: 800; opacity: 0.85; }

/* السعر القديم المشطوب: نخفت الشعار معه */
.product-old-price .cur-img,
.pd-old-price .cur-img { opacity: 0.45; }
.product-old-price .cur-abbr,
.pd-old-price .cur-abbr { opacity: 0.6; }

/* الصور القديمة للريال (توافق) */
.currency-img {
    width: auto !important;
    height: 1em !important;
    object-fit: contain !important;
    vertical-align: -0.08em;
    margin: 0 2px;
    border-radius: 0;
    opacity: 0.95;
    filter: none;
}

/* ---------- 4) Product cards (تصميم الكروت الخارجية) ---------- */
.products-row {
    display: flex;
    gap: 20px;
    width: max-content;
    align-items: stretch;
    animation-name: marquee;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
    backface-visibility: hidden;
    padding: 6px 2px 14px;
}
@keyframes marquee {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(50%, 0, 0); }
}
.products-row-container { padding: 0; }

.product-card-modern {
    background: linear-gradient(180deg, rgba(26, 35, 58, 0.55) 0%, var(--surface-dark) 55%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    min-width: 280px;
    width: 280px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transform-style: flat;
    perspective: none;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.product-card-modern:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 229, 255, 0.12);
}
.product-bg {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    padding: 0;
    background: #0b1020;
    border-bottom: none;
    display: block;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    box-sizing: border-box;
}
.product-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
    background: #0b1020;
    transition: transform 0.45s ease;
}
.product-card-modern.has-cover .product-bg img { object-fit: cover; padding: 0; }
.product-card-modern:hover .product-bg img { transform: scale(1.04); }
.product-discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ff7b7b;
    font-size: 0.72rem;
    font-weight: 800;
}

/* Tag بنص أحمر */
.product-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 40px);
    padding: 5px 12px;
    border-radius: 10px;
    background: rgba(8, 10, 18, 0.82);
    border: 1px solid rgba(239, 68, 68, 0.55);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ff4d4d;
    font-family: 'Cairo', 'Inter', sans-serif;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-tag::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #ff4d4d;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.9);
    flex-shrink: 0;
}

.product-info {
    padding: 14px 16px 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.product-name {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.5;
    min-height: 3em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-pill {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
}
.product-pill .pill-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-color);
}
.product-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
}
.product-price {
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    display: inline-flex;
    align-items: center;
}
.product-old-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: #6b7280;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    display: inline-flex;
    align-items: center;
}
.product-cart-btn {
    margin-top: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-family: 'Cairo', 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.28s ease;
}
.product-cart-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.product-cart-btn:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.55);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 229, 255, 0.12);
}
.product-cart-btn:active { transform: scale(0.98); }
.product-cart-btn.added {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.6);
    color: #34d399;
}
@media (max-width: 480px) {
    .product-card-modern { min-width: 220px; width: 220px; }
    .product-bg { aspect-ratio: 1 / 1; height: auto; }
}

/* شبكة صفحة القسم */
.products-grid-view { align-items: stretch; }
.products-grid-view .product-card-modern { width: 100%; min-width: 0; }

/* ---------- 5) Product details page (تفاصيل المنتج) ---------- */
.product-detail-card {
    background: linear-gradient(180deg, rgba(26, 35, 58, 0.5), var(--surface-dark));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 22px;
    overflow: hidden;
}
.product-detail-info-side { padding: 30px 32px; gap: 0; }
.pd-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #ff4d4d;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 14px;
}
.pd-tag::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: #ff4d4d;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.9);
}
.pd-subtitle {
    align-self: flex-start;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 14px;
    font-weight: 700;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.22);
    padding: 4px 12px;
    border-radius: 20px;
}
.pd-title { font-size: 1.5rem; font-weight: 900; margin-bottom: 14px; line-height: 1.5; }
.pd-price-row {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding-bottom: 20px; margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.pd-price { font-size: 1.6rem; font-weight: 900; color: #fff; margin: 0; display: inline-flex; align-items: center; }
.pd-old-price { font-size: 1rem; font-weight: 700; color: #6b7280; text-decoration: line-through; display: inline-flex; }

/* وصف المنتج */
.pd-desc-block { margin-bottom: 24px; }
.pd-desc-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px;
}
.pd-desc-head h4 { font-size: 1.02rem; font-weight: 800; color: #fff; margin: 0; }
.pd-desc-head::before {
    content: '';
    width: 4px; height: 18px; border-radius: 4px;
    background: linear-gradient(180deg, var(--accent-color), var(--primary-light));
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}
.pd-desc-body {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px 18px;
    color: #cbd5e1;
    font-size: 0.94rem;
    line-height: 2;
    white-space: pre-line;
}
.pd-desc-body p { margin: 0 0 10px; }
.pd-desc-body p:last-child { margin-bottom: 0; }
.pd-desc-body ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.pd-desc-body li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.8; }
.pd-desc-body li::before {
    content: '';
    margin-top: 9px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
    flex-shrink: 0;
}
.pd-actions { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.pd-add-to-cart {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 14px;
    padding: 15px;
}
.pd-secondary-row { display: flex; align-items: center; gap: 12px; }

/* زر الديسكورد بالشعار */
.pd-discord-btn,
.d7-discord-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 14px;
    background: #5865F2;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 22px rgba(88, 101, 242, 0.35);
}
.pd-discord-btn svg, .d7-discord-icon-btn svg { width: 26px; height: 26px; fill: currentColor; }
.pd-discord-btn:hover, .d7-discord-icon-btn:hover {
    background: #4752c4;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(88, 101, 242, 0.5);
}
.pd-buy-now {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    padding: 15px;
    border-radius: 14px;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.55);
    color: #ff5c5c;
    font-family: 'Cairo', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.pd-buy-now:hover { background: rgba(239, 68, 68, 0.1); box-shadow: 0 8px 20px rgba(239, 68, 68, 0.18); }

/* زر ديسكورد عائم */
.d7-discord-float {
    position: fixed !important;
    bottom: 104px; left: 30px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #5865F2;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.45);
    cursor: pointer;
    z-index: 100;
    transition: transform 0.3s ease, background 0.3s ease;
}
.d7-discord-float:hover { transform: scale(1.1); background: #4752c4; }
.d7-discord-float svg { width: 30px; height: 30px; fill: #fff; }
@media (max-width: 480px) {
    .d7-discord-float { bottom: 96px; left: 20px; width: 48px; height: 48px; }
    .d7-discord-float svg { width: 24px; height: 24px; }
}

/* ---------- 6) Wheel: ألوان متوافقة مع ثيم وشعار المتجر ---------- */
.wheel-container {
    background: rgba(9, 14, 26, 0.92);
    border: 1px solid rgba(0, 229, 255, 0.16);
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(14px);
}
.wheel-box {
    border: 6px solid var(--primary-light);
    box-shadow: 0 0 28px rgba(25, 118, 210, 0.55), inset 0 0 26px rgba(0, 229, 255, 0.25);
}
.wheel-inner { transition: transform 5.5s cubic-bezier(0.16, 0.86, 0.05, 1); }
.wheel-pointer { border-top-color: var(--accent-color); filter: drop-shadow(0 3px 8px rgba(0, 229, 255, 0.55)); }
.wheel-btn {
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.6), inset 0 0 18px rgba(0, 0, 0, 0.85);
}
/* superseded wheel-slice-label */
.wheel-floating-btn { border-color: var(--accent-color); }

/* ---------- 7) Search results ---------- */
.search-results-dropdown {
    padding: 8px;
    /* عرض أوسع من مربع البحث حتى تظهر النتائج بشكل مرتب */
    width: 370px;
    max-width: calc(100vw - 32px);
    left: auto;
    right: 0;
    top: calc(100% + 10px);
    max-height: 420px;
}
.search-result-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 10px;
    cursor: pointer;
    border-bottom: none;
    transition: background 0.2s ease;
}
.search-result-item:hover { background: rgba(255, 255, 255, 0.06); }
.search-result-thumb {
    width: 42px; height: 42px; border-radius: 9px;
    object-fit: cover; background: #0b1020; flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.search-result-body { flex: 1; min-width: 0; }
.search-result-name {
    font-size: 0.92rem; font-weight: 700; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-result-cat { font-size: 0.75rem; color: var(--text-secondary); }
.search-result-price { font-size: 0.9rem; font-weight: 800; color: var(--accent-color); display: inline-flex; }
.search-no-results { padding: 18px; text-align: center; color: var(--text-secondary); font-size: 0.9rem; }

/* ---------- 8) Section headers ---------- */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-title { font-size: 1.35rem; font-weight: 900; letter-spacing: 0.2px; }
.view-all {
    font-size: 0.85rem; font-weight: 700; color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1); padding: 6px 14px; border-radius: 20px;
    transition: all 0.3s ease;
}
.view-all:hover { color: #fff; border-color: rgba(0, 229, 255, 0.5); background: rgba(0, 229, 255, 0.07); }


/* ---------- 9) Responsive (v9) ---------- */
@media (max-width: 768px) {
    /* إخفاء قائمة الأقسام في الجوال (تبقى القوائم الأساسية) */
    .nav-links { display: none; }
    .nav-container { padding: 10px 14px; flex-wrap: wrap; gap: 10px; }
    .nav-right { gap: 12px; }
    .nav-left { gap: 10px; flex: 1; justify-content: flex-end; }
    .nav-logo-img { width: 34px; height: 34px; }
    .logo-text { font-size: 1.1rem; }
    .settings-pill { padding: 2px 8px; }
    .search-bar:focus-within { width: 170px; }
    .profile-dropdown { max-width: 88vw; }
    .product-detail-info-side { padding: 22px 18px; }
    .pd-title { font-size: 1.25rem; }
    .pd-price { font-size: 1.35rem; }
    .section-title { font-size: 1.12rem; }
}
@media (max-width: 480px) {
    .pd-secondary-row { flex-wrap: wrap; }
    .pd-buy-now { min-width: 60%; }
}

/* القائمة المنسدلة للحساب: لا تشغل مساحة عند الإغلاق */
.profile-dropdown { display: none; }
.profile-dropdown.show { display: block; opacity: 1; visibility: visible; }

/* قوائم اللغة/العملة: لا تشغل مساحة عند الإغلاق (تمنع التمدد الأفقي) */
.dropdown-options { display: none; }
.custom-dropdown.active .dropdown-options { display: flex; opacity: 1; visibility: visible; }
.dropdown-options { max-height: 320px; overflow-y: auto; }
.dropdown-option { display: flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; padding: 9px 14px; cursor: pointer; }
.dropdown-option:hover { background: rgba(255, 255, 255, 0.06); }

/* الأجهزة المتوسطة: إخفاء شريط الأقسام لمنع التزاحم في الأعلى */
@media (max-width: 991px) {
    .nav-links { display: none; }
    .nav-container { padding: 10px 16px; }
}


/* =========================================================
   D7 STORE — UI UPGRADE (v10)
   القائمة الجانبية / أيقونة الدعم / الديسكورد / صفحة المنتج
   ========================================================= */

/* شريط الإعلانات في الصفحات بدون navbar (تسجيل الدخول مثلاً) */
.d7-announce-bar.is-fixed {
    /* !important لتجاوز قاعدة body > * التي تفرض position: relative */
    position: fixed !important;
    top: 0; left: 0; right: 0;
    width: 100%;
    z-index: 300 !important;
    flex: none !important;
    align-self: flex-start;
}

/* ---------- زر الديسكورد العائم (مكان زر الدعم القديم) ---------- */
.d7-discord-float {
    bottom: 30px;
    left: 30px;
}
@media (max-width: 480px) {
    .d7-discord-float { bottom: 24px; left: 20px; width: 52px; height: 52px; }
    .d7-discord-float svg { width: 26px; height: 26px; }
}

/* ---------- أيقونة الدعم الفني في الشريط العلوي ---------- */
.d7-support-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #fff;
    flex-shrink: 0;
    transition: all 0.28s ease;
}
.d7-support-btn svg { width: 21px; height: 21px; }
.d7-support-btn:hover {
    color: #fff;
    background: rgba(0, 229, 255, 0.14);
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.18);
}
/* تلميح يوضح أنه الدعم الفني */
.d7-tip { position: relative; }
.d7-tip::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #0b1222;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Cairo', 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.22s ease;
    z-index: 400;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.d7-tip:hover::after { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ---------- زر القائمة (3 شرطات) ---------- */
.d7-menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.28s ease;
}
.d7-menu-btn span {
    display: block;
    width: 18px; height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: all 0.28s ease;
}
.d7-menu-btn span:nth-child(2) { width: 13px; }
.d7-menu-btn:hover {
    background: rgba(0, 229, 255, 0.12);
    border-color: rgba(0, 229, 255, 0.45);
}
.d7-menu-btn:hover span { background: var(--accent-color); }
.d7-menu-btn:hover span:nth-child(2) { width: 18px; }

/* ---------- الشريط الجانبي (يمين) + تغبيش الخلفية ---------- */
.d7-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 6, 14, 0.62);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s ease, visibility 0.32s ease;
    z-index: 1200;
}
.d7-drawer-backdrop.open { opacity: 1; visibility: visible; }

.d7-drawer {
    position: fixed;
    top: 0; right: 0;
    height: 100%;
    width: 330px;
    max-width: 86vw;
    background: linear-gradient(180deg, #0b1222 0%, #070b16 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
    transform: translateX(100%);
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1300;
    display: flex;
    flex-direction: column;
    font-family: 'Cairo', 'Inter', sans-serif;
}
.d7-drawer.open { transform: translateX(0); }

.d7-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.d7-drawer-brand { display: flex; align-items: center; gap: 10px; }
.d7-drawer-brand img { width: 34px; height: 34px; object-fit: contain; }
.d7-drawer-brand span {
    font-size: 1.05rem; font-weight: 900; letter-spacing: 0.5px; color: #fff;
}
.d7-drawer-close {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.28s ease;
}
.d7-drawer-close:hover { background: rgba(239, 68, 68, 0.18); border-color: rgba(239, 68, 68, 0.5); transform: rotate(90deg); }

.d7-drawer-body { flex: 1; overflow-y: auto; padding: 14px; }
.d7-drawer-body::-webkit-scrollbar { width: 6px; }
.d7-drawer-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }

.d7-drawer-label {
    font-size: 0.72rem; font-weight: 800; color: var(--text-secondary);
    letter-spacing: 1px; margin: 6px 6px 10px;
}

/* عنصر رئيسي (فئة) */
.d7-group { margin-bottom: 8px; }
.d7-group-head {
    width: 100%;
    display: flex; align-items: center; gap: 11px;
    padding: 13px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: inherit;
    font-size: 0.97rem;
    font-weight: 700;
    cursor: pointer;
    text-align: right;
    transition: all 0.26s ease;
}
.d7-group-head:hover { background: rgba(0, 229, 255, 0.08); border-color: rgba(0, 229, 255, 0.35); }
.d7-group-head .d7-group-icon {
    width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(25, 118, 210, 0.18);
    color: var(--accent-color);
}
.d7-group-head .d7-group-icon svg { width: 17px; height: 17px; }
.d7-group-head .d7-group-name { flex: 1; }
.d7-group-head .d7-group-count {
    font-size: 0.72rem; font-weight: 700; color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06); padding: 2px 8px; border-radius: 20px;
}
.d7-group-head .d7-chevron {
    width: 7px; height: 7px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.d7-group.open .d7-group-head { background: rgba(0, 229, 255, 0.08); border-color: rgba(0, 229, 255, 0.32); }
.d7-group.open .d7-chevron { transform: rotate(-135deg); border-color: var(--accent-color); }

/* الأقسام داخل الفئة */
.d7-group-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.d7-group.open .d7-group-items { max-height: 520px; }
.d7-sub-item {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px 11px 16px;
    margin: 6px 8px 0 14px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    border-right: 2px solid rgba(255, 255, 255, 0.08);
    transition: all 0.24s ease;
}
.d7-sub-item::before {
    content: '';
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--text-secondary);
    transition: all 0.24s ease;
    flex-shrink: 0;
}
.d7-sub-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-right-color: var(--accent-color);
}
.d7-sub-item:hover::before { background: var(--accent-color); box-shadow: 0 0 8px var(--accent-color); }
.d7-sub-count { margin-inline-start: auto; font-size: 0.72rem; opacity: 0.65; }

/* روابط مباشرة داخل القائمة */
.d7-drawer-link {
    display: flex; align-items: center; gap: 11px;
    padding: 13px 14px;
    border-radius: 12px;
    margin-bottom: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
    transition: all 0.26s ease;
}
.d7-drawer-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.d7-drawer-link:hover { color: #fff; background: rgba(0, 229, 255, 0.08); border-color: rgba(0, 229, 255, 0.35); }
.d7-drawer-link.is-offers { color: #ff5c5c; border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.06); }
.d7-drawer-link.is-offers:hover { color: #ff7b7b; background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.5); }
.d7-drawer-link.is-discord { color: #fff; background: rgba(88, 101, 242, 0.16); border-color: rgba(88, 101, 242, 0.45); }
.d7-drawer-link.is-discord:hover { background: rgba(88, 101, 242, 0.3); }
.d7-drawer-link.is-discord svg { fill: currentColor; }

.d7-drawer-foot {
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex; flex-direction: column; gap: 8px;
}


/* =========================================================
   صفحة المنتج — تصميم جديد (v10)
   ========================================================= */

.product-page-container { padding-top: 22px; }

/* مسار التنقل */
.pd-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap;
    font-family: 'Cairo', 'Inter', sans-serif;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
}
.pd-breadcrumb a { color: var(--text-secondary); }
.pd-breadcrumb a:hover { color: var(--accent-color); }
.pd-breadcrumb .sep { opacity: 0.4; font-size: 0.7rem; }
.pd-breadcrumb .current { color: #fff; font-weight: 700; }

/* الكارد */
.product-detail-card {
    display: grid;
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: 1120px;
    margin: 0 auto;
}
.product-detail-info-side,
.product-detail-image-side {
    background: linear-gradient(180deg, rgba(26, 35, 58, 0.45), var(--surface-dark));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
}
.product-detail-info-side {
    padding: 26px 26px 24px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.product-detail-image-side {
    position: relative;
    overflow: hidden;
    padding: 0;
    display: block;
    aspect-ratio: 4 / 5;
    align-self: start;
    height: auto;
}
.product-detail-image-side img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
    display: block;
}
@media (max-width: 900px) {
    .product-detail-card { grid-template-columns: 1fr; gap: 16px; }
    .product-detail-info-side { margin-inline-end: 0; order: 2; }
    .product-detail-image-side { order: 1; min-height: 300px; }
}

/* شارة عدد المشتريات على الصورة */
.pd-img-sales {
    position: absolute;
    bottom: 14px; left: 14px;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(6, 9, 19, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(6px);
    font-family: 'Cairo', 'Inter', sans-serif;
    font-size: 0.76rem; font-weight: 700; color: #cbd5e1;
}
.pd-img-sales svg { width: 14px; height: 14px; color: var(--accent-color); }

/* العنوان + شارة المبيعات */
.pd-title { font-size: 1.45rem; font-weight: 900; margin: 0 0 12px; line-height: 1.5; color: #fff; }
.pd-sales-badge {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 12px; border-radius: 9px;
    background: rgba(239, 68, 68, 0.09);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ff6b6b;
    font-size: 0.76rem; font-weight: 800;
    margin-bottom: 16px;
}

/* الوصف والمواصفات */
.pd-desc-block { margin-bottom: 16px; }
.pd-desc-collapse { position: relative; overflow: hidden; transition: max-height 0.35s ease; }
.pd-desc-collapse.collapsed { max-height: 215px; }
.pd-desc-collapse.collapsed::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 46px;
    background: linear-gradient(180deg, transparent, var(--surface-dark));
    pointer-events: none;
}
.pd-desc-text {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.95;
    white-space: pre-line;
    margin: 0 0 14px;
}
.pd-specs-title {
    display: flex; align-items: center; gap: 9px;
    font-size: 0.92rem; font-weight: 800; color: #fff; margin-bottom: 10px;
}
.pd-specs-title::before {
    content: '';
    width: 3px; height: 15px; border-radius: 3px;
    background: linear-gradient(180deg, var(--accent-color), var(--primary-light));
}
.pd-specs { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pd-specs li {
    display: flex; align-items: flex-start; gap: 9px;
    color: #cbd5e1; font-size: 0.88rem; line-height: 1.8;
}
.pd-specs li::before {
    content: '';
    margin-top: 8px; width: 5px; height: 5px; border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 7px rgba(0, 229, 255, 0.6);
    flex-shrink: 0;
}
.pd-more-btn {
    margin-top: 12px;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    font-family: 'Cairo', 'Inter', sans-serif;
    font-size: 0.78rem; font-weight: 700;
    padding: 6px 14px; border-radius: 20px;
    cursor: pointer; transition: all 0.26s ease;
}
.pd-more-btn:hover { color: #fff; border-color: rgba(0, 229, 255, 0.45); background: rgba(0, 229, 255, 0.08); }

/* السعر */
.pd-price-row {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 16px 0 0;
    margin: 4px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: none;
}
.pd-price { font-size: 1.7rem; font-weight: 900; color: #fff; margin: 0; display: inline-flex; align-items: center; }
.pd-old-price { font-size: 1rem; font-weight: 700; color: #6b7280; text-decoration: line-through; display: inline-flex; }

/* الكمية */
.pd-qty-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    padding: 16px 0;
}
.pd-qty-label { font-size: 0.88rem; font-weight: 700; color: var(--text-secondary); }
.pd-qty-control {
    display: flex; align-items: center;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}
.pd-qty-control button {
    width: 36px; height: 36px;
    background: transparent; border: none; color: #fff;
    font-size: 1.1rem; font-weight: 700; cursor: pointer;
    transition: background 0.22s ease;
}
.pd-qty-control button:hover { background: rgba(255, 255, 255, 0.08); color: var(--accent-color); }
.pd-qty-control input {
    width: 46px; height: 36px;
    background: transparent; border: none; outline: none;
    color: #fff; text-align: center; font-weight: 800; font-size: 0.95rem;
    -moz-appearance: textfield;
}
.pd-qty-control input::-webkit-outer-spin-button,
.pd-qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* الأزرار */
.pd-actions { margin-top: auto; display: flex; flex-direction: column; gap: 11px; }
.pd-add-to-cart {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-family: 'Cairo', 'Inter', sans-serif;
    font-size: 0.98rem; font-weight: 700;
    cursor: pointer; transition: all 0.28s ease;
    box-shadow: none;
}
.pd-add-to-cart:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.5);
    transform: none;
    box-shadow: 0 6px 18px rgba(0, 229, 255, 0.12);
}
.pd-add-to-cart svg { width: 18px; height: 18px; }
.pd-buy-now {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.55);
    color: #ff5c5c;
    font-family: 'Cairo', 'Inter', sans-serif;
    font-size: 0.98rem; font-weight: 800;
    cursor: pointer; transition: all 0.28s ease;
}
.pd-buy-now:hover { background: rgba(239, 68, 68, 0.14); box-shadow: 0 8px 20px rgba(239, 68, 68, 0.18); }
.pd-buy-now svg { width: 17px; height: 17px; }

/* ---------- تقييمات العملاء ---------- */
.pd-reviews {
    max-width: 1120px;
    margin: 46px auto 0;
    font-family: 'Cairo', 'Inter', sans-serif;
}
.pd-reviews-title {
    text-align: center;
    font-size: 1.3rem; font-weight: 900; color: #fff;
    margin-bottom: 24px;
}
.pd-review-list { display: flex; flex-direction: column; gap: 12px; max-width: 780px; margin: 0 auto; }
.pd-review-card {
    background: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 16px 18px;
}
.pd-review-head { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; }
.pd-review-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.85rem; color: #fff; flex-shrink: 0;
}
.pd-review-who { display: flex; flex-direction: column; }
.pd-review-name { font-size: 0.92rem; font-weight: 700; color: #fff; }
.pd-review-date { font-size: 0.72rem; color: var(--text-secondary); }
.pd-review-stars { margin-inline-start: auto; color: #fbbf24; font-size: 0.9rem; letter-spacing: 1px; }
.pd-review-text { color: #cbd5e1; font-size: 0.9rem; line-height: 1.8; margin: 0; }
.pd-review-empty {
    text-align: center; color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 14px; padding: 26px; font-size: 0.9rem;
}

/* نموذج إضافة تقييم */
.pd-review-form {
    max-width: 780px; margin: 16px auto 0;
    background: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 18px;
}
.pd-review-form h4 { font-size: 0.98rem; font-weight: 800; color: #fff; margin: 0 0 12px; }
.pd-stars-pick { display: flex; gap: 5px; margin-bottom: 12px; direction: ltr; }
.pd-stars-pick button {
    background: none; border: none; cursor: pointer;
    font-size: 1.35rem; line-height: 1; color: #4b5563;
    transition: color 0.2s ease, transform 0.2s ease;
}
.pd-stars-pick button:hover { transform: scale(1.15); }
.pd-stars-pick button.on { color: #fbbf24; }
.pd-review-form textarea {
    width: 100%; min-height: 84px; resize: vertical;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px; padding: 12px;
    color: #fff; font-family: inherit; font-size: 0.9rem; outline: none;
}
.pd-review-form textarea:focus { border-color: rgba(0, 229, 255, 0.45); }
.pd-review-submit {
    margin-top: 12px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border: none; color: #fff;
    font-family: inherit; font-weight: 800; font-size: 0.92rem;
    padding: 11px 26px; border-radius: 10px; cursor: pointer;
    transition: all 0.28s ease;
}
.pd-review-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(13, 71, 161, 0.4); }
.pd-review-login-hint {
    max-width: 780px; margin: 16px auto 0; text-align: center;
    color: var(--text-secondary); font-size: 0.88rem;
}
.pd-review-login-hint a { color: var(--accent-color); font-weight: 700; }


/* ---------- تحسينات الجوال للشريط العلوي (v10) ---------- */
/* التلميح لا يشغل مساحة عند الإخفاء */
.d7-tip::after { display: none; }
.d7-tip:hover::after { display: block; }

@media (max-width: 768px) {
    .nav-container { padding: 8px 14px; gap: 8px; }
    .nav-right, .nav-left { gap: 8px; }
    .logo-text { display: none; }
    .nav-logo-img { width: 30px; height: 30px; }
    .logo { gap: 0; }

    .d7-menu-btn { width: 36px; height: 36px; border-radius: 10px; gap: 3px; }
    .d7-menu-btn span { width: 16px; }
    .d7-menu-btn span:nth-child(2) { width: 11px; }

    .d7-support-btn { width: 34px; height: 34px; }
    .d7-support-btn svg { width: 18px; height: 18px; }

    .icon-btn { width: 34px; height: 34px; }
    .search-btn { width: 30px; height: 30px; }
    /* في الجوال: شريط البحث بسطر كامل تحت الأيقونات */
    .nav-container { padding: 8px 12px; flex-wrap: wrap; }
    .nav-left { flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
    .search-container { order: 3; width: 100%; }
    .search-bar,
    .search-bar:focus-within,
    .search-bar.active { width: 100%; padding: 3px 5px; }
    .search-bar #search-input { font-size: 0.85rem; }
    .search-btn { width: 30px; height: 30px; }
    .search-results-dropdown { width: 100%; }
    /* اللغة تُدار من قائمة الحساب في الجوال */
    #lang-dropdown, .settings-pill .separator { display: none; }

    .settings-pill { padding: 2px 6px; gap: 4px; }
    .dropdown-selected { font-size: 0.78rem; }

    /* نتائج البحث تأخذ عرض الشاشة تقريباً */
    .search-results-dropdown { width: calc(100vw - 28px); right: auto; left: 50%; transform: translateX(-50%); }
}
@media (max-width: 380px) {
    .settings-pill { display: none; }
}


/* =========================================================
   D7 STORE — UI UPGRADE (v11)
   ========================================================= */

/* ---------- إصلاح: القائمة الجانبية كانت تفقد position/z-index ----------
   قاعدة body > * القديمة كانت تفرض position:relative و z-index:1
   على أي عنصر يُضاف للصفحة، فتظهر القائمة أسفل الصفحة بدل أن تكون طبقة علوية */
.d7-drawer {
    position: fixed !important;
    z-index: 1300 !important;
}
.d7-drawer-backdrop {
    position: fixed !important;
    z-index: 1200 !important;
}
.wheel-modal-overlay { z-index: 9999 !important; }

/* ---------- شريط البحث ظاهر بالكامل ---------- */
.search-container { flex: 0 1 auto; }
.search-bar {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    width: 300px;
    height: 44px;
    padding: 4px 6px 4px 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 30px;
    overflow: visible;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.search-bar:hover { border-color: rgba(255, 255, 255, 0.16); }
.search-bar:focus-within,
.search-bar.active {
    width: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.07);
}
.search-bar #search-input,
.search-bar .search-input {
    flex: 1;
    width: auto;
    min-width: 0;
    opacity: 1;
    pointer-events: all;
    padding: 6px 4px;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Cairo', 'Inter', sans-serif;
    font-size: 0.9rem;
}
.search-bar #search-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.search-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border: none;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(25, 118, 210, 0.35);
}
.search-btn svg { width: 17px; height: 17px; }
.search-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-light));
    box-shadow: 0 4px 14px rgba(0, 229, 255, 0.4);
}
.search-results-dropdown { width: 100%; left: 0; right: auto; transform: none; }

/* ---------- عجلة الحظ — تصميم جديد على ثيم المتجر ---------- */
.wheel-container {
    background: radial-gradient(circle at 50% 40%, rgba(13, 71, 161, 0.28), rgba(6, 9, 19, 0.97) 65%);
    border: 1px solid rgba(0, 145, 255, 0.28);
    border-radius: 28px;
    padding: 34px 40px 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), inset 0 0 60px rgba(0, 100, 255, 0.07);
}
.wheel-container h2 {
    background: linear-gradient(90deg, #ffffff, #4fc3f7, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: d7WheelTitle 4s linear infinite;
}
@keyframes d7WheelTitle { to { background-position: 200% center; } }

/* الحلقة الخارجية المتوهجة + اللمبات */
.wheel-box {
    position: relative;
    width: 380px; height: 380px;
    margin: 0 auto 34px;
    border-radius: 50%;
    overflow: visible;
    border: none;
    background: radial-gradient(circle, #0a1628 0%, #071021 70%);
    box-shadow: none;
    padding: 22px;
}
.wheel-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #0b3d91, #1e88e5, #00b0ff, #1e88e5, #0b3d91, #1e88e5, #00b0ff, #1e88e5, #0b3d91);
    box-shadow: 0 0 34px rgba(0, 140, 255, 0.55), 0 0 80px rgba(0, 100, 255, 0.28);
    z-index: 0;
}
.wheel-box::after {
    content: '';
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    background: #060b16;
    z-index: 1;
}
/* اللمبات حول الحلقة */
.wheel-lamps {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
}
.wheel-lamp {
    position: absolute;
    top: 50%; left: 50%;
    width: 7px; height: 7px;
    margin: -3.5px;
    border-radius: 50%;
    background: #7fdcff;
    box-shadow: 0 0 8px #29b6f6, 0 0 16px rgba(41, 182, 246, 0.8);
    animation: d7Lamp 1.6s ease-in-out infinite;
}
@keyframes d7Lamp {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.28; }
}

.wheel-inner {
    position: relative;
    z-index: 2;
    width: 100%; height: 100%;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 5.8s cubic-bezier(0.16, 0.86, 0.05, 1);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.85);
}
/* خطوط فاصلة بين الشرائح */
.wheel-divider {
    position: absolute;
    top: 0; left: 50%;
    width: 1px;
    height: 50%;
    background: linear-gradient(180deg, rgba(79, 195, 247, 0.75), rgba(79, 195, 247, 0.06));
    transform-origin: 50% 100%;
    z-index: 3;
    pointer-events: none;
}
/* النصوص أفقية دائماً (لا تدور مع الشريحة) */
.wheel-slice-label {
    position: absolute;
    top: 0; left: 50%;
    width: 92px;
    height: 50%;
    margin-left: -46px;
    transform-origin: 50% 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 18px;
    gap: 1px;
    font-family: 'Cairo', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    line-height: 1.2;
    color: #cfefff;
    text-shadow: 0 0 10px rgba(0, 150, 255, 0.7), 0 1px 3px rgba(0, 0, 0, 0.9);
    z-index: 4;
    pointer-events: none;
    text-align: center;
    box-sizing: border-box;
}
.wheel-slice-label .lbl-main { color: #eaf7ff; }
.wheel-slice-label .lbl-strong {
    font-size: 1.12rem;
    font-weight: 900;
    color: #4fc3f7;
    text-shadow: 0 0 12px rgba(79, 195, 247, 0.9);
}

/* المؤشر على شكل دبوس */
.wheel-pointer {
    position: absolute;
    top: -16px; left: 50%;
    transform: translateX(-50%);
    width: 30px; height: 40px;
    border: none;
    background: transparent;
    z-index: 12;
    filter: drop-shadow(0 4px 12px rgba(0, 150, 255, 0.8));
}
.wheel-pointer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 26px; height: 26px;
    border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
    background: linear-gradient(160deg, #7fdcff, #1e88e5);
    box-shadow: 0 0 14px rgba(0, 160, 255, 0.9);
}
.wheel-pointer::after {
    content: '';
    position: absolute;
    top: 19px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 15px solid #1e88e5;
}

/* المركز: شعار المتجر */
.wheel-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 104px; height: 104px;
    border-radius: 50%;
    border: 2px solid rgba(79, 195, 247, 0.75);
    background: radial-gradient(circle at 50% 40%, #12233d, #060b16 75%);
    color: transparent;
    font-size: 0;
    cursor: pointer;
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 26px rgba(0, 140, 255, 0.6), inset 0 0 22px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    transition: all 0.3s ease;
    text-shadow: none;
}
.wheel-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/logo.png') center 34% / 52% no-repeat;
    filter: drop-shadow(0 0 10px rgba(0, 150, 255, 0.7));
    z-index: 1;
}
.wheel-btn::after {
    content: attr(data-label);
    position: absolute;
    bottom: 15px; left: 0; right: 0;
    text-align: center;
    font-family: 'Cairo', 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #7fdcff;
    text-shadow: 0 0 8px rgba(0, 150, 255, 0.9);
    z-index: 2;
}
.wheel-btn:hover {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 0 38px rgba(0, 170, 255, 0.85), inset 0 0 22px rgba(0, 0, 0, 0.9);
}
.wheel-btn:disabled {
    background: radial-gradient(circle at 50% 40%, #131722, #08101d 75%);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
    cursor: not-allowed;
    transform: translate(-50%, -50%);
    opacity: 0.75;
}
.wheel-timer {
    font-family: 'Cairo', 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #4fc3f7;
    text-shadow: 0 0 12px rgba(79, 195, 247, 0.5);
}
/* قاعدة تحت العجلة */
.wheel-base {
    width: 300px; height: 26px;
    margin: -14px auto 18px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 140, 255, 0.42), rgba(0, 100, 255, 0) 70%);
    filter: blur(1px);
}
@media (max-width: 480px) {
    .wheel-box { width: 300px; height: 300px; padding: 18px; }
    .wheel-slice-label { font-size: 0.68rem; width: 78px; margin-left: -39px; padding-top: 14px; }
    .wheel-slice-label .lbl-strong { font-size: 0.95rem; }
    .wheel-btn { width: 86px; height: 86px; }
    .wheel-container { padding: 24px 18px 30px; }
    .wheel-base { width: 230px; }
}


/* ---------- شاشة وضع الصيانة ---------- */
.d7-maintenance {
    position: fixed !important;
    inset: 0;
    z-index: 99999 !important;
    background: radial-gradient(circle at 50% 30%, rgba(13, 71, 161, 0.25), #04060d 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: 'Cairo', 'Inter', sans-serif;
    text-align: center;
}
.d7-maintenance-box {
    max-width: 540px;
    width: 100%;
    background: rgba(15, 22, 38, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
}
.d7-maint-logo { width: 76px; height: 76px; object-fit: contain; margin-bottom: 6px; }
.d7-maint-gear {
    width: 58px; height: 58px;
    margin: 10px auto 18px;
    color: var(--accent-color);
    animation: d7Spin 6s linear infinite;
}
.d7-maint-gear svg { width: 100%; height: 100%; }
@keyframes d7Spin { to { transform: rotate(360deg); } }
.d7-maintenance-box h1 { font-size: 1.55rem; font-weight: 900; color: #fff; margin: 0 0 12px; }
.d7-maintenance-box p {
    color: #cbd5e1; font-size: 1rem; line-height: 1.9; margin: 0 0 24px; white-space: pre-line;
}
.d7-maint-discord {
    display: inline-flex; align-items: center; gap: 10px;
    background: #5865F2; color: #fff;
    padding: 12px 24px; border-radius: 12px;
    font-weight: 800; font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 22px rgba(88, 101, 242, 0.35);
}
.d7-maint-discord:hover { background: #4752c4; color: #fff; transform: translateY(-2px); }
.d7-maint-discord svg { width: 22px; height: 22px; fill: currentColor; }


/* =========================================================
   D7 STORE — v12 (المخزون / التوفر)
   ========================================================= */
.product-soldout {
    position: absolute;
    inset: 10px;
    border-radius: 14px;
    background: rgba(6, 9, 19, 0.66);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}
.product-soldout span {
    font-family: 'Cairo', 'Inter', sans-serif;
    font-size: 0.86rem;
    font-weight: 800;
    color: #fff;
    background: rgba(239, 68, 68, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 7px 18px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
.product-card-modern.is-soldout .product-bg img { filter: grayscale(0.65) brightness(0.75); }
.product-cart-btn.is-disabled,
.product-cart-btn:disabled {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    cursor: not-allowed;
}
.product-cart-btn.is-disabled:hover { background: rgba(255, 255, 255, 0.02); box-shadow: none; border-color: rgba(255, 255, 255, 0.08); }

/* شارة التوفر في صفحة المنتج */
.pd-stock {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 13px; border-radius: 9px;
    font-size: 0.78rem; font-weight: 800;
    margin-bottom: 14px;
}
.pd-stock.in { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.4); color: #34d399; }
.pd-stock.out { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.45); color: #ff6b6b; }
.pd-stock::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: currentColor; box-shadow: 0 0 8px currentColor;
}
.pd-add-to-cart:disabled,
.pd-buy-now:disabled {
    opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important;
}


/* =========================================================
   D7 STORE — v13 (صفوف بأسهم + المخزون + الترجمة)
   ========================================================= */

/* صف ثابت قابل للتمرير مع أسهم */
.products-scroll-wrap { position: relative; width: 100%; }
.products-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 6px 2px 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.products-scroll::-webkit-scrollbar { display: none; }
.products-scroll > .product-card-modern { flex: 0 0 auto; }

.section-actions { display: flex; align-items: center; gap: 12px; }
.row-arrows { display: flex; align-items: center; gap: 6px; }
.row-arrow {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.26s ease;
}
.row-arrow svg { width: 16px; height: 16px; }
.row-arrow:hover {
    color: #fff;
    background: rgba(0, 229, 255, 0.12);
    border-color: rgba(0, 229, 255, 0.5);
}
.row-arrow:active { transform: scale(0.94); }
@media (max-width: 600px) {
    .row-arrows { display: none; }
    .section-header { flex-wrap: wrap; gap: 8px; }
}

/* شارة المخزون في كارد المنتج */
.product-stock-left {
    font-size: 0.74rem;
    font-weight: 700;
    color: #fbbf24;
    margin-inline-start: auto;
}


/* =========================================================
   D7 STORE — v14
   ========================================================= */

/* ---------- الإشعارات تظهر من الأعلى وعلى ثيم المتجر ---------- */
.d7-toast {
    position: fixed !important;
    top: 0;
    bottom: auto !important;
    left: 50%;
    transform: translateX(-50%) translateY(-140%);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(92vw, 460px);
    background: linear-gradient(135deg, rgba(13, 24, 45, 0.97), rgba(9, 15, 28, 0.97)) !important;
    border: 1px solid rgba(0, 229, 255, 0.35);
    color: #eaf6ff !important;
    font-family: 'Cairo', 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 13px 22px !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 999999 !important;
    opacity: 0;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    pointer-events: none;
    text-align: center;
    line-height: 1.6;
}
.d7-toast::before {
    content: '';
    width: 9px; height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}
.d7-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.d7-toast.error {
    background: linear-gradient(135deg, rgba(58, 14, 20, 0.97), rgba(30, 9, 13, 0.97)) !important;
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6) !important;
}
.d7-toast.error::before { background: #ff5c5c; box-shadow: 0 0 10px #ff5c5c; }
.d7-toast.success { border-color: rgba(16, 185, 129, 0.5); }
.d7-toast.success::before { background: #34d399; box-shadow: 0 0 10px #34d399; }

/* ---------- قائمة العملات ---------- */
#currency-options {
    min-width: 290px;
    max-height: 340px;
    overflow-y: auto;
    padding: 6px;
}
#currency-options .dropdown-option {
    display: flex !important;
    align-items: center;
    gap: 12px;
    justify-content: flex-start !important;
    padding: 9px 10px !important;
    border-radius: 10px;
    text-align: right;
}
.cur-code {
    width: 34px;
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    text-align: center;
}
.cur-names { flex: 1; min-width: 0; text-align: right; }
.cur-name-main { font-size: 0.88rem; font-weight: 700; color: #fff; white-space: nowrap; }
.cur-name-sub { font-size: 0.72rem; color: var(--text-secondary); white-space: nowrap; }
.cur-mark {
    flex-shrink: 0;
    min-width: 26px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; font-weight: 800; color: #fff;
}
.cur-mark .cur-img { height: 1em; }
#currency-options .dropdown-option:hover { background: rgba(0, 229, 255, 0.09); }

/* رمز العملة بجانب السعر */
.cur-abbr {
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0;
    opacity: 0.8;
    white-space: nowrap;
}


/* ---------- بوابة تسجيل الدخول داخل الصفحة ---------- */
.d7-login-gate {
    max-width: 480px;
    margin: 70px auto;
    text-align: center;
    background: linear-gradient(180deg, rgba(26, 35, 58, 0.45), var(--surface-dark));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 40px 30px;
    font-family: 'Cairo', 'Inter', sans-serif;
}
.d7-login-gate-icon {
    width: 62px; height: 62px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.28);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-color);
}
.d7-login-gate-icon svg { width: 28px; height: 28px; }
.d7-login-gate h2 { font-size: 1.3rem; font-weight: 900; color: #fff; margin: 0 0 10px; }
.d7-login-gate p { color: var(--text-secondary); font-size: 0.94rem; line-height: 1.8; margin: 0 0 22px; }
.d7-login-gate-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: #fff;
    font-weight: 800;
    font-size: 0.96rem;
    padding: 13px 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 22px rgba(25, 118, 210, 0.32);
}
.d7-login-gate-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(25, 118, 210, 0.45); }


/* ---------- Production polish extras ---------- */
.search-result-thumb {
    width: 48px; height: 48px;
    object-fit: contain;
    background: #0b1020;
    border-radius: 8px;
    padding: 4px;
}
.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.slide-content { max-width: min(640px, 92%); }
@media (max-width: 768px) {
    .slide-title { font-size: 1.55rem !important; line-height: 1.35; }
    .slide-subtitle { font-size: 0.92rem !important; }
    .hero-carousel { height: 320px; }
}
.wheel-auth-gate {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 8px 0 4px;
    text-align: center;
}
.wheel-auth-gate p {
    margin: 0;
    color: var(--text-secondary);
    font-weight: 700;
    line-height: 1.7;
}
.wheel-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(25,118,210,0.18);
    border: 1px solid rgba(79,195,247,0.45);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}
.store-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: #cfd8e3;
    text-decoration: none;
    font-weight: 700;
}
.store-back-btn:hover { color: #fff; border-color: rgba(79,195,247,0.4); }
.prize-empty { color: var(--text-secondary); }
.prize-card {
    background: rgba(255,255,255,0.05);
    padding: 14px;
    border-radius: 12px;
    border: 1px dashed rgba(241,196,15,0.45);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.prize-meta { font-size: 0.78rem; color: #888; margin-top: 4px; }
.prize-status {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #34d399;
}

body.auth-page .d7-announce-bar, body:has(#login-form) .d7-announce-bar { display: none !important; }

.pd-specs-title { display: none !important; }

.pd-desc-head, .pd-specs-title { display: none !important; }
