/* =========================================
   FullBux E-commerce Store Styles
   Purple Theme - RTL Arabic Support
   ========================================= */

/* CSS Variables */
:root {
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --primary-light: #A78BFA;
    --primary-glow: rgba(139, 92, 246, 0.4);
    --secondary: #6D28D9;
    --accent: #C4B5FD;

    --bg-dark: #0F0A1A;
    --bg-card: rgba(30, 20, 50, 0.8);
    --bg-glass: rgba(139, 92, 246, 0.1);

    --text-primary: #FFFFFF;
    --text-secondary: #C4B5FD;
    --text-muted: #9CA3AF;

    --border-color: rgba(139, 92, 246, 0.3);
    --shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
    --shadow-lg: 0 20px 60px rgba(139, 92, 246, 0.3);

    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Cairo', sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(109, 40, 217, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* =========================================
   Header Styles
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-light), var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.cart-btn {
    position: relative;
    padding: 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.cart-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
}

.cart-icon {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

.cart-count {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px var(--primary-glow);
}

/* =========================================
   Cart Sidebar Styles
   ========================================= */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-dark);
    border-right: 1px solid var(--border-color);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: var(--transition);
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
}

.close-cart {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.close-cart svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

.close-cart:hover {
    background: rgba(239, 68, 68, 0.2);
}

.close-cart:hover svg {
    color: #EF4444;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
}

.empty-cart svg {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-cart p {
    font-size: 1.1rem;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 15px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-card);
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-light);
    font-weight: 700;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.qty-value {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.remove-item {
    color: var(--text-muted);
    transition: var(--transition);
    padding: 5px;
}

.remove-item:hover {
    color: #EF4444;
}

.remove-item svg {
    width: 18px;
    height: 18px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: rgba(15, 10, 26, 0.95);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* =========================================
   Hero Banner Styles
   ========================================= */
.hero-banner {
    margin-top: 70px;
    overflow: hidden;
    background: var(--bg-dark);
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

.banner-placeholder {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-glass), var(--bg-card));
    border: 3px dashed var(--border-color);
}

.banner-placeholder .placeholder-text {
    font-size: 1.5rem;
}

/* =========================================
   Section Styles
   ========================================= */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* =========================================
   Game Banner Styles
   ========================================= */
.game-banner-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--bg-glass), var(--bg-card));
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
    /* Fix for fixed header */
}

.game-banner-placeholder img.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.game-banner-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(15, 10, 26, 0.3), rgba(15, 10, 26, 0.9));
    z-index: 1;
}

.game-banner-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(45deg, var(--border-color) 25%, transparent 25%),
        linear-gradient(-45deg, var(--border-color) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--border-color) 75%),
        linear-gradient(-45deg, transparent 75%, var(--border-color) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

/* Hide pattern if image is present */
.game-banner-placeholder:has(img) ::before {
    display: none;
}

.placeholder-content {
    text-align: center;
    z-index: 2;
    padding: 20px;
    background: rgba(15, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px dashed var(--primary);
}

.placeholder-content h2 {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 10px;
}

.placeholder-content span {
    display: block;
    color: var(--text-muted);
    font-family: monospace;
    font-size: 1.1rem;
    direction: ltr;
}

.game-banner-content {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
}

.game-banner-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.game-banner-content .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    transition: var(--transition);
}

.game-banner-content .back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.game-banner-content .back-link svg {
    width: 18px;
    height: 18px;
}

/* =========================================
   Products Grid
   ========================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--bg-glass), var(--bg-card));
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder {
    width: 80px;
    height: 80px;
    color: var(--primary);
    opacity: 0.5;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.add-to-cart svg {
    width: 20px;
    height: 20px;
}

/* Placeholder Box Styles */
.placeholder-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-glass), var(--bg-card));
    border: 2px dashed var(--border-color);
}

.placeholder-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.6;
}

/* =========================================
   Games Grid
   ========================================= */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.game-card {
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.9), rgba(20, 15, 35, 0.95));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.game-image {
    width: 100px;
    height: 100px;
    min-width: 100px;
    background: linear-gradient(135deg, var(--bg-glass), var(--bg-card));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 15px;
    border-radius: var(--radius);
    border: 2px dashed var(--border-color);
}

