:root {
    /* Majarra Official Identity */
    --mj-bg: #050505;
    --mj-card: #0d0d0d;
    --mj-accent-red: #e31b23;
    --mj-cyan: #00f2ff;
    --mj-green: #00ff88;
    --mj-border: rgba(255, 255, 255, 0.05);
    --mj-text: #f8fafc;
    --mj-text-muted: #94a3b8;
    
    /* Store Mappings */
    --bg-color: var(--mj-bg);
    --primary-color: var(--mj-cyan);
    --secondary-color: var(--mj-accent-red);
    --text-main: var(--mj-text);
    --text-muted: var(--mj-text-muted);
    --glass-bg: rgba(13, 13, 13, 0.8);
    --glass-border: var(--mj-border);
}

body.light-theme {
    --bg-color: #f1f5f9;
    --primary-color: #0891b2;
    --secondary-color: #e31b23;
    --text-main: #0f172a;
    --text-muted: #475569;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Background Stars Effect */
.stars-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
    z-index: -1;
}

/* Glassmorphism Utility */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10rem 5% 5rem;
    min-height: 80vh;
    background-image: linear-gradient(rgba(5, 5, 5, 0.8), rgba(5, 5, 5, 0.95)), url('images/majarra_cinematic_hero_1782682040543.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--glass-border);
}

body.light-theme .hero {
    background-image: linear-gradient(rgba(241, 245, 249, 0.8), rgba(241, 245, 249, 0.95)), url('images/majarra_cinematic_hero_1782682040543.png');
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.highlight {
    color: var(--primary-color);
    font-size: 1rem;
    letter-spacing: 2px;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
    text-shadow: 0 0 10px var(--primary-color);
}

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

.btn-crypto {
    background: linear-gradient(45deg, #f7931a, #d4770c); /* Bitcoin Orange */
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-crypto:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(247, 147, 26, 0.4);
}

.btn-primary {
    background: linear-gradient(45deg, var(--mj-accent-red), #b01017);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(227, 27, 35, 0.4);
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.cart-icon:hover {
    color: var(--primary-color);
}

.badge {
    position: absolute;
    top: -5px; right: -10px;
    background: var(--secondary-color);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
}

/* Cart Overlay & Modal */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    display: none;
    justify-content: flex-end;
}

.cart-overlay.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.cart-modal {
    width: 400px;
    height: 100%;
    background: #0a0a0f;
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.close-cart {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    padding: 1rem;
    border-radius: 12px;
}

.cart-item-info h4 { font-size: 1rem; margin-bottom: 0.3rem;}
.cart-item-info p { color: var(--primary-color); font-weight: bold;}
.remove-btn { background: none; border: none; color: #ff3366; cursor: pointer; font-size: 1.2rem;}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.cart-total {
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.w-100 { width: 100%; }
.mt-3 { margin-top: 1rem; }

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    margin-top: 60px;
}

.hero-content {
    max-width: 50%;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: white;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 86px, 0); }
    100% { clip: rect(61px, 9999px, 12px, 0); }
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: 0.3s;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

/* Candlestick Graphic */
.candlestick-chart {
    position: relative;
    width: 300px;
    height: 300px;
}

.candle {
    position: absolute;
    width: 20px;
    bottom: 50px;
    border-radius: 4px;
    transition: height 0.5s ease;
}
.candle::before { /* Wick */
    content: '';
    position: absolute;
    top: -20px; bottom: -20px;
    left: 9px; width: 2px;
    background: inherit;
    z-index: -1;
}
.candle.green { background: var(--primary-color); }
.candle.red { background: #FF3366; }
.candle.glow { box-shadow: 0 0 30px var(--primary-color); }

/* Products Section */
.products-section {
    padding: 5rem 10%;
}
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Filters */
.filters-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: 0.4s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
}

.product-img {
    width: 100%;
    height: 200px;
    background: #111;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #333;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.btn-buy {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.product-card:hover .btn-buy {
    background: var(--text-main);
    color: #000;
}

/* Sovereign Section */
.sovereign-section {
    margin: 5rem 10%;
    padding: 4rem;
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sovereign-content h2 {
    font-size: 3rem;
    color: #FFD700; /* Gold */
    margin-bottom: 1rem;
}

.btn-outline {
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid #FFD700;
    color: #FFD700;
    font-weight: 900;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-outline:hover {
    background: #FFD700;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 5rem;
    color: var(--text-muted);
}
.crypto-accepted {
    margin-top: 1rem;
    font-size: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}
