:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-orange: #f97316;
    --accent-cyan: #06b6d4;
    --gradient-main: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
    --gradient-glass: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.6));
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
.brand-font {
    font-family: var(--font-heading);
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.8);
    border-bottom: var(--glass-border);
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Added Search Bar Width Control */
.nav-search {
    position: relative;
    width: 45%;
    /* Wider as requested */
    max-width: 600px;
}

.nav-search input {
    width: 100%;
    padding: 1.3rem 1.5rem 1.3rem 3.5rem;
    /* Bold height */
    /* Space for icon */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    outline: none;
    transition: all 0.3s;
}

.nav-search input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-orange);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

.nav-search svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

/* --- Hero Section --- */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 100px;
    /* Increased from 60px for more separation */
}

.hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-orange);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    top: 10%;
    left: 20%;
    animation: blob 10s infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--accent-cyan);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    bottom: 10%;
    right: 20%;
    animation: blob 15s infinite alternate-reverse;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient-main);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.5);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-orange);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    color: var(--accent-orange);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Product Grid --- */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.product-grid {
    display: grid;
    /* Force 3 columns if space permits, otherwise wrap usually handled by media queries, but user insists on 3. 
       Actually, to be safe and responsive: repeat(auto-fill, minmax(30%, 1fr)) or similar.
       But strict 3: repeat(3, 1fr). Use media query for mobile. */
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(249, 115, 22, 0.1);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: #2a364a;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-info {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, var(--bg-card), #162033);
}

.product-category {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-orange);
    transition: all 0.3s ease;
    margin-bottom: 1.2rem;
}

.product-card:hover .product-price {
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
}

.btn-buy {
    width: 100%;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    /* Restored subtle bg */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Restored subtle border */
    color: white;
    /* Restored white text */
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    position: relative;
}

.product-card:hover .btn-buy {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.btn-buy:hover {
    background: var(--gradient-main);
    color: white !important;
    border-color: transparent !important;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.4);
}

.btn-buy svg {
    transition: transform 0.3s ease;
}

.btn-buy:hover svg {
    transform: rotate(15deg) scale(1.2);
}

/* --- Search & Filters --- */
.controls-container {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border);
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-orange);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.filter-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    width: 100%;
    justify-content: center;
    -webkit-overflow-scrolling: touch;
}