.game-image.placeholder-box {
    border: 2px dashed var(--border-color);
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-placeholder {
    width: 60px;
    height: 60px;
    color: var(--primary);
    opacity: 0.5;
}

.game-info {
    flex: 1;
    padding: 20px;
    padding-right: 10px;
    text-align: right;
}

.game-name {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.game-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* =========================================
   Store Name Banner
   ========================================= */
.store-name-banner {
    overflow: hidden;
    background: var(--bg-dark);
}

.store-banner-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
}

/* =========================================
   Footer Styles
   ========================================= */
.footer {
    background: rgba(15, 10, 26, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section {
    text-align: center;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
    width: 100%;
    max-width: 220px;
    justify-content: center;
}

.footer-link svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.footer-link.whatsapp {
    background: #25D366;
    color: white;
}

.footer-link.whatsapp:hover {
    transform: translateY(-3px);
}

.footer-link.discord {
    background: #5865F2;
    color: white;
}

.footer-link.discord:hover {
    background: #5865F2;
    transform: translateY(-3px);
}

.footer-link.tiktok {
    background: black;
    color: white;
}

.footer-link.tiktok:hover {
    background: black;
    transform: translateY(-3px);
}

.footer-copyright {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-copyright p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Legacy support for old footer classes */
.footer-contact {
    margin-bottom: 30px;
}

.footer-contact h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--transition);
}

.contact-link svg {
    width: 24px;
    height: 24px;
}

.contact-link.whatsapp {
    background: #25D366;
    color: white;
}

.contact-link.whatsapp:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.contact-link.discord {
    background: #5865F2;
    color: white;
}

.contact-link.discord:hover {
    background: #4752C4;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

.contact-link.tiktok {
    background: linear-gradient(135deg, #000000, #25F4EE);
    color: white;
}

.contact-link.tiktok:hover {
    background: linear-gradient(135deg, #FE2C55, #000000);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(254, 44, 85, 0.3);
}

/* =========================================
   Page Header (for inner pages)
   ========================================= */
.page-header {
    padding: 120px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-dark), var(--secondary) 150%);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;

    /* =========================================
   Chat Bot Page Styles
   ========================================= */
    .chat-page {
        background: #000;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        position: relative;
    }

    .chat-background {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15), transparent 70%);
        z-index: -1;
    }

    .chat-header {
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10;
    }

    .back-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--text-muted);
        font-weight: 600;
        padding: 8px 16px;
        border-radius: 50px;
        transition: var(--transition);
    }

    .back-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--text-primary);
    }

    .back-btn svg {
        width: 20px;
        height: 20px;
    }

    .chat-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 700;
        color: var(--text-primary);
    }

    .ai-badge {
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        color: white;
        padding: 4px 10px;
        border-radius: 12px;
        font-size: 0.8rem;
        font-weight: 800;
    }

    .chat-container {
        flex: 1;
        max-width: 800px;
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        padding: 80px 20px 20px;
        position: relative;
    }

    .chat-intro {
        text-align: center;
        margin-bottom: auto;
        padding-top: 10vh;
        transition: opacity 0.5s ease;
    }

    .chat-intro h1 {
        font-size: 3rem;
        font-weight: 900;
        background: linear-gradient(to right, #fff, #a5b4fc);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 10px;
    }

    .chat-intro p {
        color: var(--text-muted);
        font-size: 1.2rem;
    }

    .chat-intro.hidden {
        display: none;
    }

    .messages-area {
        flex: 1;
        overflow-y: auto;
        padding: 20px 0;
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
        scrollbar-width: none;
        /* Firefox */
    }

    .messages-area::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .message {
        max-width: 80%;
        padding: 15px 20px;
        border-radius: 20px;
        line-height: 1.6;
        position: relative;
        animation: fadeInMessage 0.3s ease;
    }

    @keyframes fadeInMessage {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .message.user {
        align-self: flex-start;
        /* RTL: User on right */
        background: var(--bg-glass);
        border: 1px solid var(--border-color);
        border-bottom-right-radius: 4px;
        color: var(--text-primary);
    }

    .message.bot {
        align-self: flex-end;
        /* RTL: Bot on left */
        background: transparent;
        color: var(--text-secondary);
        padding-left: 0;
        border-bottom-left-radius: 4px;
    }

    .chat-input-container {
        margin-top: auto;
    }

    .suggestions {
        display: flex;
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 20px;
    }

    .chip {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border-color);
        color: var(--text-secondary);
        padding: 8px 16px;
        border-radius: 50px;
        font-size: 0.9rem;
        cursor: pointer;
        transition: var(--transition);
    }

    .chip:hover {
        background: rgba(139, 92, 246, 0.2);
        border-color: var(--primary);
        color: white;
    }

    .input-wrapper {
        background: rgba(30, 20, 50, 0.6);
        backdrop-filter: blur(20px);
        border: 1px solid var(--border-color);
        border-radius: 50px;
        padding: 8px;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: var(--transition);
    }

    .input-wrapper:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
        background: rgba(30, 20, 50, 0.9);
    }

    .input-wrapper input {
        flex: 1;
        background: transparent;
        border: none;
        padding: 12px 20px;
        color: white;
        font-size: 1rem;
        font-family: inherit;
        outline: none;
    }

    .send-btn {
        background: var(--primary);
        color: white;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        cursor: pointer;
        transition: var(--transition);
    }

    .send-btn:hover {
        background: var(--primary-dark);
        transform: scale(1.05);
    }

    .send-btn:disabled {
        background: var(--bg-glass);
        cursor: not-allowed;
        opacity: 0.5;
    }

    /* Floating Entry Button */
    .floating-chat-btn {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
        cursor: pointer;
        transition: var(--transition);
        z-index: 999;
        color: white;
    }

    .floating-chat-btn:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
    }

    .floating-chat-btn svg {
        width: 28px;
        height: 28px;
    }

    /* Typing Indicator */
    .typing-indicator {
        display: flex;
        gap: 4px;
        padding: 10px;
    }

    .typing-dot {
        width: 8px;
        height: 8px;
        background: var(--primary);
        border-radius: 50%;
        animation: typing 1.4s infinite ease-in-out;
    }

    .typing-dot:nth-child(1) {
        animation-delay: 0s;
    }

    .typing-dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .typing-dot:nth-child(3) {
        animation-delay: 0.4s;
    }

    @keyframes typing {

        0%,
        100% {
            transform: translateY(0);
            opacity: 0.5;
        }

        50% {
            transform: translateY(-5px);
            opacity: 1;
        }
    }
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    position: relative;
    z-index: 1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 15px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.back-link:hover {
    color: var(--text-primary);
}

