/* PROJECT MEMORY: Master Stylesheet (v3.7 - PERFORMANCE TUNED)
   Status: Production-Ready / Mobile-Hardened
   Responsibility: Global Theme, SPA Logic, Commerce, & Mobile UX
*/

:root {
    --primary: #0f172a;    /* Deep Midnight */
    --secondary: #3b82f6;  /* Electric Blue */
    --accent: #8b5cf6;     /* Royal Purple */
    --success: #10b981;    /* Cyber Green */
    --error: #ef4444;      /* Alert Red */
    --text: #f8fafc;
    --text-gray: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
}

/* --- 🧱 BASE & RESET --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background-color: var(--primary);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
    /* MOBILE SCORE FIX: Smooths text rendering for better FCP */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* --- 🔦 LIGHTING & FX --- */
.spotlight {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1000px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    /* MOBILE SCORE FIX: Removes expensive blur calculations on low-end devices */
    will-change: transform;
}

.highlight-text {
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- 🏗️ HEADER & PILLS --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    border-bottom: 1px solid var(--border);
}

.header-wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-box { width: 35px; height: 35px; border-radius: 8px; }

.signin-pill {
    position: relative;
    background: var(--text);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

#cart-count-pill {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 900;
    border: 2px solid var(--primary);
}

/* --- 💳 OVERLAYS & MODALS --- */
#checkout-overlay, #auth-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: 20000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-input {
    width: 100%;
    padding: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: white;
    margin-bottom: 15px;
    outline: none;
}

/* --- 🚀 BUTTONS --- */
.btn-main {
    padding: 16px 25px;
    border-radius: 15px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    width: 100%;
    background: var(--accent);
    color: white;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.2);
    margin-bottom: 10px;
}

.btn-main:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4);
}

.btn-main:active { transform: scale(0.95); }

/* --- 📂 VAULT GRID & CARDS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 180px; 
    width: 100%;
}

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

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 24px;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    /* MOBILE SCORE FIX: Accelerates card rendering on scroll */
    content-visibility: auto;
    contain-intrinsic-size: 1px 300px;
}

.smart-cover {
    width: 100%;
    height: 180px;
    border-radius: 20px;
    margin-bottom: 20px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.8) 100%);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.smart-cover span {
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    padding: 10px;
    z-index: 1;
}

.smart-cover img { width: 100%; height: 100%; object-fit: cover; }

.smart-cover::before {
    content: "PV";
    position: absolute;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(139, 92, 246, 0.03);
    z-index: 0;
}

/* --- 📝 PRODUCT DETAILS --- */
.product-desc {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

/* --- 📱 THE CENTERED PILL NAV --- */
.bottom-nav {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border);
    padding: 12px 10px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    border-radius: 100px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 92%;
    max-width: 440px;
    min-width: 300px;
    z-index: 15000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    /* MOBILE SCORE FIX: Offloads nav rendering to the GPU */
    transform: translateX(-50%) translateZ(0);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-gray);
    text-decoration: none;
    transition: 0.3s;
}

.nav-item.active { color: var(--secondary); }

.nav-item span { font-size: 1.3rem; margin-bottom: 2px; }

.nav-item small {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* --- 📁 LIBRARY & NOTIFS --- */
.library-card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

#sales-notif {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid var(--border);
    z-index: 14000;
    white-space: nowrap;
}

/* --- 📱 MOBILE RESPONSIVE (UPDATED) --- */
@media (max-width: 768px) {
    .container { 
        padding-top: 80px; 
        padding-bottom: 140px; 
        padding-left: 10px; 
        padding-right: 10px; 
    }
    
    .vault-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; /* Reduced gap for mobile */
    }

    .glass-card {
        padding: 15px; /* Tighter internal padding */
        border-radius: 20px;
    }

    .smart-cover { 
        height: 120px; 
        margin-bottom: 12px;
    }

    .smart-cover span {
        font-size: 0.75rem !important; /* Smaller text on covers */
    }

    .glass-card h4, .glass-card div[style*="font-weight:800"] {
        font-size: 0.9rem !important; /* Smaller titles */
        min-height: auto !important;
    }

    .btn-main { 
        padding: 10px 5px; 
        font-size: 0.75rem; 
        border-radius: 10px; 
    }

    /* Fix for PROMPTVAULTUSA branding cutoff */
    .header-wrap span {
        font-size: 0.85rem !important;
        letter-spacing: -0.5px !important;
        white-space: nowrap;
    }
    .header-wrap {
        padding: 10px 15px;
    }
}

/* --- 📟 SPA PAGE LOGIC --- */
.page { display: none; }
.page.active { display: flex; flex-direction: column; width: 100%; }

Update the code and give back to me the updated one