.filter-pill {
    padding: 0.6rem 1.5rem;
    background: var(--bg-card);
    /* Solid dark card background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    /* Full pill shape */
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.filter-pill.active {
    background: var(--gradient-main);
    color: white;
    border-color: transparent;
    /* Maintain border width to prevent shift, or use transparent */
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    /* Glow effect for active */
    transform: translateY(-2px);
    font-weight: 600;
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: var(--glass-border);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Floating Chat Widget --- */
.chat-widget-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.5);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-widget-btn:hover {
    transform: scale(1.1);
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 999;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.chat-window.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    background: var(--gradient-main);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
    font-weight: 700;
}

.chat-info h3 {
    margin: 0;
    font-size: 1rem;
}

.chat-info span {
    font-size: 0.8rem;
    opacity: 0.9;
}

.chat-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-msg {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-msg.received {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-msg.sent {
    background: var(--accent-cyan);
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

.chat-footer {
    padding: 1rem;
    border-top: var(--glass-border);
    display: flex;
    gap: 10px;
    background: var(--bg-card);
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    color: white;
    font-family: inherit;
}

/* --- Advanced Navbar --- */
.nav-menu {
    display: flex;
    gap: 0.8rem;
    /* Reduced from 2rem */
    list-style: none;
    align-items: center;
}

.nav-link {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border */
    background: rgba(255, 255, 255, 0.02);
    /* Very subtle bg */
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--gradient-main);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    font-weight: 600;
    transform: translateY(-2px);
}

/* --- Mobile Menu --- */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* --- Product Detail Modal --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

@media (max-width: 768px) {
    .modal-backdrop {
        padding: 0 !important;
        background: var(--bg-dark);
        /* Solid background for takeover */
        z-index: 5000 !important;
        /* Above EVERYTHING including navbar */
    }
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.product-modal {
    background: var(--bg-card);
    width: 90%;
    max-width: 1100px;
    /* Wider for detail view */
    border-radius: 20px;
    border: var(--glass-border);
    display: flex;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-height: 90vh;
}

.modal-backdrop.active .product-modal {
    transform: scale(1);
}

.pm-image-container {
    flex: 1;
    background: #000;
    position: relative;
    min-height: 400px;
}

.pm-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pm-details {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.pm-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.pm-close:hover {
    background: var(--accent-orange);
}

.pm-category {
    color: var(--accent-cyan);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.pm-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.pm-price {
    font-size: 2rem;
    color: var(--accent-orange);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.pm-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.pm-meta {
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.pm-meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.pm-meta-row span:first-child {
    color: var(--text-secondary);
}

.pm-meta-row span:last-child {
    color: white;
    font-weight: 600;
}


/* --- Loader --- */
.loader-container {
    width: 100%;
    /* Force full width */
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically in container */
    padding: 2rem 0;
    grid-column: 1 / -1;
    /* For grid layouts */
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--accent-orange);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- Modal Sizes & actions --- */
.size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.size-chip {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: default;
}

.size-chip strong {
    color: var(--accent-cyan);
}

.size-chip:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-modal-buy {
    width: 100%;
    padding: 0.8rem;
    /* Reduced from 1.2rem */
    background: var(--gradient-main);
    border: none;
    border-radius: 12px;
    /* Slightly smaller radius */
    color: white;
    font-size: 1rem;
    /* Reduced from 1.1rem */
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-modal-buy:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.6);
}

.btn-modal-buy::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-modal-buy:hover::after {
    left: 100%;
    transition: 0.5s ease-in-out;
}

/* Default: Hide Mobile Drawer on Desktop */
.mobile-drawer,
.drawer-backdrop {
    display: none;
}

/* --- Mobile Drawer (Replaces old nav-menu) --- */
@media (max-width: 768px) {
    .nav-menu {
        display: none !important;
        /* Hide old menu completely on mobile */
    }

    .mobile-drawer {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: var(--bg-dark);
        z-index: 3500;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    }

    .mobile-drawer.active {
        right: 0;
    }

    .drawer-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        z-index: 3400;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }

    .drawer-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    /* Drawer Header */
    .drawer-header {
        padding: 1.5rem 2rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .drawer-brand {
        font-family: 'Outfit', sans-serif;
        font-weight: 800;
        font-size: 1.5rem;
        color: white;
    }

    .drawer-close {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    /* Drawer Search */
    .drawer-search {
        padding: 1.5rem 2rem;
        position: relative;
    }

    .drawer-search input {
        width: 100%;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem 1rem 1rem 3rem;
        border-radius: 15px;
        color: white;
        font-size: 1rem;
    }

    .drawer-search svg {
        position: absolute;
        left: 2.8rem;
        top: 50%;
        transform: translateY(-50%);
        color: rgba(255, 255, 255, 0.5);
    }

    /* Drawer Links (Rich Buttons) */
    .drawer-links {
        flex: 1;
        overflow-y: auto;
        padding: 0 1.5rem 2rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .drawer-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 16px;
        text-decoration: none;
        color: white;
        transition: all 0.2s ease;
    }

    .drawer-item:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.08);
    }

    .drawer-item.active {
        background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(236, 72, 153, 0.1));
        border-color: var(--accent-orange);
    }

    .drawer-icon {
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        color: var(--accent-orange);
    }

    .drawer-item.active .drawer-icon {
        background: var(--gradient-main);
        color: white;
    }

    .drawer-text {
        display: flex;
        flex-direction: column;
    }

    .drawer-text strong {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 2px;
    }

    .drawer-text span {
        font-size: 0.8rem;
        color: var(--text-secondary);
    }

    /* Drawer Footer */
    .drawer-footer {
        padding: 1.5rem;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(0, 0, 0, 0.2);
    }

    .drawer-footer p {
        color: var(--text-secondary);
        font-size: 0.85rem;
        margin-top: 5px;
    }

    /* Menu Toggle Button */
    .mobile-toggle {
        display: block;
        z-index: 3100;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .catalog-sidebar {
        display: none;
    }

    .sidebar-title {
        background: var(--bg-card);
        padding: 1.2rem 1.5rem;
        border-radius: 15px;
        border: var(--glass-border);
        margin-bottom: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        font-weight: 700;
    }

    .sidebar-title::after {
        content: '▼';
        font-size: 0.8rem;
        transition: transform 0.3s;
        color: var(--accent-orange);
    }

    .catalog-sidebar.active .sidebar-title::after {
        transform: rotate(180deg);
    }

    .catalog-sidebar .controls-container {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        background: var(--bg-card);
        margin-top: 5px;
        border-radius: 15px;
        padding: 0 1rem;
        border: 1px solid transparent;
    }

    .catalog-sidebar.active .controls-container {
        max-height: 500px;
        padding: 1rem 1.5rem;
        border: var(--glass-border);
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        margin-top: 60px !important;
        height: 70vh !important;
    }

    /* Mobile Chat Customizations */
    .chat-window {
        bottom: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        /* Dynamic Viewport Height */
        border-radius: 0 !important;
        max-height: none !important;
        z-index: 3000 !important;
    }

    .chat-header {
        padding: 1rem 1.5rem;
        display: flex;
        align-items: center;
    }

    .chat-close {
        display: flex !important;
        margin-left: auto;
        background: rgba(0, 0, 0, 0.2) !important;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        transition: background 0.3s;
    }

    .chat-widget-btn {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        z-index: 2000;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    }

    /* Product Full-Screen Takeover */
    .product-modal {
        flex-direction: column;
        width: 100% !important;
        height: 100% !important;
        height: 100dvh !important;
        max-height: none !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden;
        border: none !important;
        transform: none !important;
        background: var(--bg-dark);
    }

    .pm-image-container {
        min-height: 35vh !important;
        height: 35vh !important;
        background: #fff;
        position: relative;
    }

    .pm-details {
        padding: 4rem 1.5rem 5rem !important;
        height: auto !important;
        display: block !important;
    }

    .pm-category {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
        opacity: 0.8;
    }

    .pm-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.8rem !important;
        color: white !important;
        font-weight: 700 !important;
        line-height: 1.3;
    }

    .pm-price {
        font-size: 1.8rem !important;
        margin-bottom: 2rem !important;
        color: var(--accent-orange) !important;
        font-weight: 800 !important;
        display: block !important;
    }

    .pm-close {
        position: fixed !important;
        /* Floating above everything */
        top: 20px !important;
        right: 20px !important;
        background: #0f172a !important;
        /* Extremely solid dark */
        border: 2px solid var(--accent-orange) !important;
        /* Vibrant border */
        color: white !important;
        z-index: 5000 !important;
        /* Supreme priority */
        width: 48px !important;
        height: 48px !important;
        border-radius: 50% !important;
        font-size: 2rem !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* --- Header Search --- */
.nav-search {
    flex: 2;
    /* Increased flex to take more space */
    max-width: 600px;
    /* Increased from 400px */
    margin: 0 1.5rem;
    position: relative;
    display: none;
    /* Mobile first, hidden then shown */
}

@media (min-width: 769px) {
    .nav-search {
        display: block;
    }
}

.nav-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 0.6rem 1rem 0.6rem 2.8rem;
    border-radius: 20px;
    color: white;
    font-family: inherit;
    transition: background 0.3s, box-shadow 0.3s;
}

.nav-search input:focus {
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-orange);
}

.nav-search svg {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    width: 16px;
    height: 16px;
}

/* --- Size Chips --- */
.size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.size-chip {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: default;
}

.size-chip.available {
    border-color: var(--accent-cyan);
    color: white;
    background: rgba(6, 182, 212, 0.1);
}

.size-chip strong {
    color: var(--accent-cyan);
}

/* --- About Section --- */
.about-section {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, var(--bg-dark), #162033);
    text-align: center;
}

/* --- Catalog Layout --- */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    /* Sidebar Left, Content Right */
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        display: none;
    }

    .mobile-category-nav {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding: 0.5rem 1rem 1.5rem;
        margin: 0 -1rem 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        position: sticky;
        top: 80px;
        z-index: 100;
        background: var(--bg-dark);
    }

    .mobile-category-nav::-webkit-scrollbar {
        display: none;
    }

    .mobile-category-nav .filter-pill {
        flex: 0 0 auto;
    }
}

.mobile-category-nav {
    display: none;
}

.catalog-sidebar {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 20px;
    border: var(--glass-border);
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 120px);
}

.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

/* Override filter container for vertical stacking in sidebar */
.catalog-sidebar .controls-container {
    align-items: stretch;
    overflow-y: auto;
    flex: 1;
    padding: 10px 5px 15px 0;
    /* Custom Scrollbar for Sidebar */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-orange) rgba(255, 255, 255, 0.05);
}

.catalog-sidebar .controls-container::-webkit-scrollbar {
    width: 4px;
}

.catalog-sidebar .controls-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.catalog-sidebar .controls-container::-webkit-scrollbar-thumb {
    background-color: var(--accent-orange);
    border-radius: 10px;
}

.catalog-sidebar .filter-scroll {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    overflow: visible;
}

.catalog-sidebar .filter-pill {
    text-align: left;
    border-radius: 12px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* --- Promo Section (New Arrivals) --- */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.promo-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: var(--glass-border);
    position: relative;
    overflow: hidden;
    height: 250px;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(249, 115, 22, 0.1), transparent);
    z-index: 1;
}