.back-link svg {
    width: 20px;
    height: 20px;
}

/* =========================================
   Checkout Page Styles
   ========================================= */
.checkout-section {
    padding: 40px 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

/* =========================================
   Order Summary - Improved Design
   ========================================= */
.order-summary {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.order-summary h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(168, 85, 247, 0.2);
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-summary h2::before {
    content: '🛒';
    font-size: 1.3rem;
    -webkit-text-fill-color: initial;
}

/* Summary Items */
.summary-items {
    margin-bottom: 20px;
}

.summary-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateX(-4px);
}

.summary-item>span:first-child {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Item quantity badge */
.summary-item span[style*="color: var(--primary)"],
.summary-item span[style*="color:var(--primary)"] {
    background: rgba(168, 85, 247, 0.2) !important;
    color: #a855f7 !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600 !important;
    font-size: 0.85rem;
    display: inline-block;
    margin-right: 8px;
}

/* Item price */
.summary-item>span:last-child {
    font-size: 1.1rem;
    font-weight: 700 !important;
    color: #a855f7 !important;
    white-space: nowrap;
}

/* Divider */
.summary-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.3), transparent);
    margin: 24px 0;
    border: none;
}

/* Summary Totals */
.summary-totals {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Subtotal Row */
.summary-row:first-child:not(.discount):not(.total) {
    color: rgba(255, 255, 255, 0.7);
}

.summary-row:first-child:not(.discount):not(.total) span:first-child::before {
    content: '📦 ';
    margin-left: 6px;
}

/* Discount Row */
.summary-row.discount {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 12px 16px !important;
    color: #10b981;
    font-weight: 600;
    margin: 4px 0;
}

.summary-row.discount span:first-child::before {
    content: '🎫 ';
    margin-left: 6px;
}

.summary-row.discount #discountCodeDisplay {
    background: rgba(16, 185, 129, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 6px;
    color: #10b981;
}

.summary-row.discount #discountAmount {
    color: #10b981;
    font-weight: 700;
}

