/* ==========================================================================
   TechBites Games Store - Official Standalone Design System & Stylesheet
   Architected by Samir Masoud
   ========================================================================== */

:root {
    --brand-primary: #F39125;
    --brand-hover: #FF9A28;
    --brand-pressed: #D97812;
    --brand-soft: #3A2513;

    --bg-dark: #0B0B0D;
    --bg-surface: #151518;
    --bg-card: #151518;
    --bg-card-hover: #1A1A1E;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    --border-orange: rgba(243, 145, 37, 0.4);

    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;

    --text-primary: #FFFFFF;
    --text-secondary: #E5E7EB;
    --text-muted: #9CA3AF;

    --cyan-accent: #00E5FF;
    --red-accent: #FF1744;
    --green-accent: #00E676;
    --purple-accent: #A855F7;

    --font-heading: 'Outfit', 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;

    --glow-orange: 0 0 25px rgba(243, 145, 37, 0.35);
    --glow-cyan: 0 0 25px rgba(0, 229, 255, 0.35);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Reset & Scrollbar */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.5;
    min-height: 100vh;
}

::selection {
    background: var(--brand-primary);
    color: #000;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #080A0F;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-hover));
    border-radius: 4px;
}

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Navigation Header */
.navbar {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1280px;
    background: rgba(21, 21, 24, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    z-index: 1000;
    padding: 10px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--brand-primary);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.5px;
}

.brand-name .highlight {
    color: var(--brand-primary);
}