.promo-card h3 {
    font-size: 2rem;
    z-index: 2;
    margin-bottom: 0.5rem;
}

.promo-card p {
    color: var(--text-secondary);
    z-index: 2;
}

@media (max-width: 768px) {
    .promo-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Fire Cursor Effect --- */
.fire-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(255, 255, 0, 1) 0%, rgba(255, 140, 0, 1) 50%, rgba(255, 69, 0, 0) 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.8;
    mix-blend-mode: screen;
}

/* --- Hero Slider --- */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    perspective: 1200px;
}

.hero-slide {
    position: absolute;
    width: 65%;
    /* Driven by width */
    aspect-ratio: 16/9;
    /* Force standard video/image ratio */
    height: auto;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    background: #000;
    overflow: hidden;
    /* Default Hidden State (for 4th+ slide) */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hero-slide.active {
    transform: translate3d(-50%, -50%, 0) scale(1.05);
    /* Slight pop */
    opacity: 1;
    visibility: visible;
    z-index: 20;
    /* Minimal Shadow (2px style) */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
}

.hero-slide.prev {
    /* Pushed further left (-130%) to reduce overlap */
    transform: translate3d(-130%, -50%, -250px) rotateY(25deg);
    opacity: 0.5;
    visibility: visible;
    z-index: 10;
    pointer-events: none;
    filter: blur(3px);
}

.hero-slide.next {
    /* Pushed further right (30%) to reduce overlap */
    transform: translate3d(30%, -50%, -250px) rotateY(-25deg);
    opacity: 0.5;
    visibility: visible;
    z-index: 10;
    pointer-events: none;
    filter: blur(3px);
}

.slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* SVG Water Effect Transition */
    transition: transform 1s ease, filter 1s ease;
}

