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


.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particles-bg span {
    position: absolute;
    display: block;
    width: 3px;
    height: 3px;
    background: var(--accent-purple);
    border-radius: 50%;
    animation: floatUp linear infinite;
    opacity: 0;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-10vh) scale(1.4);
        opacity: 0;
    }
}

/* ============================================================
   هدر
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 20, 0.82);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.18);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 14, 20, 0.93);
    border-bottom-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

/* ===== لوگو ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo i {
    font-size: 2rem;
    background: linear-gradient(135deg, #22d3ee, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5));
}

.logo span {
    background: linear-gradient(135deg, #c084fc, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== منوی ناوبری ===== */
.nav-links {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.93rem;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(168, 85, 247, 0.12);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--accent-cyan);
    border-radius: 3px;
    box-shadow: var(--shadow-cyan);
}

/* ===== آیکون‌های هدر ===== */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ===== آیکون سبد خرید ===== */
.cart-icon-wrap {
    position: relative;
    cursor: pointer;
    color: #fff;
    font-size: 1.3rem;
    transition: var(--transition);
    padding: 8px;
    text-decoration: none;
}

.cart-icon-wrap:hover {
    color: var(--accent-cyan);
    text-shadow: var(--shadow-cyan);
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -6px;
    background: var(--accent-pink);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.5);
}

/* ===== دکمه ورود ===== */
.btn-login {
    background: var(--gradient-btn);
    color: #fff;
    border: none;
    padding: 9px 22px;
    border-radius: 25px;
    font-weight: 600;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-login:hover {
    background: var(--gradient-btn-hover);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
}

/* ===== دکمه همبرگری ===== */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 6px;
}

/* ============================================================
   محتوای اصلی
   ============================================================ */
.main-content {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   سبد خرید کشویی
   ============================================================ */
.cart-sidebar {
    position: fixed;
    top: 0;
    left: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 2000;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.8);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(168, 85, 247, 0.25);
}

.cart-sidebar.open {
    left: 0;
}

/* ===== سایه پس‌زمینه ===== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.cart-overlay.show {
    opacity: 1;
    pointer-events: all;
}

/* ===== هدر سبد خرید ===== */
.cart-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h3 {
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-close-cart {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-close-cart:hover {
    color: var(--accent-red);
}

/* ===== آیتم‌های سبد خرید ===== */
.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-item {
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--bg-card);
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.cart-item-icon {
    font-size: 2rem;
    color: var(--accent-purple);
    width: 44px;
    text-align: center;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-info h5 {
    font-size: 0.9rem;
    color: #fff;
}

.cart-item-info .ci-price {
    font-weight: 700;
    color: var(--accent-cyan);
    font-size: 0.9rem;
}

.btn-remove-item {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-remove-item:hover {
    color: var(--accent-red);
}

/* ===== فوتر سبد خرید ===== */
.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: #fff;
}

.btn-checkout {
    width: 100%;
    background: var(--gradient-btn);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 30px;
    font-weight: 700;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-checkout:hover {
    background: var(--gradient-btn-hover);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.55);
}

/* ============================================================
   Toast (پیام‌های اعلان)
   ============================================================ */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-card);
    color: #fff;
    padding: 14px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 3000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--accent-green);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideInToast 0.4s ease-out, fadeOutToast 0.4s 1.8s ease-out forwards;
}

.toast.error {
    border-color: var(--accent-red);
}

@keyframes slideInToast {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOutToast {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* ============================================================
   بخش هیرو (Hero)
   ============================================================ */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 50px 0 40px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1 1 400px;
}

.hero-badge {
    display: inline-block;
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-purple);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #c084fc 60%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 24px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gradient-btn);
    color: #fff;
    border: none;
    padding: 13px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-family: "Vazirmatn", sans-serif;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--gradient-btn-hover);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.55);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(168, 85, 247, 0.5);
    padding: 13px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-family: "Vazirmatn", sans-serif;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-cyan);
    color: var(--accent-cyan);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1 1 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image .glow-box {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(34, 211, 238, 0.1) 40%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%,
    100% {
        box-shadow: 0 0 40px rgba(168, 85, 247, 0.3);
    }
    50% {
        box-shadow: 0 0 90px rgba(168, 85, 247, 0.6), 0 0 150px rgba(34, 211, 238, 0.2);
    }
}

