:root {
    --cho-ivory: #F7F5F2;
    --cho-dark: #1F1F1F;
    --cho-gold: #C6A769;
    --cho-white: #FFFFFF;
    --cho-glass: rgba(255, 255, 255, 0.6);
    --cho-border: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--cho-ivory);
    overflow: hidden;
}

.chat-bg-photo {
    position: fixed;
    inset: 0;
    background-image: url('images/BG4325.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.95) saturate(0.9);
    z-index: 0;
}

.app-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    backdrop-filter: blur(4px);
}

/* HEADER */
.main-header {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr; 
    align-items: center;
    padding: 15px 30px;
    width: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(20px);
}

.header-item.left {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 15px;
    justify-self: start;
}

.visit-btn .short-text { display: none; }

.header-item.center {
    justify-self: center;
}

.header-item.right {
    justify-self: end;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 15px;
    border-left: 1px solid rgba(198, 167, 105, 0.3);
    height: 20px;
}

.social-icon {
    color: var(--cho-gold);
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-icon:hover {
    opacity: 1;
    color: #FFFFFF;
    transform: translateY(-2px);

}
.logo {
    height: 55px !important; 
    width: auto !important;
    display: block;
    margin: 0 auto;
}

.nav-btn {
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--cho-gold);
    padding: 8px 16px;
    border: 1.5px solid var(--cho-gold);
    border-radius: 20px;
    background: rgba(198, 167, 105, 0.05);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(198, 167, 105, 0.15);
}

.nav-btn:hover {
    background: var(--cho-gold);
    color: white;
    box-shadow: 0 4px 15px rgba(198, 167, 105, 0.4);
    transform: translateY(-1px);
}

.nav-btn.gold {
    border: 1px solid var(--cho-gold);
    color: var(--cho-gold);
}

.nav-btn.gold:hover {
    background: var(--cho-gold);
    color: white;
}

.logo-img {
    height: 22px;
    opacity: 0.9;
}

.chat-viewport {
    flex: 1;
    overflow-y: auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.msg-wrapper {
    display: flex;
    gap: 10px;
    max-width: 75%;
}

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

.ai-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--cho-gold);
    background-image: url('images/butterfly.png');
    background-size: cover;
    background-position: center;
    border: 2px solid var(--cho-gold);
    flex-shrink: 0;
}

/* BUBBLES */
.ai .bubble {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(20px);
    border-left: 4px solid var(--cho-gold) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px 24px 24px 24px !important;

    color: #2C2C2C !important;
    font-size: 16px;
    line-height: 1.6;
    padding: 10px 18px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.ai-name {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 8px;
    color: var(--cho-gold);
    letter-spacing: 0.5px;
}

.user .bubble {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(20px);
    border-right: 4px solid var(--cho-gold) !important;
    border-left: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);

    border-radius: 24px 2px 24px 24px !important;

    color: #2C2C2C !important;
    font-size: 16px;
    line-height: 1.6;
    padding: 20px 28px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.user-name {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 8px;
    color: var(--cho-gold);
    letter-spacing: 0.5px;
    text-align: right;
}

/* FOOTER & QUICK ACTIONS */
.footer-area {
    padding: 20px 40px 40px;
}

.quick-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.action-btn {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);

    font-size: 10px !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px !important;

    padding: 12px 24px !important;
    border-radius: 30px;
    backdrop-filter: blur(12px);

    transition: all 0.4s ease;
    cursor: pointer;
}

.action-btn:hover {
    background: var(--cho-gold) !important;
    border-color: var(--cho-gold) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(198, 167, 105, 0.3);
    text-shadow: none;
}

.input-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 40px;
    padding: 10px 12px 10px 30px;
    display: flex;
    align-items: center;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    cursor: text;
}

#chat-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    color: #1F1F1F !important;
    padding: 10px 0;
}

#chat-input::placeholder {
    color: rgba(44, 44, 44, 0.8);
    font-weight: 400;
}

.send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--cho-gold);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(198, 167, 105, 0.5);
}

.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 10px;
    width: 280px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-info h4 {
    margin: 0;
    font-family: 'Tenor Sans', sans-serif;
    color: #333;
}

.product-info p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    max-height: none !important; 
}

.buy-button {
    margin-top: 10px;
    display: inline-block;
    padding: 10px;
    background: #333;
    color: #fff !important;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    font-size: 12px;
    transition: 0.3s;
    position: relative;
    z-index: 10;
}

.buy-button:hover {
    background: #C6A769;
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
}
.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.modal-content h3 { font-weight: 300; margin-bottom: 15px; color: #333; }
.modal-content p { font-size: 14px; color: #666; margin-bottom: 25px; line-height: 1.6; }
.modal-content input {
    width: 100%; padding: 12px; border: 1px solid #eee;
    border-radius: 25px; margin-bottom: 20px; outline: none; text-align: center;
}
.modal-submit-btn {
    background: #333; color: #fff; border: none;
    padding: 12px 30px; border-radius: 25px; cursor: pointer; transition: 0.3s;
}
.modal-submit-btn:hover { background: #555; }

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: #f8f8f8;
    border-radius: 18px;
    width: fit-content;
    margin-left: 10px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #C6A769;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1.1); opacity: 1; }
}
.scroll-btn {
    position: fixed;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #333;
    border: 1px solid #eee;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    transition: 0.3s;
}

.scroll-btn:hover {
    background: #fdfdfd;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.medical-disclaimer {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-top: 8px;
    font-family: 'Inter', sans-serif; 
    letter-spacing: 0.3px;
    line-height: 1.2;
}

@media (max-width: 600px) {
    .main-header {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr; 
        gap: 10px;
        padding: 15px 15px !important;
    }

    .visit-btn .full-text { display: none; }
    .visit-btn .short-text { display: inline; }

    .header-item.left {
        justify-self: start;
    }

    .header-item.center {
        justify-self: center;
    }

    .header-item.right {
        justify-self: end;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .nav-btn {
        padding: 6px 10px !important;
        font-size: 10px !important;
        white-space: nowrap;
    }

    .logo {
        height: 8px;
    }

    .social-links {
        display: flex;
        align-items: center;
    }

    .social-icon svg {
        width: 16px;
        height: 16px;
    }
    .quick-actions {
        gap: 8px !important;
        padding: 0 10px !important;
        justify-content: center;
    }

    .action-btn {
        padding: 6px 12px !important;
        letter-spacing: 0.7px !important;
        border-radius: 20px !important;
        white-space: nowrap;
        min-width: auto !important;
    }
}