/* Water Effect Removed as per request */
.hero-slide.active .slide-bg {
    /* No animation or filter */
    transform: none;
}

/* Removed keyframes settleWater */

/* Dots Container */
.slider-dots {
    position: absolute;
    bottom: 30px;
    /* Moved INSIDE the container (was -40px) */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 50;
    pointer-events: auto;
}

/* Base Dot */
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* Active Dot Filling Animation */
.dot.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-orange);
    border-radius: 50%;
    animation: dotFill 5s linear forwards;
}

@keyframes dotFill {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Short Gradient: Only covers the very bottom for text */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 20%);
    z-index: 2;
}

/* Content Container - Bottom Row Layout */
.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 3rem 4rem;
    z-index: 30;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 1;
    transform: translateZ(60px);
    pointer-events: none;
    /* Let clicks pass through empty areas */
}

/* Ensure interactive elements are clickable */
.slide-btn {
    pointer-events: auto;
}

/* Text - Left, Single Line, Animated */
.slide-content h2 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    /* Reduced text shadow */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
    margin: 0;
    white-space: nowrap;
    /* Force single line */
    opacity: 0;
    transform: translateX(-100px);
    /* Start from left */
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Global Button Cursor Fix */
button,
.btn,
.btn-primary,
.btn-secondary,
.btn-cta,
a.btn,
input[type="submit"],
.slide-btn {
    cursor: pointer !important;
}

