:root {
    --primary: #0f172a;
    --secondary: #1e6f5c;
    --accent: #10b981;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.82);
    --border: rgba(226, 232, 240, 0.8);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Inter', sans-serif; background: var(--bg-light); color: var(--text-main); }
h1,h2,h3,h4 { font-family: 'Outfit', sans-serif; }

/* Global Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 800;
}

.logo i { color: var(--secondary); font-size: 1.8rem; }

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--secondary); }

.nav-btn {
    background: var(--secondary);
    color: white !important;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Global Footer */
footer {
    padding: 5rem 2rem 2rem;
    background: #fff;
    border-top: 1px solid var(--border);
}

.footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h3 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.footer-links h4 { margin-bottom: 1.5rem; font-size: 1rem; }
.footer-links ul { list-style: none; }
.footer-links li { 
    margin-bottom: 0.8rem; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    color: var(--text-muted); 
    font-size: 0.95rem; 
}
.footer-links li i { 
    color: var(--secondary); 
    width: 20px; 
    text-align: center; 
    font-size: 1rem;
}
.footer-links a { text-decoration: none; color: inherit; transition: color 0.2s; }
.footer-links a:hover { color: var(--secondary); }

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-links { display: flex; gap: 1.2rem; }
.social-links a { color: var(--text-muted); font-size: 1.2rem; }

/* Chat CSS */
/* --- CHAT SYSTEM STYLES (Synced with style.css) --- */
.chat-widget {
    position: fixed; bottom: 20px; right: 20px; width: 380px; height: 520px;
    display: flex; border-radius: 24px; overflow: hidden; z-index: 2000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1); color: white;
    font-family: 'Inter', sans-serif;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
}

.chat-header {
    position: absolute; top: 0; right: 0; left: 0; height: 60px;
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; z-index: 50; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-info { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: white; }
.chat-actions { display: flex; gap: 10px; align-items: center; }
.chat-actions button { background: rgba(255,255,255,0.05); border: none; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; transition: 0.2s; }
.chat-actions button:hover { background: #1e6f5c; transform: scale(1.1); }

.chat-sidebar {
    width: 64px; background: rgba(0, 0, 0, 0.4); display: flex; flex-direction: column;
    padding-top: 64px; border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.group-item {
    width: 40px; height: 40px; margin: 10px auto; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.5);
}

.group-item.active, .group-item:hover {
    background: #1e6f5c; color: white; transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 111, 92, 0.3);
}

.chat-main {
    flex: 1; display: flex; flex-direction: column; padding-top: 60px;
    background: rgba(15, 23, 42, 0.2);
}

.chat-messages {
    flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column;
    gap: 20px; scroll-behavior: smooth;
}

.msg-bubble {
    max-width: 80%; padding: 14px 18px; border-radius: 20px; font-size: 13px;
    line-height: 1.6; position: relative; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.msg-bubble.them {
    align-self: flex-start; background: rgba(45, 55, 72, 0.9);
    color: #e2e8f0; border-bottom-left-radius: 4px;
}

.msg-bubble.me {
    align-self: flex-end; background: linear-gradient(135deg, #1e6f5c, #0b4f5c);
    color: white; border-bottom-right-radius: 4px;
}

.msg-user { 
    font-size: 10px; margin-bottom: 8px; 
    display: flex; justify-content: space-between; align-items: center; 
}
.msg-user b { font-weight: 700; color: #10b981; }
.msg-user small { opacity: 0.6; color: white; }

.msg-img { margin-top: 10px; }
.msg-img img { 
    max-width: 100%; border-radius: 12px; cursor: pointer; 
    transition: 0.3s; border: 1px solid rgba(255,255,255,0.1); 
}

.chat-input-area {
    padding: 16px 20px; background: rgba(15, 23, 42, 0.8); display: flex;
    gap: 12px; align-items: center; border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input-area input {
    flex: 1; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px; padding: 12px 18px; color: white; font-size: 14px; outline: none;
}
.chat-input-area input:focus { border-color: #10b981; }

.chat-input-area button {
    background: rgba(255,255,255,0.05); border: none; color: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px; transition: 0.2s;
}
.chat-input-area button:hover { background: #1e6f5c; transform: scale(1.05); }

#chat-widget.minimized {
    height: 56px; width: 220px; border-radius: 14px; cursor: pointer;
}
#chat-widget.minimized:hover { transform: translateY(-2px); }
#chat-widget.minimized .chat-sidebar, #chat-widget.minimized .chat-main { display: none; }
#chat-widget.minimized .chat-header { border-bottom: none; height: 100%; border-radius: 14px; }

/* Mobile Adaptive Chat Widget */
@media (max-width: 768px) {
    .chat-widget {
        width: 95% !important;
        height: 70vh !important;
        bottom: 10px !important;
        right: 2.5% !important;
        border-radius: 20px !important;
    }
    
    .chat-widget.minimized {
        width: 140px !important;
        height: 50px !important;
        bottom: 20px !important;
        right: 20px !important;
    }

    .chat-sidebar {
        width: 50px !important;
    }

    .group-item {
        width: 32px !important;
        height: 32px !important;
        margin: 8px auto !important;
    }

    .chat-input-area {
        padding: 10px !important;
    }

    .chat-input-area input {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }

    .msg-bubble {
        max-width: 90% !important;
        padding: 10px 14px !important;
    }

    .chat-actions button {
        width: 36px !important;
        height: 36px !important;
    }
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

.nav-burger {
    display: none;
    font-size: 1.8rem; /* Slightly larger for better tap target */
    cursor: pointer;
    color: var(--primary) !important;
    padding: 10px;
    z-index: 2000; /* Ensure it's above everything */
    position: relative;
    margin-left: auto; /* Push it to the right */
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        display: flex !important; /* Force flex since we want a column in the drawer */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        z-index: 1005;
        gap: 2.5rem !important;
        visibility: hidden;
    }

    .nav-links.nav-active {
        transform: translateX(-300px);
        visibility: visible;
    }

    .nav-burger { 
        display: flex; 
        align-items: center;
        justify-content: center;
    }
    
    .nav-extra { display: none; }
    
    .logo { 
        font-size: 1.2rem;
        z-index: 1006;
    }

    .navbar {
        height: 70px;
    }
}
/* Catchy & Premium Product Styling */
.product-card {
    position: relative;
    background: white;
    padding: 2.2rem;
    border-radius: 32px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 25px 60px -20px rgba(15, 23, 42, 0.15);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(30, 111, 92, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.product-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, var(--secondary), #0b4f5c);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
    box-shadow: 0 10px 25px -5px rgba(30, 111, 92, 0.4);
    transition: transform 0.4s;
    z-index: 1;
}

.product-card:hover .product-icon {
    transform: rotate(-8deg) scale(1.1);
}

.product-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--secondary);
    background: rgba(30, 111, 92, 0.08);
    padding: 6px 14px;
    border-radius: 50px;
    width: fit-content;
    margin-bottom: 1.2rem;
}

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

.product-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
    flex-grow: 1;
}

.product-selection {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 2;
}

.product-selection input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--secondary);
    border-radius: 6px;
}

.product-card.selected {
    border: 2px solid var(--secondary);
    background: rgba(30, 111, 92, 0.02);
    box-shadow: 0 15px 45px -10px rgba(30, 111, 92, 0.2);
}

.product-price-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.03);
}

.old-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.current-price {
    color: var(--secondary);
    font-size: 1.6rem;
    font-weight: 800;
}

.secondary-btn {
    text-decoration: none;
    background: rgba(30, 111, 92, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(30, 111, 92, 0.2);
    border-radius: 50px;
    font-weight: 700;
    transition: 0.2s;
}

.secondary-btn:hover {
    background: rgba(30, 111, 92, 0.2);
}

/* Chat Unread Badge */
.unread-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.8);
    pointer-events: none;
    animation: badgePulse 2s infinite;
    z-index: 10;
}

