:root {
    --bg-dark: #0a0a0c;
    --bg-panel: #16161a;
    --deep-rose: #ff2a6d;
    --soft-lavender: #1f1f2e;
    --blush-pink: #05d9e8;
    --accent-purple: #b967ff;
    --text-light: #f5f5f5;
    --text-dark: #000000;
    --border-color: #2a2a35;
    --chip-bg: #1f1f2e;
    --chip-border: #333344;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-container {
    width: 100%;
    max-width: 900px;
    height: 95vh;
    background-color: var(--bg-panel);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}

.app-header {
    background-color: var(--deep-rose);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    flex-direction: column;
}

.header-left h1 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-light);
}

.subtitle {
    font-size: 0.85rem;
    color: #e0e0e0;
    margin-top: 2px;
    opacity: 0.9;
}

.status {
    font-size: 0.85rem;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    border-radius: 50%;
    display: inline-block;
}

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

.message {
    display: flex;
    gap: 12px;
    max-width: 85%;
}

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-image: url('bot_avatar.png');
    background-size: cover;
    background-position: center;
    color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.message.user .avatar {
    display: none;
}

.bubble {
    padding: 14px 18px;
    border-radius: 16px;
    line-height: 1.6;
    font-size: 1rem;
}

.message.bot .bubble {
    background: linear-gradient(135deg, var(--soft-lavender), #2a2a3e);
    color: var(--text-light);
    border-top-left-radius: 4px;
    box-shadow: 0 4px 15px rgba(185, 103, 255, 0.15);
    border: 1px solid rgba(185, 103, 255, 0.2);
    backdrop-filter: blur(10px);
}

.message.user .bubble {
    background: linear-gradient(135deg, var(--deep-rose), #ff4d85);
    color: var(--text-light);
    border-top-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(255, 42, 109, 0.4);
}

.bottom-area {
    padding: 16px 24px 24px 24px;
    background: rgba(22, 22, 26, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
}

.quick-chips {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.quick-chips::-webkit-scrollbar {
    height: 4px;
}
.quick-chips::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

.chip {
    background-color: transparent;
    color: #e0e0e0;
    border: 1px solid var(--chip-border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.chip:hover {
    background-color: rgba(255,255,255,0.05);
    border-color: #888;
}

.input-area {
    display: flex;
    gap: 12px;
}

.input-area input {
    flex: 1;
    background-color: #1e1e1e;
    border: 1px solid var(--border-color);
    color: white;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.input-area input:focus {
    border-color: var(--deep-rose);
}

.input-area button {
    background-color: #3a1524;
    color: white;
    border: 1px solid var(--deep-rose);
    padding: 0 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.input-area button:hover {
    background-color: var(--deep-rose);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    padding: 0 24px 16px 24px;
    gap: 12px;
}

.typing-indicator.hidden {
    display: none;
}

.bubble.typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 18px;
    height: 46px;
    background-color: var(--soft-lavender);
    border-top-left-radius: 4px;
    border: 1px solid var(--border-color);
}

.bubble.typing span {
    width: 6px;
    height: 6px;
    background-color: var(--accent-purple);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.bubble.typing span:nth-child(1) { animation-delay: -0.32s; }
.bubble.typing span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Modal Overlay */
.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}
.overlay.hidden {
    display: none;
}
.modal {
    background: var(--bg-panel);
    padding: 32px;
    border-radius: 16px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.modal h2 { 
    margin-bottom: 12px; 
    color: var(--blush-pink);
    font-weight: 600;
}
.modal p { 
    font-size: 0.95rem; 
    color: #ccc; 
    margin-bottom: 24px; 
    line-height: 1.5; 
}
.modal input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #1e1e1e;
    color: white;
    font-size: 1rem;
    outline: none;
}
.modal input:focus {
    border-color: var(--blush-pink);
}
.modal button {
    background: var(--deep-rose);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    width: 100%;
    transition: opacity 0.2s;
}
.modal button:hover {
    opacity: 0.9;
}

/* --- HOME PAGE STYLES --- */
.home-body {
    display: block;
    height: auto;
    overflow-x: hidden;
    background: radial-gradient(circle at top right, #2a1120 0%, var(--bg-dark) 40%);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 6%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-btn {
    background: var(--deep-rose);
    padding: 10px 24px;
    border-radius: 30px;
    color: var(--text-light) !important;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 42, 109, 0.4);
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 6% 120px;
    min-height: 85vh;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--blush-pink), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 40px;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--deep-rose), var(--accent-purple));
    color: white;
    padding: 16px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(75, 62, 142, 0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: white;
    padding: 16px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s;
}

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

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.glow-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 6s infinite alternate;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.5; }
}

.hero-image {
    position: relative;
    z-index: 1;
    max-width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
    transform: translateY(0);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Features Section */
.features-section {
    padding: 80px 6% 120px;
    background: var(--bg-dark);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-light);
}

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

.feature-card {
    background: rgba(42, 42, 42, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 40px 30px;
    border-radius: 20px;
    transition: transform 0.3s, background 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(42, 42, 42, 0.8);
    border-color: rgba(255,255,255,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--text-light);
}

.feature-card p {
    color: #a0a0a0;
    line-height: 1.6;
}

/* Footer */
.footer {
    padding: 40px 6%;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #151515;
    text-align: center;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 12px;
}

.footer p {
    color: #666;
    font-size: 0.9rem;
}

/* Product Banner */
.product-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 40px 6% 120px;
    padding: 60px;
    background: linear-gradient(135deg, var(--bg-panel) 0%, #1a101d 100%);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.product-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at right bottom, rgba(255, 42, 109, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.banner-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.banner-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
}

.banner-content p {
    font-size: 1.1rem;
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 30px;
}

.brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.brand-tags span {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--blush-pink);
    font-weight: 500;
}

.banner-visual {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.shopping-bag-icon {
    font-size: 8rem;
    filter: drop-shadow(0 0 30px rgba(5, 217, 232, 0.4));
    animation: bounce-bag 4s ease-in-out infinite;
}

@keyframes bounce-bag {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* Chat Layout Wrapper */
.chat-layout-wrapper {
    flex: 1;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    background: rgba(22, 22, 26, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Tablets & iPads (max-width: 900px) */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 60px;
        min-height: auto;
    }
    .hero-title { font-size: 3.2rem; }
    .hero-actions { justify-content: center; }
    .nav-links { display: none; }
    
    .product-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
        margin: 40px 4% 80px;
    }
    .brand-tags {
        justify-content: center;
    }
    .banner-visual {
        margin-top: 40px;
    }
    .banner-content h2 {
        font-size: 2.2rem;
    }
    
    .chat-layout-wrapper {
        margin: 10px;
        width: calc(100% - 20px);
        max-width: none;
    }
}

/* Mobile Devices (max-width: 600px) */
@media (max-width: 600px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-actions { flex-direction: column; gap: 15px; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
    
    .features-section { padding: 60px 4% 80px; }
    .section-title { font-size: 2rem; margin-bottom: 40px; }
    
    .product-banner { padding: 30px 20px; }
    .banner-content h2 { font-size: 1.8rem; }
    .shopping-bag-icon { font-size: 6rem; }
    
    .navbar { padding: 16px 4%; }
    .nav-logo { font-size: 1.4rem; }
    
    /* Make chat almost full screen on mobile */
    .chat-layout-wrapper {
        margin: 0;
        width: 100%;
        border-radius: 0;
        border: none;
        box-shadow: none;
        margin-bottom: 0;
    }
    
    .chat-container { padding: 16px; }
    .message.bot .bubble, .message.user .bubble { font-size: 0.95rem; padding: 12px 16px; }
    
    .bottom-area { padding: 12px 16px 16px 16px; }
    .input-area input { font-size: 0.95rem; padding: 12px 16px; }
    .input-area button { padding: 0 16px; font-size: 0.95rem; }
    .chip { font-size: 0.85rem; padding: 6px 12px; }
}