/* Button - Right, Animated */
.slide-btn {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    background: var(--gradient-main);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 0 25px rgba(249, 115, 22, 0.5);
    border: none;
    cursor: pointer;
    margin: 0;
    opacity: 0;
    transform: translateX(100px);
    /* Start from right */
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    /* Ensure stacking context */
    z-index: 100;
    /* Lift above everything */
    pointer-events: auto;
    /* Force clickable */
}

/* Hover state needs to respect the active transform */
.hero-slide.active .slide-btn:hover {
    transform: translateX(0) scale(1.1);
    z-index: 101;
}

/* Animation Trigger State */
.hero-slide.active .slide-content h2 {
    opacity: 1;
    transform: translateX(0);
    /* Move into place */
    transition-delay: 0.3s;
    /* Wait for slide to settle */
}

.hero-slide.active .slide-btn {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.4s;
}

@media (max-width: 768px) {
    .hero-slide {
        width: 90%;
        height: 60vh;
        aspect-ratio: auto;
    }

    .hero-slide.prev {
        transform: translate3d(-120%, -50%, -100px);
    }

    .hero-slide.next {
        transform: translate3d(20%, -50%, -100px);
    }

    /* Mobile Layout - Stacked */
    .slide-content {
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        /* Center everything on mobile */
        text-align: center;
        padding: 2rem;
        gap: 1.5rem;
    }

    .slide-content h2 {
        font-size: 2rem;
        white-space: normal;
        transform: translateY(20px);
    }

    .slide-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        transform: translateY(20px);
    }

    .hero-slide.active .slide-content h2 {
        transform: translateY(0);
    }

    .hero-slide.active .slide-btn {
        transform: translateY(0);
    }
}

/* --- Chat Widget Overrides --- */
.chat-window {
    height: 650px !important;
    /* Even taller as requested */
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .chat-window {
        bottom: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        border-radius: 0 !important;
        max-height: none !important;
    }
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-orange) rgba(255, 255, 255, 0.05);
}

.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.chat-body::-webkit-scrollbar-thumb {
    background-color: var(--accent-orange);
    border-radius: 10px;
}

.chat-send {
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin-left: 8px;
}

.chat-send svg {
    stroke: var(--accent-orange) !important;
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.chat-send:hover svg {
    stroke: #ff8c42 !important;
    transform: scale(1.1);
}

.chat-send:active svg {
    transform: scale(0.95);
}

/* Image button specific styling */
#chatImageBtn {
    background: transparent !important;
    border: none !important;
    margin-left: 0;
    width: 40px;
}

#chatImageBtn svg {
    stroke: rgba(255, 255, 255, 0.7) !important;
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

#chatImageBtn:hover svg {
    stroke: white !important;
    transform: scale(1.1);
}

