@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg-color: #07070a;
    --surface-color: #111116;
    --surface-light: rgba(255, 255, 255, 0.04);
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-primary: #ff007a;
    --accent-secondary: #00d4ff;
    --accent-red: #ff007a;
    --accent-blue: #00d4ff;
    --accent-green: #00e676;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --font-heading: 'Outfit', 'Cairo', sans-serif;
    --font-body: 'Inter', 'Tajawal', sans-serif;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(131, 58, 180, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(255, 0, 122, 0.05) 0%, transparent 50%),
        url('data:image/svg+xml;utf8,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1.5" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px;
    z-index: -2;
    pointer-events: none;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.text-accent { color: var(--accent-red); }
.text-blue { color: var(--accent-blue); }
.text-green { color: var(--accent-green); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 122, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 122, 0.5);
}

.btn-primary:disabled {
    background: var(--surface-light);
    color: var(--text-secondary);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--surface-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.w-100 { width: 100%; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: rgba(12, 11, 16, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-box {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(255, 0, 122, 0.4);
}

.logo-text {
    background: linear-gradient(to right, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span.fw-light {
    font-weight: 300;
    -webkit-text-fill-color: var(--text-secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 1rem;
    font-family: var(--font-heading);
    color: var(--text-secondary);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-red);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.currency-selector select {
    background: var(--surface-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    outline: none;
    cursor: pointer;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

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

.badg {
    position: absolute;
    top: -8px; right: -8px;
    background: var(--accent-red);
    color: white;
    font-size: 0.7rem;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

.hamburger { 
    width: 24px; 
    height: 18px; 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}
.hamburger span { 
    width: 100%; 
    height: 2px; 
    background: white; 
    border-radius: 2px; 
    transition: 0.3s; 
    transform-origin: left center;
}
.mobile-menu-btn.active .hamburger span:nth-child(1) { transform: rotate(45deg); }
.mobile-menu-btn.active .hamburger span:nth-child(2) { opacity: 0; width: 0; }
.mobile-menu-btn.active .hamburger span:nth-child(3) { transform: rotate(-45deg); }

/* Base Layout */
main {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

.view {
    display: none;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease-out;
}

.view.active {
    display: block;
}

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

.glass-panel {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 0 6rem;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

    /* Background is now applied globally to body */

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-trust {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.hero-graphics {
    flex: 1;
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.circle-1 {
    width: 350px; height: 350px;
    background: rgba(131, 58, 180, 0.3);
    top: 5%; right: 10%;
}
.circle-2 {
    width: 300px; height: 300px;
    background: rgba(0, 212, 255, 0.3);
    bottom: -5%; left: 10%;
}
.circle-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    width: 250px; height: 250px;
    background: rgba(225, 48, 108, 0.25);
    top: 40%; left: 40%;
}

.floating-icons-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 2rem;
}

.glow-icon {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.icon-social {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.85), rgba(131, 58, 180, 0.85));
    box-shadow: 0 15px 35px rgba(225, 48, 108, 0.4);
    animation: floatSlow 6s ease-in-out infinite;
}

.icon-gaming {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.85), rgba(0, 71, 255, 0.85));
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.4);
    width: 100px; height: 100px; font-size: 3rem; 
    margin-bottom: 3rem; /* Staggered position */
    z-index: 3;
    animation: floatFast 4s ease-in-out infinite;
}

.icon-web {
    background: linear-gradient(135deg, rgba(38, 208, 206, 0.85), rgba(26, 41, 128, 0.85));
    box-shadow: 0 15px 35px rgba(38, 208, 206, 0.4);
    animation: floatMed 5s ease-in-out infinite;
    animation-delay: -2s;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes floatMed {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(15px); }
}
@keyframes floatFast {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Sections Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header.align-left {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.section-header p {
    color: var(--text-secondary);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(255, 0, 122, 0.15);
}

.cat-icon {
    width: 60px;
    height: 60px;
    background: var(--surface-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    color: var(--accent-primary);
}

/* Store View */
.store-container {
    display: flex;
    gap: 2rem;
    position: relative;
}

.store-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.store-sidebar h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.category-filter {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-filter li {
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: 0.3s;
    color: var(--text-secondary);
}

.category-filter li:hover, .category-filter li.active {
    background: var(--surface-color);
    color: var(--text-primary);
}

.store-content {
    flex: 1;
}

.search-bar {
    position: relative;
    width: 300px;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-bar input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-body);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: linear-gradient(145deg, var(--surface-color), #0f0e14);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    animation: slideUpFade 0.4s ease-out forwards;
}

.product-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 20px rgba(255, 0, 122, 0.2);
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    aspect-ratio: 4/3;
    height: auto;
    background: var(--surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    position: relative;
    padding: 0;
}

.full-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.product-badge {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(0,0,0,0.6);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-cat {
    color: var(--accent-red);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.product-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex: 1;
}
.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.product-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--accent-green);
}

/* Service Details */
.back-btn {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.back-btn:hover { color: var(--text-primary); }

.details-wrapper {
    display: flex;
    gap: 3rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
}
.details-image {
    width: 300px;
    height: 300px;
    background: var(--surface-light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    flex-shrink: 0;
}
.details-info {
    flex: 1;
}
.details-info h1 { margin-bottom: 1rem; }
.details-cat {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255,59,48,0.1);
    color: var(--accent-red);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.details-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.details-price {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--accent-green);
}

.dynamic-options {
    margin-bottom: 2rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent-red);
}

.cart-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.qty-btn {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: white;
    width: 40px; height: 40px;
    border-radius: 8px;
    cursor: pointer;
}
.qty-input {
    width: 60px;
    text-align: center;
    background: transparent;
    border: none;
    color: white;
    font-weight: bold;
}

/* Cart View */
.cart-container {
    display: flex;
    gap: 2rem;
}
.cart-items-section {
    flex: 2;
}
.cart-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cart-item {
    display: flex;
    align-items: center;
    background: var(--surface-light);
    padding: 1.2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    gap: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-item:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateX(5px);
}
.cart-item-img {
    width: 60px; height: 60px;
    background: var(--surface-light);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 600; margin-bottom: 0.2rem; }
.cart-item-meta { font-size: 0.8rem; color: var(--text-secondary); }
.cart-item-price { font-weight: 600; color: var(--accent-green); }
.cart-summary-section { flex: 1; }
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.summary-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 1rem;
}
hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

/* Checkout View */
.checkout-container {
    display: flex;
    gap: 2rem;
}
.checkout-form { flex: 2; }
.checkout-summary { flex: 1; height: fit-content; }
.payment-methods {
    display: flex;
    gap: 1rem;
}
.pay-method {
    flex: 1;
    border: 2px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--surface-light);
    text-align: center;
}
.pay-icon {
    font-size: 2rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}
.pay-method:hover {
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}
.pay-method.active {
    border-color: var(--accent-red);
    background: rgba(255,59,48,0.08); /* neon pink/red */
}
.pay-method.active .pay-icon {
    color: var(--accent-red);
}
.pay-method span {
    font-weight: 600;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    display: flex;
    gap: 0.8rem;
    font-size: 0.95rem;
}
.alert-info {
    background: rgba(10, 132, 255, 0.1);
    color: #58a6ff;
    border: 1px solid rgba(10, 132, 255, 0.2);
}

/* Auth View */
.auth-wrapper {
    max-width: 400px;
    margin: 0 auto;
}
.auth-tabs {
    display: flex;
    margin-bottom: 1rem;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    gap: 0.5rem;
}
.auth-tab {
    flex: 1;
    padding: 0.5rem;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
    font-weight: 500;
}
.auth-tab.active {
    background: var(--surface-light);
    color: white;
}
.hidden { display: none !important; }

/* Account & Contact */
.account-container {
    display: flex;
    gap: 2rem;
}
.account-sidebar { width: 250px; }
.user-profile {
    text-align: center;
    margin-bottom: 2rem;
}
.user-avatar {
    width: 80px; height: 80px;
    background: var(--surface-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}
.account-nav {
    list-style: none;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.account-nav li {
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex; align-items: center; gap: 0.8rem;
    color: var(--text-secondary);
}
.account-nav li:hover, .account-nav li.active {
    background: var(--surface-light);
    color: white;
}
.account-content { flex: 1; }
.empty-state {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-secondary);
}
.empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }

.contact-wrapper {
    display: flex;
    gap: 3rem;
}
.contact-info, .contact-form { flex: 1; }
.info-items { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.info-item { display: flex; align-items: center; gap: 1rem; font-size: 1.1rem; }
.info-item i { color: var(--accent-red); font-size: 1.5rem; }

/* Toast */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: slideIn 0.3s ease-out;
}
.toast.success i { color: var(--accent-green); }
.toast.error i { color: var(--accent-red); }

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

/* Footer */
footer {
    background: rgba(12, 11, 16, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 1rem;
    margin-top: 4rem;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 300px;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.footer-links h4, .footer-social h4 {
    margin-bottom: 1rem;
}
.footer-links a {
    color: var(--text-secondary);
}
.footer-links a:hover { color: var(--accent-red); }
.social-icons {
    display: flex;
    gap: 1rem;
}
.social-icons a {
    width: 40px; height: 40px;
    background: var(--surface-light);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}
.social-icons a:hover {
    background: var(--accent-red);
    color: white;
}
.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-actions { gap: 0.5rem; }
    .nav-links { display: none; }
    .nav-links.show-mobile-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 70px);
        background: rgba(12, 11, 16, 0.98);
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        gap: 2rem;
        z-index: 999;
        font-size: 1.2rem;
    }
    .mobile-menu-btn { display: block; }
    .logo { font-size: 1.2rem; letter-spacing: 0; gap: 0.4rem; }
    .logo-box { width: 30px; height: 30px; font-size: 1.1rem; }
    #lang-btn-text { display: none; }
    
    .hero { flex-direction: column; text-align: center; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { margin: 0 auto 1.5rem; font-size: 1rem; }
    .hero-actions { flex-direction: column; width: 100%; gap: 1rem; margin-top: 1rem !important; }
    .hero-actions .btn { width: 100%; }
    .hero-trust { justify-content: center; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 1rem; }
    .trust-badge { justify-content: center; font-size: 0.75rem; padding: 0.3rem 0.6rem; gap: 0.3rem; }
    .hero-graphics { 
        height: auto; 
        min-height: 250px;
        width: 100%; 
        margin-top: 2rem; 
        position: relative; 
        overflow: visible; 
        transform: none;
    }
    .glow-icon { width: 55px; height: 55px; font-size: 1.5rem; border-radius: 12px; }
    .floating-icons-layout { gap: 1rem; margin-top: 2rem; align-items: center; }
    .icon-social { box-shadow: 0 10px 20px rgba(225, 48, 108, 0.4); animation: floatSlow 6s ease-in-out infinite; }
    .icon-gaming { width: 75px; height: 75px; font-size: 2rem; margin-bottom: 2rem; z-index: 3; box-shadow: 0 10px 20px rgba(0, 212, 255, 0.4); animation: floatFast 4s ease-in-out infinite; }
    .icon-web { box-shadow: 0 10px 20px rgba(38, 208, 206, 0.4); animation: floatMed 5s ease-in-out infinite; }
    .circle-1 { width: 250px; height: 250px; }
    .circle-2 { width: 250px; height: 250px; }
    .circle-3 { width: 200px; height: 200px; left: 50%; transform: translateX(-50%); }
    
    .section-header.align-left { flex-direction: column; gap: 1rem; align-items: stretch; text-align: center;}
    .search-bar { width: 100%; margin: 0 auto; max-width: 400px; }
    
    .store-container { flex-direction: column; gap: 1rem; }
    .store-sidebar { width: 100%; display: flex; overflow-x: auto; gap: 1rem; padding-bottom: 1rem;}
    .store-sidebar h3 { display: none; }
    .category-filter { flex-direction: row; white-space: nowrap; }
    
    .details-wrapper { flex-direction: column; padding: 1.5rem; }
    .details-image { width: 100%; height: auto; aspect-ratio: 1/1; }
    
    .cart-container { flex-direction: column; }
    .checkout-container { flex-direction: column; }
    .contact-wrapper { flex-direction: column; }
    
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 1rem auto; }
    .social-icons { justify-content: center; }
    .pay-method { flex-direction: column; text-align: center; margin-bottom: 0.5rem; }
}

/* RTL Support */
html[dir="rtl"] {
    --font-heading: 'Tajawal', sans-serif;
    --font-body: 'Tajawal', sans-serif;
}
html[dir="rtl"] body {
    font-family: var(--font-body);
}
html[dir="rtl"] .hero-title, html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 {
    font-family: var(--font-heading);
}
html[dir="rtl"] .logo {
    font-family: 'Outfit', sans-serif; /* Keep English font for logo */
}
html[dir="rtl"] .search-bar i {
    left: auto;
    right: 1rem;
}
html[dir="rtl"] .search-bar input {
    padding: 0.8rem 2.5rem 0.8rem 1rem;
}
html[dir="rtl"] .badg {
    right: auto;
    left: -8px;
}
html[dir="rtl"] .back-btn i {
    transform: rotate(180deg);
}
html[dir="rtl"] .btn i {
    margin-right: 0.5rem;
    margin-left: 0;
}
html[dir="rtl"] .explore-btn i {
    transform: rotate(180deg);
}
html[dir="rtl"] .cart-item {
    border-left: none;
}
html[dir="rtl"] .toast {
    right: auto;
    left: 20px;
}

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

/* Price Action Buttons */
.price-action-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
}
@media (max-width: 500px) {
    .price-action-buttons {
        flex-direction: column;
    }
}

/* Modal UI */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease-out;
}
.modal-content {
    background: var(--surface-color);
    width: 100%;
    max-width: 450px;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.1);
    animation: slideUpFade 0.4s ease-out forwards;
}

/* Base Mobile Performance Optimizations */
@media (max-width: 768px) {
    /* Disable heavy GPU blurring/filters to prevent freezing */
    .blur-circle { display: none !important; }
    
    .glow-icon, .glass-panel, .navbar, .trust-badge, .modal-overlay {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background-color: var(--surface-color) !important;
    }
    
    /* Disable expensive concurrent animations */
    .icon-social, .icon-gaming, .icon-web {
        animation: none !important;
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* Reduce repetitive repaints on grid items */
    .category-card, .product-card {
        animation: none !important; 
        transition: opacity 0.2s ease !important;
    }
}
