/* ==========================================================================
   WEZZI SCRIPTS - DESIGN SYSTEM & STYLING
   ========================================================================== */

/* 1. CSS VARIABLES (DESIGN TOKENS) */
:root {
    /* Color Palette — Premium Dark Navy + Gold */
    --bg-main: #0a0f1a;
    --bg-surface: #111827;
    --bg-surface-hover: #1a2234;
    --border-color: #1e293b;
    --border-color-glow: #334155;
    
    --primary: #d4a853; /* Warm Gold */
    --primary-glow: rgba(212, 168, 83, 0.35);
    --secondary: #4f8fff; /* Cool Slate-Blue */
    --secondary-glow: rgba(79, 143, 255, 0.3);
    
    --text-primary: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dimmed: #64748b;
    
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    
    /* Layout & Spacing */
    --header-height: 80px;
    --header-height-scrolled: 70px;
    --max-width: 1200px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. BASE & RESET STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

code, pre {
    font-family: 'Courier New', Courier, monospace;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Utility Containers */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #f0d48a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.w-100 { width: 100%; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #b8912e 100%);
    color: #0a0f1a;
    font-weight: 700;
    box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 168, 83, 0.5);
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}
.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(212, 168, 83, 0.08);
    transform: translateY(-2px);
}

/* ==========================================================================
   3. MAIN HEADER & NAVIGATION (STICKY SOLUTION)
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition-normal);
    border-bottom: 1px solid transparent;
}

/* Scrolled state applied via JS */
.main-header.scrolled {
    height: var(--header-height-scrolled);
    background-color: rgba(10, 15, 26, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
}

.logo-accent {
    color: var(--secondary);
}

.desktop-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transition: var(--transition-normal);
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.discord-nav-link {
    color: #5865f2;
}
.discord-nav-link:hover {
    color: #7289da;
}

/* Header Action Buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-login {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
}
.btn-login:hover {
    border-color: var(--secondary);
    color: #fff;
}

.btn-basket {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #fff;
}
.btn-basket:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.basket-badge {
    background: var(--secondary);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    margin-left: 4px;
}

/* Hamburger menu button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    z-index: 1010;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-normal);
}

/* ==========================================================================
   4. MOBILE DRAWER MENU
   ========================================================================== */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background-color: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    padding: 30px 24px;
    transition: var(--transition-normal);
}

.mobile-drawer.open {
    right: 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.close-drawer-btn {
    color: var(--text-muted);
    font-size: 24px;
}
.close-drawer-btn:hover {
    color: #fff;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-grow: 1;
}

.mobile-nav-link {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mobile-nav-link:hover {
    color: #fff;
    padding-left: 8px;
}

.mobile-discord-link {
    color: #5865f2;
}

.mobile-drawer-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
}

.mobile-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 100px;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Glow overlays */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
}

.hero-glow-1 {
    top: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: var(--primary);
}

.hero-glow-2 {
    bottom: 10%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: var(--secondary);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    background: rgba(212, 168, 83, 0.1);
    border: 1px solid rgba(212, 168, 83, 0.3);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-description {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Moving Code Preview Visual Window */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card {
    width: 100%;
    max-width: 440px;
    background: #0d1321;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transition: var(--transition-slow);
}

.visual-card:hover {
    transform: translateY(-8px) rotate(1deg);
    border-color: var(--secondary-glow);
}

.visual-card-header {
    background: #131b2e;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.window-title {
    color: var(--text-dimmed);
    font-size: 12px;
    margin-left: 8px;
    font-weight: 500;
}

.visual-card-body {
    padding: 24px;
    font-size: 13px;
    overflow-x: auto;
}

.visual-card-body pre {
    background: none;
    border: none;
    padding: 0;
}

.code-keyword { color: #f43f5e; font-weight: 600; }
.code-string { color: #10b981; }
.code-comment { color: #6b7280; font-style: italic; }
.code-function { color: #3b82f6; }
.code-number { color: #f59e0b; }

.visual-card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--primary);
    filter: blur(80px);
    top: -20px;
    right: -20px;
    border-radius: 50%;
    opacity: 0.3;
    pointer-events: none;
}

/* Endless Running Ticker */
.running-ticker {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #b8912e 100%);
    padding: 12px 0;
    display: flex;
    overflow: hidden;
    user-select: none;
}

.ticker-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    min-width: 100%;
    gap: 40px;
    animation: scroll-ticker 25s linear infinite;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: #0a0f1a;
}

.ticker-divider {
    color: rgba(0, 0, 0, 0.3);
}

@keyframes scroll-ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* ==========================================================================
   6. STORE SECTION & FILTERS
   ========================================================================== */
.store-section {
    padding: 120px 0;
    background: radial-gradient(circle at 50% 0%, #131e33 0%, var(--bg-main) 60%);
    border-top: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-description {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Store filter bar styling */
.store-filter-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    margin-bottom: 48px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-lg);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 20px;
    color: var(--text-dimmed);
}

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    background: #0d1321;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
}

.search-box input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 15px var(--secondary-glow);
}

.filter-categories {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    background: #0d1321;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition-normal);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: #fff;
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Product Card Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--primary), var(--secondary)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition-normal);
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 15px 40px rgba(212, 168, 83, 0.1);
}

.product-card:hover::before {
    opacity: 0.6;
}

.product-card-preview {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #0d1321;
}

.product-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-card-preview img {
    transform: scale(1.05);
}

.product-card-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 30px;
    text-transform: uppercase;
}