/* Total Row */
.summary-row.total {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.2));
    border: 2px solid rgba(168, 85, 247, 0.4);
    border-radius: 12px;
    padding: 16px 20px !important;
    margin-top: 8px;
    font-size: 1.3rem;
    font-weight: 800;
}

.summary-row.total span:first-child::before {
    content: '💰 ';
    margin-left: 6px;
}

.summary-row.total #finalTotal {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.order-item:last-of-type {
    border-bottom: none;
}

.order-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.order-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    object-fit: cover;
}

.order-item-name {
    font-weight: 600;
}

.order-item-qty {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.order-item-price {
    font-weight: 700;
    color: var(--primary-light);
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
    font-size: 1.3rem;
    font-weight: 800;
}

/* =========================================
   Checkout Form
   ========================================= */
.checkout-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 25px;
}

.checkout-form h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group label .required {
    color: #EF4444;
}

.form-group input {
    width: 100%;
    padding: 15px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.payment-methods {
    margin-bottom: 25px;
}

.payment-methods h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.payment-option:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-option:has(input:checked) {
    background: rgba(139, 92, 246, 0.2);
    border-color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.payment-content {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.payment-option input:checked+.payment-content::before {
    content: '';
    width: 20px;
    height: 20px;
    background: #a855f7;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    margin-left: 10px;
    flex-shrink: 0;
}

.payment-option .payment-content::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin-left: 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.payment-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

/* =========================================
   Coupon Section - Improved
   ========================================= */
.coupon-section {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.coupon-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.coupon-input-group {
    display: flex;
    gap: 10px;
}

.coupon-input-group input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.coupon-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.coupon-input-group button {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.coupon-input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.coupon-message {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.coupon-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.coupon-message.success::before {
    content: '✓ ';
    margin-left: 6px;
}

.coupon-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.coupon-message.error::before {
    content: '✕ ';
    margin-left: 6px;
}

/* =========================================
   Submit Button
   ========================================= */
.submit-order {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.submit-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.submit-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* =========================================
   About & Reviews Pages
   ========================================= */
.about-section,
.reviews-section {
    padding: 60px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--primary-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    color: var(--primary-light);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 25px;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.review-author {
    font-weight: 700;
}

.review-stars {
    color: #FBBF24;
    font-size: 1.1rem;
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* =========================================
   Confirmation Page
   ========================================= */
.confirmation-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.confirmation-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    animation: slideUp 0.5s ease;
}

.confirmation-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px var(--primary-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 40px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 60px var(--primary-glow);
    }
}

.confirmation-icon svg {
    width: 50px;
    height: 50px;
    color: white;
}

.confirmation-card h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.confirmation-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius);
    transition: var(--transition);
    margin-bottom: 20px;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn svg {
    width: 24px;
    height: 24px;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition);
}

.back-to-home:hover {
    color: var(--primary);
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
    }

    .nav {
        gap: 15px;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .store-name {
        font-size: 3rem;
        letter-spacing: -2px;
    }

    .cart-sidebar {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.4rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-image {
        height: 180px;
    }

    .store-name {
        font-size: 2.5rem;
    }

    .confirmation-card {
        padding: 30px 20px;
    }
}

/* =========================================
   Authentication Styles
   ========================================= */

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
}

.user-avatar-link {
    display: block;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    transition: var(--transition);
}

.user-avatar:hover {
    border-color: var(--primary-light);
    transform: scale(1.1);
}

.login-btn-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.login-btn-header:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.login-btn-header svg {
    width: 18px;
    height: 18px;
}

/* Login Modal */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.login-modal {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    background: rgba(239, 68, 68, 0.2);
}

.close-modal svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

.login-modal-content {
    text-align: center;
}

.login-icon {
    width: 80px;
    height: 80px;
    color: var(--primary);
    margin-bottom: 20px;
}

.login-modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.login-modal-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Google Login Button */
.google-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 30px;
    background: white;
    color: #333;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius);
    transition: var(--transition);
    width: 100%;
}

.google-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.google-login-btn svg {
    width: 24px;
    height: 24px;
}

/* Account Page Styles */
.account-section {
    padding: 40px 0;
}

.not-logged-in,
.login-prompt {
    text-align: center;
    padding: 60px 20px;
}

.login-prompt svg {
    width: 100px;
    height: 100px;
    color: var(--primary);
    margin-bottom: 25px;
}

.login-prompt h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.login-prompt p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Profile Card */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.profile-picture {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary);
}

.profile-info {
    flex: 1;
    min-width: 200px;
}

.profile-info h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.profile-info p {
    color: var(--text-muted);
}

.logout-btn {
    padding: 12px 25px;
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border-radius: var(--radius);
    font-weight: 700;
    transition: var(--transition);
}

.logout-btn:hover {
    background: #EF4444;
    color: white;
}

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: var(--radius);
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
}

.admin-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.admin-link svg {
    stroke: currentColor;
}

/* Orders Section */
.orders-section {
    margin-top: 20px;
}

.orders-section .section-title {
    text-align: right;
    margin-bottom: 25px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.loading-orders,
.no-orders {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.loading-orders .spinner,
.no-orders svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.spinner {
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.shop-now-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: var(--radius);
    font-weight: 700;
    transition: var(--transition);
}

.shop-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* Order Card */
.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border-color);
}

.order-id {
    font-weight: 700;
    color: var(--primary-light);
}

.order-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

.status-processing {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}

.status-completed {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.order-items {
    padding: 20px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.order-item-row:last-child {
    border-bottom: none;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-glass);
    border-top: 1px solid var(--border-color);
}

.order-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.order-total {
    font-weight: 700;
    color: var(--primary-light);
}

/* Responsive */
@media (max-width: 768px) {
    .header-actions {
        gap: 10px;
    }

    .login-btn-header span {
        display: none;
    }

    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    .profile-info {
        text-align: center;
    }
}

/* Robux Calculator Styles */
.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.calc-card {
    background: rgba(13, 13, 13, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.calc-card:hover {
    transform: translateY(-5px);
    border-color: #8b5cf6;
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.2);
}

.calc-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.calc-title svg {
    color: #a78bfa;
    width: 24px;
    height: 24px;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: #c7d2fe;
    font-weight: 700;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 10, 20, 0.8);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: #a78bfa;
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.currency-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.currency-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(139, 92, 246, 0.2);
    color: #c7d2fe;
    border-radius: 15px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-family: inherit;
}

.currency-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8b5cf6;
    transform: translateY(-3px);
}

.currency-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary-light);
    color: white;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.result {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #a78bfa;
}

.result .total-display {
    display: block;
    margin-top: 10px;
    font-size: 1.3rem;
    color: #fff;
}

.add-calc-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--primary-glow);
}