#chatImageBtn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#chatImageBtn:disabled svg {
    filter: grayscale(100%);
}

.chat-footer {
    padding: 1rem !important;
    background: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
}

.chat-input {
    height: 45px;
    border-radius: 25px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    padding-left: 20px !important;
}

/* Chat Message Styling Override */
.chat-msg {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 85%;
    position: relative;
    word-wrap: break-word;
}

.chat-msg.received {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    /* Glass effect */
    color: white;
    border-bottom-left-radius: 2px;
}

.chat-msg.sent {
    align-self: flex-end;
    /* Light Green as requested for high contrast */
    background: #ccfbf1;
    /* Soft Mint Green */
    border: none;
    color: #0f172a;
    /* Dark text for readability */
    border-bottom-right-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.chat-product-img {
    background: white;
}

/* Chat Registration Form */
.chat-reg-form {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 70px;
    background: var(--bg-dark);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.chat-reg-content {
    width: 100%;
    max-width: 350px;
}

.chat-reg-content h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.chat-form-input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.chat-form-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-orange);
}

.chat-form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.chat-form-submit {
    width: 100%;
    padding: 12px;
    background: var(--gradient-main);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 10px;
}

.chat-form-submit:hover {
    transform: translateY(-2px);
}

.chat-form-submit:active {
    transform: translateY(0);
}

.chat-form-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 10px;
    text-align: center;
    padding: 8px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 5px;
}

/* Aggressive Mobile Overrides to hide old sidebar and style new nav */
@media (max-width: 900px) {
    .catalog-sidebar {
        display: none !important;
    }

    .mobile-category-nav {
        display: flex !important;
        overflow-x: auto;
        gap: 12px;
        padding: 1rem 1rem 1.2rem;
        margin: 2rem -1rem 1.5rem;
        /* Adjusted to sweet spot */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        position: sticky;
        top: 75px;
        /* Fine-tuned based on feedback */
        z-index: 100;
        background: var(--bg-dark);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    }

    .mobile-category-nav::-webkit-scrollbar {
        display: none;
    }

    .mobile-category-nav .filter-pill {
        flex: 0 0 auto;
    }

    .catalog-layout {
        display: block !important;
    }

    /* Chat Avatar Image */
    .chat-avatar-img {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid white;
        margin-right: 12px;
        background: white;
        /* Ensure transparency looks good */
        padding: 2px;
    }
}

/* PWA Install Prompt - Global / Desktop Modal */
.install-prompt-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    display: none;
    animation: fadeIn 0.3s ease;
}

.install-prompt-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    color: white;
    z-index: 9999;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(249, 115, 22, 0.2);
    animation: modalPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.install-prompt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #f97316, #ec4899);
}

.install-icon img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.4));
}

.install-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
    color: #fff;
}

.install-content p {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.install-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: center;
}

.btn-primary-sm {
    background: linear-gradient(135deg, #f97316, #ec4899);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
    flex: 1;
    max-width: 200px;
}

.btn-primary-sm:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(249, 115, 22, 0.4);
}

.btn-text-sm {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.btn-text-sm:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .install-prompt-card {
        top: auto;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        transform: none;
        width: auto;
        max-width: none;
        flex-direction: row;
        text-align: left;
        padding: 1.2rem;
        gap: 1rem;
        border-radius: 16px;
        animation: slideUpFade 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .install-prompt-card::before {
        width: 4px;
        height: 100%;
        top: 0;
        left: 0;
    }

    .install-icon img {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .install-content h3 {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }

    .install-content p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }

    .install-actions {
        justify-content: flex-start;
        gap: 0.8rem;
    }

    .btn-primary-sm,
    .btn-text-sm {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        flex: none;
    }

    .install-prompt-backdrop {
        display: none !important;
    }
}

/* Restored Chat Avatar (Text) */
.chat-avatar {
    width: 40px;
    height: 40px;
    background: white;
    color: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}