.badge-new { background: var(--success); color: #fff; }
.badge-escrow { background: var(--primary); color: #fff; }
.badge-framework { background: rgba(0, 0, 0, 0.6); color: var(--secondary); border: 1px solid var(--secondary); }

.product-card-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-title {
    font-size: 20px;
    margin-bottom: 8px;
    color: #fff;
    line-height: 1.3;
}

.product-card-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.product-card-price {
    font-size: 22px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #fff;
}

.product-card-price small {
    font-size: 12px;
    color: var(--text-dimmed);
    font-weight: 500;
}

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

.btn-card-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.btn-card-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ==========================================================================
   7. WHY US / FEATURES
   ========================================================================== */
.features-section {
    padding: 100px 0;
    background: var(--bg-main);
    border-top: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(212, 168, 83, 0.08);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(212, 168, 83, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(212, 168, 83, 0.15);
}

.feature-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-text {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================================================
   8. SHOPPING CART DRAWER (RIGHT SLIDE OUT)
   ========================================================================== */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100vh;
    background-color: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
}

.cart-drawer.open {
    right: 0;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.6);
}

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

.cart-drawer-header h3 {
    font-size: 20px;
}

.close-cart-btn {
    color: var(--text-muted);
    font-size: 20px;
}
.close-cart-btn:hover {
    color: #fff;
}

.cart-items-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Cart Item card styling */
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-preview {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #0d1321;
}

.cart-item-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info h4 {
    font-size: 15px;
    color: #fff;
    margin-bottom: 4px;
}

.cart-item-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 700;
}

.remove-item-btn {
    color: var(--text-dimmed);
    font-size: 13px;
    transition: var(--transition-fast);
}
.remove-item-btn:hover {
    color: var(--danger);
}

.cart-drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background: #0d1321;
}

.subtotal-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.subtotal-price {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.cart-secure-text {
    font-size: 11px;
    color: var(--text-dimmed);
    text-align: center;
    margin-top: 12px;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1090;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.empty-cart-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60%;
    color: var(--text-dimmed);
    gap: 16px;
}

.empty-cart-view i {
    font-size: 48px;
}

/* ==========================================================================
   9. PRODUCT DETAILS MODAL (POPUP DIALOG)
   ========================================================================== */
.product-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    transition: var(--transition-normal);
}

.product-modal.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.modal-content-wrapper {
    position: relative;
    padding: 40px;
}

.close-modal-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--text-muted);
    font-size: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.close-modal-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
}

.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-modal-preview {
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #0d1321;
    border: 1px solid var(--border-color);
}

.main-modal-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    display: flex;
    flex-direction: column;
}

.modal-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.modal-product-title {
    font-size: 28px;
    margin-bottom: 12px;
    color: #fff;
}

.modal-price {
    font-size: 26px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 24px;
}

/* Tabs inside Modal */
.modal-description-tabs {
    margin-bottom: 30px;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    gap: 20px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 0;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    position: relative;
}

.tab-btn.active {
    color: #fff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
}

.tab-content {
    display: none;
    font-size: 14px;
    color: var(--text-muted);
    max-height: 220px;
    overflow-y: auto;
}

.tab-content.active {
    display: block;
}

.tab-content ul {
    list-style-type: none;
}