.add-calc-btn svg {
    width: 20px;
    height: 20px;
}

/* Tax Calculator Specific */
.tax-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tax-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(139, 92, 246, 0.2);
    color: #c7d2fe;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-family: inherit;
}

.tax-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8b5cf6;
    transform: translateY(-3px);
}

.tax-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary-light);
    color: white;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.tax-btn svg {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
}

/* =========================================
   Chat Bot Page Styles
   ========================================= */
.chat-page {
    background: #000;
    min-height: 100vh;
    display: flex;
    display: flex;
    flex-direction: column;
    /* overflow: hidden; Removed to allow scrolling */
    position: relative;
}

.chat-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15), transparent 70%);
    z-index: -1;
}

.chat-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    /* Changed from absolute to fixed */
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    /* Added background for visibility */
    backdrop-filter: blur(10px);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    transition: var(--transition);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.back-btn svg {
    width: 20px;
    height: 20px;
}

.chat-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-primary);
}

.ai-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 800;
}

.chat-container {
    flex: 1;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 80px 20px 20px;
    position: relative;
}

.chat-intro {
    text-align: center;
    margin-bottom: auto;
    padding-top: 10vh;
    transition: opacity 0.5s ease;
}

.chat-intro h1 {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.chat-intro p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.chat-intro.hidden {
    display: none;
}

.messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
    /* scrollbar-width: none; Removed to allow scrolling */
}