.brand-tag {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover, .nav-link.active {
    color: #000;
    background: var(--brand-primary);
    box-shadow: 0 0 15px rgba(243, 145, 37, 0.4);
}

.nav-social {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-social.github:hover { color: #22C55E; }
.nav-social.yt:hover { color: #FF1744; }
.nav-social.discord:hover { color: #5865F2; }

/* Focus Visibility & Touch Target Accessibility (WCAG AA) */
:focus-visible {
    outline: 2px solid var(--brand-primary) !important;
    outline-offset: 2px !important;
}

.mobile-toggle, .cart-qty-btn, .cart-remove-btn, .website-modal-close {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    min-height: 44px;
}

.lang-toggle-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 992px) {
    .mobile-toggle { display: inline-flex; }
    .nav-links {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        width: 100%;
        background: rgba(21, 21, 24, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 20px;
        display: none !important;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 24px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
        gap: 10px;
    }
    .nav-links.active {
        display: flex !important;
        animation: fadeInDown 0.3s ease forwards;
    }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Header */
.store-section {
    padding: 6.5rem 2rem 4rem 2rem;
    max-width: 1350px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-tag {
    display: inline-block;
    color: var(--brand-primary);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--brand-primary), #FF5252);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.rate-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
    padding: 6px 16px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 20px;
    color: #22C55E;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

/* Showcase & Spotlight */
.store-top-bar-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(21, 26, 34, 0.6);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.store-showcase-container.single-hero {
    display: block;
    width: 100%;
    margin-bottom: 24px;
}

/* Homepage Section Headers */
.homepage-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.homepage-section-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.homepage-section-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.view-all-link {
    color: var(--brand-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: var(--brand-hover);
    transform: translateX(4px);
}

.store-hero-banner {
    position: relative;
    height: 240px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(243, 145, 37, 0.4);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
}

/* Category Pills Row */
.category-pills-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.cat-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cat-pill:hover, .cat-pill.active {
    background: var(--brand-primary);
    color: #000;
    border-color: var(--brand-primary);
    box-shadow: 0 0 15px rgba(243, 145, 37, 0.4);
}

.store-hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.store-hero-banner:hover .store-hero-bg {
    transform: scale(1.03);
}

.store-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 10, 15, 0.95) 0%, rgba(8, 10, 15, 0.75) 50%, rgba(8, 10, 15, 0.3) 100%);
}

.store-hero-content {
    position: absolute;
    inset: 0;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.store-hero-badges {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hero-tag-hot {
    background: linear-gradient(135deg, #FF1744, #FF5252);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
}

.hero-tag-disc {
    background: #F39125;
    color: #000;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 4px;
}

.store-hero-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}

.store-hero-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 550px;
}

.store-hero-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.store-hero-price {
    font-size: 1.3rem;
    font-weight: 900;
    color: #00E676;
}

.store-hero-base {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.store-btn-buy {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-hover));
    color: #000;
    font-weight: 800;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.store-btn-buy:hover {
    box-shadow: 0 0 15px rgba(243, 145, 37, 0.6);
    transform: translateY(-1px);
}

.store-btn-details {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.store-btn-details:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Spotlight Cards */
.store-spotlight-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spotlight-card {
    position: relative;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.spotlight-card.red { border: 1px solid #FF1744; }
.spotlight-card.blue { border: 1px solid #00B0FF; }
.spotlight-card.green { border: 1px solid #00E676; }

.spotlight-card:hover {
    transform: translateX(4px);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.spotlight-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.spotlight-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13, 17, 23, 0.95) 0%, rgba(13, 17, 23, 0.6) 100%);
}

.spotlight-content {
    position: absolute;
    inset: 0;
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spotlight-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 3px;
    color: #000;
    align-self: flex-start;
    margin-bottom: 2px;
}

.spotlight-tag.red { background: #FF1744; color: #fff; }
.spotlight-tag.blue { background: #00B0FF; }
.spotlight-tag.green { background: #00E676; }

.spotlight-content h4 {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
}

.spotlight-content p {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Filter Bar */
.store-filter-bar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    background: rgba(13, 17, 23, 0.8);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-input-wrap .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input-wrap input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    background: rgba(21, 26, 34, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input-wrap input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 10px rgba(243, 145, 37, 0.3);
}

.filter-selects {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-selects select {
    padding: 10px 14px;
    background: rgba(21, 26, 34, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

/* Games Grid */
.store-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    min-height: 280px;
}

@media (max-width: 1200px) {
    .store-games-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .store-games-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (max-width: 480px) {
    .store-games-grid { grid-template-columns: 1fr; }
}

.store-loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.store-loading-spinner i {
    font-size: 2.5rem;
    color: var(--brand-primary);
    margin-bottom: 12px;
}

/* Game Card (SRE Zero-CLS Structured Layout) */
.website-game-card {
    background: #151518;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.website-game-card:hover {
    box-shadow: 0 12px 35px rgba(243, 145, 37, 0.3);
}

.game-card-thumb-wrap {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.game-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.website-game-card:hover .game-card-thumb {
    transform: scale(1.06);
}

.game-card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 6px;
}

.card-badge-hot {
    background: linear-gradient(135deg, #FF1744, #FF5252);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
}

.card-badge-disc {
    background: #F39125;
    color: #000;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 3px;
}

.game-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.game-card-cat {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.game-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-card-price-wrap {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.deal-price-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
}

.price-deal-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-original-egp {
    font-size: 0.78rem;
    color: #FF1744;
    text-decoration: line-through;
    font-weight: 700;
    opacity: 0.85;
}

.game-card-price-egp {
    font-size: 1.15rem;
    font-weight: 900;
    color: #00E676;
}

.game-card-price-usd {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.game-card-actions {
    display: flex;
    gap: 8px;
}

.card-btn-buy {
    flex: 1;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-hover));
    color: #000;
    font-weight: 800;
    border: none;
    padding: 8px 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.card-btn-buy:hover {
    box-shadow: 0 0 12px rgba(243, 145, 37, 0.5);
}

.card-btn-details {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.card-btn-details:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal Overlay */
.website-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.website-modal-overlay.active {
    display: flex;
}

.website-modal-card {
    background: #0D1117;
    border: 1px solid var(--brand-primary);
    box-shadow: 0 0 35px rgba(243, 145, 37, 0.3);
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    color: #fff;
}

.website-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.website-modal-close:hover {
    background: #FF1744;
}

.modal-game-hero {
    position: relative;
    height: 220px;
}

.modal-game-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-game-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.2) 0%, rgba(13, 17, 23, 1) 100%);
}

.modal-game-header-info {
    position: absolute;
    bottom: 16px;
    left: 20px;
    right: 20px;
}

.modal-game-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
}

.modal-game-body-content {
    padding: 20px;
}

.modal-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(21, 26, 34, 0.9);
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.modal-price-val {
    font-size: 1.5rem;
    font-weight: 900;
    color: #00E676;
}

.modal-order-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

/* Footer */
.footer {
    background: #080A0F;
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
}

.footer-container {
    max-width: 1350px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr; }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-brand img {
    width: 36px;
    height: 36px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links-group h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: #fff;
}

.footer-links-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-links-group a:hover {
    color: var(--brand-primary);
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
}

[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .floating-whatsapp-btn {
    right: 24px;
    left: auto;
}

[dir="rtl"] .social-proof-popup {
    right: 24px;
    left: auto;
}

[dir="rtl"] #toast-notification {
    left: 24px;
    right: auto;
}

/* Lazy Loading Load More Styles */
.load-more-container {
    text-align: center;
    margin-top: 35px;
    margin-bottom: 20px;
}

.btn-load-more {
    background: rgba(21, 26, 34, 0.9);
    border: 1px solid var(--brand-primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(243, 145, 37, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-load-more:hover {
    background: var(--brand-primary);
    color: #000;
    box-shadow: 0 0 25px rgba(243, 145, 37, 0.6);
    transform: translateY(-2px);
}


/* In-Game Screenshots Gallery Styles */
.game-screenshots-gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.main-screenshot-viewer {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 380px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #080A0F;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}

.main-screenshot-viewer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.main-screenshot-viewer:hover img {
    transform: scale(1.02);
}

.screenshot-thumbnails-row {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
}

.screenshot-thumbnails-row::-webkit-scrollbar {
    height: 4px;
}

.screenshot-thumbnails-row::-webkit-scrollbar-thumb {
    background: var(--brand-primary);
    border-radius: 2px;
}

.gallery-thumb {
    width: 110px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.65;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.gallery-thumb:hover, .gallery-thumb.active {
    opacity: 1;
    border-color: var(--brand-primary);
    box-shadow: 0 0 12px rgba(243, 145, 37, 0.4);
}

/* Lightbox Modal */
.screenshot-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.screenshot-lightbox-overlay.active {
    display: flex;
}

.lightbox-img-holder {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox-img-holder img {
    width: 100%;
    height: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--brand-primary);
    box-shadow: 0 0 40px rgba(243, 145, 37, 0.3);
}

.lightbox-close-btn {
    position: absolute;
    top: -20px;
    right: -20px;
    background: #FF1744;
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.5);
}


/* Nav Cart Badge */
.nav-cart-btn {
    position: relative;
}

.cart-badge {
    background: #FF1744;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 12px;
    margin-left: 4px;
}

/* Toast Notifications */
.toast-notification,
#toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #151518;
    border: 1px solid var(--brand-primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: 14px;
    box-shadow: 0 0 25px rgba(243, 145, 37, 0.4);
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 999999;
    display: none !important;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.toast-notification.active,
#toast-notification.active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dedicated Game Details Page Styles */
.game-details-main {
    padding: 6.5rem 2rem 4rem 2rem;
    max-width: 1250px;
    margin: 0 auto;
    min-height: 80vh;
}

.game-page-loading {
    text-align: center;
    padding: 100px 0;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.game-page-loading i {
    font-size: 3rem;
    color: var(--brand-primary);
    margin-bottom: 16px;
}

.game-details-hero-box {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-orange);
    box-shadow: 0 0 35px rgba(243, 145, 37, 0.2);
    margin-bottom: 30px;
    height: 300px;
    max-height: 320px;
}

.details-hero-bg-img {
    width: 100%;
    height: 100%;
    max-height: 320px;
    object-fit: cover;
}

.details-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 10, 15, 0.3) 0%, rgba(8, 10, 15, 0.95) 100%);
}

.details-hero-content-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    display: flex;
    gap: 24px;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .details-hero-content-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}

.details-cover-img {
    width: 140px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--brand-primary);
    box-shadow: 0 0 20px rgba(243, 145, 37, 0.4);
}

.details-header-meta h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 900;
    color: #fff;
    margin: 6px 0;
}

.details-badge-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.meta-pill.orange {
    background: rgba(243, 145, 37, 0.15);
    border-color: #F39125;
    color: #F39125;
}

.details-grid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.details-content-column {
    min-width: 0;
    width: 100%;
}

.details-sidebar-column {
    min-width: 0;
    width: 100%;
}

@media (max-width: 992px) {
    .details-grid-layout { 
        grid-template-columns: 1fr; 
    }
}

.details-block {
    background: rgba(13, 17, 23, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.details-block h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 14px;
}

.price-sidebar-card {
    background: rgba(21, 26, 34, 0.95);
    border: 1px solid var(--brand-primary);
    box-shadow: 0 0 30px rgba(243, 145, 37, 0.25);
    border-radius: 14px;
    padding: 24px;
    position: sticky;
    top: 90px;
}

.sidebar-egp-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: #00E676;
}

.sidebar-usd-base {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.btn-add-cart {
    width: 100%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-hover));
    color: #000;
    font-weight: 900;
    border: none;
    padding: 12px 0;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    box-shadow: 0 0 20px rgba(243, 145, 37, 0.6);
}

.btn-direct-whatsapp {
    width: 100%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    font-weight: 800;
    border: none;
    padding: 12px 0;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-direct-whatsapp:hover {
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.spec-item {
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-item span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.spec-item strong {
    font-size: 0.9rem;
    color: #fff;
}

/* Shopping Cart Page Styles */
.cart-page-main {
    padding: 6.5rem 2rem 4rem 2rem;
    max-width: 1250px;
    margin: 0 auto;
    min-height: 80vh;
}

.cart-header-box {
    margin-bottom: 24px;
}

.cart-header-box h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
}

.cart-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .cart-layout-grid { grid-template-columns: 1fr; }
}

.cart-item-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(13, 17, 23, 0.9);
    border: 1px solid var(--border-color);
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.cart-item-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

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

.cart-item-info h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 2px;
}

.cart-item-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cart-qty-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 8px;
    border-radius: 6px;
}

.cart-qty-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    width: 24px;
    height: 24px;
}

.cart-item-price {
    font-size: 1.1rem;
    font-weight: 900;
    color: #00E676;
    min-width: 100px;
    text-align: right;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #FF1744;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 6px;
}

.cart-summary-card {
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
}

.cart-summary-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.summary-divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 14px 0;
}

.total-row {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
}

.total-egp-price {
    color: #00E676;
    font-size: 1.5rem;
}

.checkout-methods-box {
    margin: 20px 0;
}

.methods-title {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.checkout-btn {
    width: 100%;
    padding: 12px 0;
    border-radius: 8px;
    font-weight: 900;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
}

.whatsapp-btn:hover {
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}

.instapay-info-card {
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.instapay-head {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 4px;
}

.instapay-link {
    display: inline-block;
    color: #00E676;
    text-decoration: none;
    margin-top: 6px;
    font-weight: 700;
}

.clear-cart-btn {
    width: 100%;
    background: rgba(255, 23, 68, 0.1);
    color: #FF1744;
    border: 1px solid rgba(255, 23, 68, 0.3);
    padding: 8px 0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

/* Floating WhatsApp Live Support Button */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 99999;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
}

.floating-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 35px rgba(37, 211, 102, 0.8);
}

/* Social Proof Recent Purchase Notification Popup */
.social-proof-popup {
    position: fixed;
    bottom: 84px;
    left: 24px;
    z-index: 99998;
    background: rgba(19, 24, 34, 0.95);
    border: 1px solid var(--brand-primary);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 10px 16px;
    display: none;
    align-items: center;
    gap: 12px;
    box-shadow: 0 0 20px rgba(243, 145, 37, 0.3);
    max-width: 320px;
    animation: slideInUp 0.4s ease;
}

.social-proof-popup.active {
    display: flex;
}

.social-proof-img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
}

.social-proof-text {
    font-size: 0.8rem;
    color: #fff;
    line-height: 1.3;
}

.social-proof-text strong {
    color: var(--brand-primary);
}

.social-proof-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Flash Deals Timer Bar */
.flash-deals-timer-bar {
    background: linear-gradient(90deg, rgba(255,23,68,0.15), rgba(243,145,37,0.15));
    border: 1px solid rgba(255, 23, 68, 0.3);
    border-radius: 12px;
    padding: 10px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.timer-box {
    display: flex;
    gap: 8px;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: #FF1744;
}

.clear-cart-btn:hover {
    background: rgba(255, 23, 68, 0.2);
}

/* Quick Search & Category Bar */
.homepage-quick-bar {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.quick-category-pills {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.quick-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.quick-pill:hover, .quick-pill.active {
    background: var(--brand-primary);
    color: #000;
    border-color: var(--brand-primary);
    box-shadow: 0 0 15px rgba(243, 145, 37, 0.3);
}

/* Trust & User Guarantees Bar */
.trust-features-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0 36px 0;
    background: rgba(21, 26, 34, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 20px 24px;
}

@media (max-width: 992px) {
    .trust-features-bar { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 576px) {
    .trust-features-bar { grid-template-columns: 1fr; }
}

.trust-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trust-icon {
    font-size: 1.8rem;
}

.trust-feature-item strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.trust-feature-item span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Customer Verified Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 992px) {
    .reviews-grid { grid-template-columns: 1fr; }
}

.review-card {
    background: #151518;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.review-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.review-stars {
    color: #FFD700;
    font-size: 1.1rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 18px;
}

.review-author strong {
    display: block;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
}

.review-author span {
    font-size: 0.75rem;
    color: var(--brand-primary);
    font-weight: 700;
}