.tab-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.tab-content ul li::before {
    content: '✓';
    color: var(--success);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.tab-content pre {
    background: #0d1321;
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    overflow-x: auto;
    font-size: 12px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1190;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.main-footer {
    background: #070c16;
    border-top: 1px solid var(--border-color);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 16px;
    margin-bottom: 24px;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-muted);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-links h4, .footer-info h4 {
    font-size: 16px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links ul li a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.footer-info {
    color: var(--text-dimmed);
    font-size: 13px;
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    font-size: 13px;
    color: var(--text-dimmed);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   11. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Up to Desktop (1024px) */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    .hero-content {
        align-items: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-visual {
        order: -1; /* Display code visual first on mobile */
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-info {
        grid-column: span 2;
    }
}

/* Up to Tablets (768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    .desktop-nav {
        display: none;
    }
    .btn-login {
        display: none; /* Hide header login, drawer will hold login */
    }
    .hamburger-menu {
        display: flex;
    }
    .hero-title {
        font-size: 40px;
    }
    .store-filter-bar {
        grid-template-columns: 1fr;
    }
    .filter-categories {
        overflow-x: auto;
        padding-bottom: 8px;
        width: 100%;
        justify-content: flex-start;
    }
    .filter-btn {
        flex-shrink: 0;
    }
    .modal-body-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .main-modal-preview {
        height: 220px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-info {
        grid-column: span 1;
    }
    .footer-bottom-flex {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Up to Mobile phones (480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    .hero-description {
        font-size: 15px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
    .product-modal {
        width: 95%;
        border-radius: var(--radius-md);
    }
    .modal-content-wrapper {
        padding: 24px;
    }
}

/* ==========================================================================
   ADDITIONAL PROFESSIONAL STYLES (LANG TOGGLE, FAQ, TESTIMONIALS, COPY BTN)
   ========================================================================== */

/* Language Dropdown Selector */
.lang-selector-dropdown {
    position: relative;
    display: inline-block;
}
.lang-selector-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dimmed);
    cursor: pointer;
    transition: var(--transition-fast);
    outline: none;
    font-family: inherit;
}
.lang-selector-btn:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.lang-flag {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    object-fit: cover;
    display: block;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.lang-dropdown-arrow {
    font-size: 10px;
    transition: transform var(--transition-fast);
}
.lang-selector-dropdown.open .lang-dropdown-arrow {
    transform: rotate(180deg);
}
.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #111522;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 140px;
    padding: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}
.lang-selector-dropdown.open .lang-dropdown-menu {
    display: flex;
}
.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    user-select: none;
}
.lang-option img {
    width: 16px;
    height: 12px;
    border-radius: 1px;
    object-fit: cover;
}
.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}
.lang-option.active {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
}

/* RTL Support Rules for Arabic */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}
[dir="rtl"] .desktop-nav {
    margin-right: auto;
    margin-left: 0;
}
[dir="rtl"] .header-actions {
    margin-left: 0;
    margin-right: auto;
}
[dir="rtl"] .lang-dropdown-menu {
    right: auto;
    left: 0;
}
[dir="rtl"] .faq-question {
    flex-direction: row-reverse;
}
[dir="rtl"] .faq-question h4 {
    text-align: right;
}
[dir="rtl"] .btn i {
    margin-left: 8px;
    margin-right: 0;
}
[dir="rtl"] .hero-actions {
    justify-content: flex-start;
    gap: 16px;
}
[dir="rtl"] .user-info {
    text-align: right;
}
[dir="rtl"] .cart-drawer {
    left: 0;
    right: auto;
    transform: translateX(-100%);
}
[dir="rtl"] .cart-drawer.open {
    transform: translateX(0);
}
[dir="rtl"] .modal-body-layout {
    flex-direction: row-reverse;
}
[dir="rtl"] .modal-details {
    text-align: right;
}
[dir="rtl"] .tabs-nav {
    justify-content: flex-start;
}
[dir="rtl"] .copy-btn {
    left: 12px;
    right: auto;
}
[dir="rtl"] .close-modal-btn {
    left: 20px;
    right: auto;
}
[dir="rtl"] .mobile-drawer {
    left: auto;
    right: 0;
    transform: translateX(100%);
}
[dir="rtl"] .mobile-drawer.open {
    transform: translateX(0);
}
[dir="rtl"] .close-drawer-btn {
    margin-right: auto;
    margin-left: 0;
}
[dir="rtl"] .footer-brand, [dir="rtl"] .footer-links, [dir="rtl"] .footer-info {
    text-align: right;
}


/* Testimonials Carousel */
.testimonials-section {
    padding: 100px 0;
    background: radial-gradient(circle at 50% 100%, #0c1527 0%, var(--bg-main) 70%);
    border-top: 1px solid var(--border-color);
}
.testimonials-carousel-wrapper {
    max-width: 800px;
    margin: 40px auto 0;
    overflow: hidden;
    position: relative;
    padding: 10px;
}
.testimonials-carousel {
    display: flex;
    transition: transform var(--transition-normal);
}
.testimonial-card {
    min-width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.rating-stars {
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    gap: 4px;
}
.testimonial-text {
    font-size: 16px;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 600px;
}
.testimonial-user {
    display: flex;
    align-items: center;
    gap: 16px;
}
.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
}
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-info {
    text-align: left;
}
.user-name {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}
.user-role {
    font-size: 12px;
    color: var(--text-dimmed);
}
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-fast);
}
.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.25);
    box-shadow: 0 0 8px var(--primary-glow);
}

/* FAQ Accordion Section */
.faq-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}
.faq-accordion-list {
    max-width: 760px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
}
.faq-question {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.faq-question h4 {
    font-size: 16px;
    color: #fff;
    margin: 0;
    font-weight: 600;
}
.faq-arrow {
    color: var(--text-muted);
    transition: transform var(--transition-normal);
}
.faq-item.active {
    border-color: var(--secondary-glow);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out;
    background: rgba(0, 0, 0, 0.15);
}
.faq-answer p {
    padding: 0 24px 24px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Copy Button inside Code Tab */
#tab-config {
    position: relative;
}
.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    transition: var(--transition-fast);
    z-index: 10;
}
.copy-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
}