/* Custom Scrollbar for Messages Area */
.messages-area::-webkit-scrollbar {
    width: 6px;
}

.messages-area::-webkit-scrollbar-track {
    background: transparent;
}

.messages-area::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 10px;
}

.messages-area::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.6);
}

.message {
    max-width: 80%;
    padding: 15px 20px;
    border-radius: 20px;
    line-height: 1.6;
    position: relative;
    animation: fadeInMessage 0.3s ease;
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    align-self: flex-start;
    /* RTL: User on right */
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-bottom-right-radius: 4px;
    color: var(--text-primary);
}

.message.bot {
    align-self: flex-end;
    /* RTL: Bot on left */
    background: transparent;
    color: var(--text-secondary);
    padding-left: 0;
    border-bottom-left-radius: 4px;
}

.chat-input-container {
    margin-top: auto;
}

.suggestions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.chip:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary);
    color: white;
}

.input-wrapper {
    background: rgba(30, 20, 50, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    background: rgba(30, 20, 50, 0.9);
}

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.send-btn {
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.send-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.send-btn:disabled {
    background: var(--bg-glass);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Floating Entry Button */
.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
    cursor: pointer;
    transition: var(--transition);
    z-index: 999;
    color: white;
}

.floating-chat-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
}

.floating-chat-btn svg {
    width: 28px;
    height: 28px;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* Coupon Section Styles */
.coupon-section {
    margin: 20px 0;
    padding: 20px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px dashed rgba(139, 92, 246, 0.3);
    border-radius: 12px;
}

.coupon-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.coupon-input-group {
    display: flex;
    gap: 10px;
}

.coupon-input-group input {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.coupon-input-group input:focus {
    outline: none;
    border-color: #a855f7;
    background: rgba(255, 255, 255, 0.08);
}

.coupon-input-group button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #7214ca, #4a0c83);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coupon-input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.coupon-message {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 20px;
}

.coupon-message.success {
    color: #34d399;
}

.coupon-message.error {
    color: #f87171;
}

/* Top Notification Bar */
.top-notification-bar {
    background: linear-gradient(90deg, #7c3aed, #db2777);
    color: white;
    padding: 10px 0;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    /* Higher than header (1000) */
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
}

.top-notification-bar p {
    margin: 0;
}

/* Adjust layout when top bar is present */
body.has-top-bar .header {
    top: 41px;
    /* Height of top bar approx */
}

body.has-top-bar .cart-sidebar {
    top: 41px;
    height: calc(100vh - 41px);
}

body.has-top-bar .hero-banner,
body.has-top-bar .game-banner-placeholder {
    margin-top: 111px;
    /* 70px header + 41px bar */
}

/* Editable state */
.top-notification-bar.editable {
    cursor: pointer;
}

.top-notification-bar.editable:hover::after {
    content: ' (اضغط مرتين للتعديل)';
    font-size: 0.8em;
    opacity: 0.7;
}

/* =========================================
   Footer Styles
   ========================================= */
.footer {
    background: linear-gradient(to bottom, var(--bg-dark), #05040a);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.footer-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h2 {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 400px;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    /* RTL */
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-link {
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.footer-link:hover {
    transform: translateX(-5px);
}

.footer-link svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.footer-link:hover svg {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-section h3::after {
        right: 50%;
        transform: translateX(50%);
    }

    .footer-link {
        justify-content: center;
    }

    .footer-link:hover {
        transform: translateX(0) scale(1.05);
    }
}

/* =========================================
   Confirmation Page Styles
   ========================================= */
.confirmation-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, var(--bg-dark), rgba(109, 40, 217, 0.1));
}

.confirmation-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    animation: confirmationSlideIn 0.6s ease;
}

@keyframes confirmationSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.confirmation-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
    animation: confirmationPulse 2s ease-in-out infinite;
}

@keyframes confirmationPulse {

    0%,
    100% {
        box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
    }

    50% {
        box-shadow: 0 10px 60px rgba(16, 185, 129, 0.6);
    }
}

.confirmation-icon svg {
    width: 50px;
    height: 50px;
    color: white;
}

.confirmation-card h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #10B981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.confirmation-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 35px;
    background: #25D366;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius);
    transition: var(--transition);
    margin-bottom: 20px;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn svg {
    width: 24px;
    height: 24px;
}

.back-to-home {
    display: block;
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition);
}

.back-to-home:hover {
    color: var(--primary);
}

/* =========================================
   Order Loading Overlay Styles
   ========================================= */
.order-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 10, 26, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.order-loading-overlay.active {
    display: flex;
    opacity: 1;
}

.order-loading-content {
    text-align: center;
    animation: loadingBounce 0.5s ease;
}

@keyframes loadingBounce {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.order-spinner {
    width: 70px;
    height: 70px;
    border: 4px solid rgba(139, 92, 246, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.order-loading-content p {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
}

/* =========================================
   Testimonials Section Styles
   ========================================= */
.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.03) 50%, transparent);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: var(--primary);
    opacity: 0.15;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-stars svg {
    width: 22px;
    height: 22px;
    fill: #FBBF24;
    color: #FBBF24;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
}

.testimonial-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.testimonial-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responsive Testimonials */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 25px;
    }

    .confirmation-card {
        padding: 35px 25px;
        margin: 0 15px;
    }

    .confirmation-card h1 {
        font-size: 1.5rem;
    }
}