@keyframes badgePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Floating Demo Bar */
.demo-request-bar {
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 1.2rem 2rem;
    color: white;
    z-index: 2000;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5);
}

.demo-request-bar.show {
    bottom: 30px;
}

.demo-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.demo-info strong {
    color: var(--accent);
    font-size: 1.2rem;
}

.demo-actions {
    display: flex;
    gap: 15px;
}

.clear-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

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

@media (max-width: 768px) {
    .demo-bar-content { flex-direction: column; gap: 15px; text-align: center; }
    .demo-actions { width: 100%; }
    .demo-actions button { flex: 1; }
}

/* Premium Modal & Form Upgrades */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; z-index: 3000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1; visibility: visible;
}

.modal-content.glass-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 28px;
    padding: 3rem;
    box-shadow: 0 25px 80px -20px rgba(0, 0, 0, 0.15);
    width: 95%; max-width: 720px;
    transform: translateY(40px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header { 
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem; 
}
.modal-header h3 { font-size: 1.8rem; color: var(--primary); display: flex; align-items: center; gap: 15px; }
.modal-header h3 i { color: var(--secondary); opacity: 0.8; }

.close-modal {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 10px;
    margin: -10px;
    transition: color 0.2s, transform 0.2s;
}

.close-modal:hover {
    color: var(--danger);
    transform: scale(1.1);
}

.selected-summary {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(30, 111, 92, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 1.2rem 1.8rem;
    border-radius: 16px;
    font-size: 1rem;
    color: var(--primary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.selected-summary strong { color: var(--secondary); font-weight: 800; }

.form-grid-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-left: 4px;
    opacity: 0.9;
}

.glass-input {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-main);
    width: 100%;
}

.glass-input:focus {
    outline: none;
    border-color: var(--secondary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(30, 111, 92, 0.08);
    transform: translateY(-1px);
}

.privacy-check {
    margin: 1.5rem 0 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.privacy-check input[type="checkbox"] {
    width: 18px; height: 18px; margin-top: 2px;
    accent-color: var(--secondary);
    cursor: pointer;
}

.privacy-check a { color: var(--secondary); font-weight: 700; text-decoration: none; border-bottom: 1.5px solid transparent; transition: 0.2s; }
.privacy-check a:hover { border-color: var(--secondary); }

.w-full { width: 100%; }
.mt-2 { margin-top: 1.5rem; }

.primary-btn.w-full {
    height: 60px;
    font-size: 1.1rem;
    border-radius: 16px;
    letter-spacing: 0.5px;
    background: var(--primary);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
}

.primary-btn.w-full:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -8px rgba(15, 23, 42, 0.3);
}

@media (max-width: 600px) {
    .modal-content.glass-card { padding: 2rem; border-radius: 20px; }
    .form-grid-modal { grid-template-columns: 1fr; gap: 16px; }
    .modal-header h3 { font-size: 1.5rem; }
}