.hero-image i {
    font-size: 7rem;
    background: linear-gradient(135deg, #c084fc, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.6));
    animation: floatIcon 4s ease-in-out infinite;
}

@keyframes floatIcon {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-18px);
    }
}

/* ============================================================
   بخش‌های محصولات
   ============================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 40px 0 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h2 {
    font-size: 1.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--accent-purple);
    font-size: 1.4rem;
    text-shadow: var(--shadow-neon);
}

.section-header a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.section-header a:hover {
    color: #fff;
    text-shadow: var(--shadow-cyan);
}

/* ============================================================
   دسته‌بندی‌ها
   ============================================================ */
.categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.cat-pill {
    padding: 8px 20px;
    border-radius: 25px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
    font-family: "Vazirmatn", sans-serif;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.cat-pill:hover,
.cat-pill.active {
    background: rgba(168, 85, 247, 0.18);
    color: #fff;
    border-color: var(--accent-purple);
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.2);
}

/* ============================================================
   گرید محصولات
   ============================================================ */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.game-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    min-height: 380px;
}

.game-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(168, 85, 247, 0.35);
}

game-card-img {
    height: 250px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }

.game-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card-img .no-image {
    font-size: 6rem;
    color: rgba(168, 85, 247, 0.5);
    transition: var(--transition);
}

.game-card:hover .game-card-img .no-image {
    color: var(--accent-purple);
    transform: scale(1.1);
    text-shadow: var(--shadow-neon);
}

.game-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 14px;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    flex-shrink: 0;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.tag-discount {
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.tag-discount i {
    font-size: 0.55rem;
}

.tag-featured {
    background: var(--accent-orange);
    color: #000;
}

.tag-new {
    background: var(--accent-cyan);
    color: #000;
}

.tag-hot {
    background: var(--accent-red);
    color: #fff;
}

.tag-sale {
    background: var(--accent-green);
    color: #fff;
}

.game-card-body {
    padding: 14px 16px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
    line-height: 1.4;
    min-height: 44px;
}

.game-card-body .category-tag {
    display: inline-block;
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-purple);
    padding: 1px 10px;
    border-radius: 10px;
    font-size: 0.65rem;
    margin-bottom: 4px;
    width: fit-content;
}

.game-card-body .genre {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.4;
    flex-grow: 1;
    min-height: 36px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.price {
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
}

.price .old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 400;
    margin-left: 4px;
}

.price .currency {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 400;
}

.btn-add-cart {
    background: var(--gradient-btn);
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    font-family: "Vazirmatn", sans-serif;
    font-size: 0.75rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.25);
}

.btn-add-cart:hover {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: var(--shadow-cyan);
}

.btn-add-cart i {
    font-size: 0.7rem;
}

/* ============================================================
   وضعیت‌های بارگذاری و خالی
   ============================================================ */
.loading-products {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.loading-products i {
    font-size: 3rem;
    animation: spin 1s linear infinite;
    color: var(--accent-purple);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    grid-column: 1/-1;
}

.no-products i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--accent-purple);
}

/* ============================================================
   صفحه‌بندی
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 30px 0 20px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border-radius: 25px;
    background: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    min-width: 40px;
    text-align: center;
}

.pagination a:hover {
    background: rgba(168, 85, 247, 0.15);
    color: #fff;
    border-color: rgba(168, 85, 247, 0.3);
}

.pagination .active {
    background: var(--accent-purple);
    color: #fff;
    border-color: var(--accent-purple);
}

.pagination .disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination .info {
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 8px 12px;
    background: transparent;
    border: none;
}

/* ============================================================
   بنر ویژگی‌ها
   ============================================================ */
.features-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 40px 0;
}

.feature-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: var(--shadow-card-hover);
}

.feature-item i {
    font-size: 2rem;
    color: var(--accent-purple);
    margin-bottom: 10px;
    text-shadow: var(--shadow-neon);
}

.feature-item h4 {
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.feature-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
}