/* =========================================
   Responsive Design & Mobile Support
   ========================================= */

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1002;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--bg-glass);
}

.mobile-menu-btn svg {
    width: 28px;
    height: 28px;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        padding: 0 10px;
    }

    /* Mobile Navigation */
    .mobile-menu-btn {
        display: flex;
        /* Show only on mobile/tablet */
        align-items: center;
        justify-content: center;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default (RTL) */
        width: 280px;
        height: 100vh;
        background: rgba(15, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
        transition: var(--transition);
        z-index: 1001;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        gap: 20px;
    }

    .nav.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-radius: var(--radius);
    }

    .nav-link:hover {
        background: var(--bg-glass);
    }

    .nav-link::after {
        display: none;
        /* Remove underline effect on mobile */
    }

    /* Layout Adjustments */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    /* Compact Product Card for Mobile */
    .product-image {
        height: 160px;
    }

    .product-info {
        padding: 15px;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .add-to-cart {
        padding: 10px;
        font-size: 0.9rem;
    }

    /* Banners */
    .hero-banner {
        margin-top: 60px;
    }

    .banner-image {
        max-height: 250px;
    }

    .banner-placeholder,
    .game-banner-placeholder {
        height: 250px;
    }

    .game-banner-content h1 {
        font-size: 2rem;
    }

    .placeholder-content h2 {
        font-size: 1.5rem;
    }

    /* Cart Sidebar Mobile */
    .cart-sidebar {
        width: 100%;
        /* Full width on very small screens */
        max-width: 100%;
    }

    /* Typography */
    .section-title {
        font-size: 1.6rem;
    }

    .footer-brand h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Force 2 columns on mobile phones if possible, else 1 */
        gap: 10px;
    }

    .product-image {
        height: 120px;
    }

    .product-info {
        padding: 10px;
    }

    .product-price {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .add-to-cart {
        font-size: 0.8rem;
        padding: 8px;
    }

    .add-to-cart svg {
        width: 16px;
        height: 16px;
    }

    .games-grid {
        grid-template-columns: 1fr;
        /* Full width games on mobile */
    }

    .header .logo-text {
        font-size: 1.4rem;
    }

    .header-actions {
        gap: 10px;
    }
}

/* =========================================
   Checkout Page Styles
   ========================================= */

/* === Main Layout === */
.checkout-section {
    padding: 40px 20px;
    min-height: 80vh;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Form & Summary Containers === */
.checkout-form,
.order-summary {
    padding: 30px;
}

.checkout-form h2,
.order-summary h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* === Form Elements === */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #8b5cf6;
    outline: none;
    background: rgba(139, 92, 246, 0.05);
}

/* === Payment Methods === */
.payment-methods {
    margin: 25px 0;
}

.payment-methods h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
}

.payment-option input {
    margin-left: 15px;
    accent-color: #8b5cf6;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.payment-name {
    font-weight: 600;
    color: white;
}

/* === Coupon Section === */
.coupon-section {
    margin: 25px 0;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.coupon-section h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
}

.coupon-input-group {
    display: flex;
    gap: 10px;
}

.coupon-input-group input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 0.95rem;
}

.coupon-input-group button {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.coupon-input-group button:hover {
    background: var(--secondary);
    transform: scale(1.02);
}

.coupon-message {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.coupon-message.success {
    color: #4ade80;
}

.coupon-message.error {
    color: #f87171;
}

/* === Submit Button === */
.submit-order {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.4);
}

.submit-order:active {
    transform: translateY(0);
}

/* === Order Summary === */
.summary-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 5px;
}

.summary-items::-webkit-scrollbar {
    width: 5px;
}

.summary-items::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.summary-items::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 10px;
}

.summary-items::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

.summary-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.summary-row.total {
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-row.discount {
    color: #4ade80;
    font-weight: 600;
}

/* =========================================
   Responsive Design
   ========================================= */

/* Large Tablets */
@media (max-width: 1024px) {
    .checkout-section {
        padding: 40px 25px;
    }
    
    .checkout-grid {
        gap: 30px;
        padding: 0 20px;
    }
    
    .checkout-form,
    .order-summary {
        padding: 25px 30px;
    }
}

/* Tablets */
@media (max-width: 900px) {
    .checkout-section {
        padding: 35px 20px;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    .checkout-form,
    .order-summary {
        padding: 25px;
    }
}

/* Mobile Landscape & Small Tablets */
@media (max-width: 768px) {
    .checkout-section {
        padding: 30px 20px;
    }
    
    .checkout-grid {
        gap: 25px;
        padding: 0 15px;
    }
    
    .checkout-form,
    .order-summary {
        padding: 20px 25px;
    }
    
    .checkout-form h2,
    .order-summary h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
        padding: 0 5px 15px;
    }
    
    .form-group label {
        padding: 0 5px;
    }
    
    .payment-methods h3,
    .coupon-section h3 {
        font-size: 1rem;
        padding: 0 5px;
    }
    
    .payment-option {
        padding: 15px 20px;
    }
    
    .coupon-section {
        padding: 20px 25px;
    }
    
    .submit-order {
        font-size: 1rem;
        padding: 14px;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    .checkout-section {
        padding: 25px 15px;
    }
    
    .checkout-grid {
        padding: 0 10px;
        gap: 20px;
    }
    
    .checkout-form,
    .order-summary {
        padding: 20px;
    }
    
    .checkout-form h2,
    .order-summary h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
        padding: 0 5px 12px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
        padding: 0 5px;
    }
    
    .form-group input {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
    
    .payment-methods h3,
    .coupon-section h3 {
        padding: 0 5px;
    }
    
    .payment-option {
        padding: 12px 18px;
    }
    
    .payment-option input {
        width: 16px;
        height: 16px;
        margin-left: 12px;
    }
    
    .coupon-section {
        padding: 18px 20px;
        margin: 20px 0;
    }
    
    .coupon-input-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .coupon-input-group input {
        padding: 10px 15px;
    }
    
    .coupon-input-group button {
        width: 100%;
        padding: 12px;
    }
    
    .summary-items {
        max-height: 250px;
        padding-right: 10px;
    }
    
    .summary-row {
        font-size: 0.9rem;
        margin-bottom: 10px;
        padding: 0 5px;
    }
    
    .summary-row.total {
        font-size: 1.1rem;
        padding: 12px 5px 0;
        margin-top: 12px;
    }
    
    .submit-order {
        font-size: 0.95rem;
        padding: 12px;
    }
}

/* Very Small Devices */
@media (max-width: 360px) {
    .checkout-section {
        padding: 20px 12px;
    }
    
    .checkout-grid {
        padding: 0 8px;
    }
    
    .checkout-form,
    .order-summary {
        padding: 18px;
    }
    
    .checkout-form h2,
    .order-summary h2 {
        font-size: 1.1rem;
        padding: 0 5px 10px;
    }
    
    .form-group input,
    .coupon-input-group input {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    
    .payment-methods h3,
    .coupon-section h3 {
        font-size: 0.95rem;
    }
    
    .payment-option {
        padding: 10px 15px;
    }
    
    .coupon-section {
        padding: 15px 18px;
    }
}