
.ai-fab { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: var(--primary); color: var(--accent); border-radius: 30%; display: flex; align-items: center; justify-content: center; font-size: 30px; cursor: pointer; box-shadow: 0 10px 25px rgba(0,0,0,0.3); transition: all 0.3s; z-index: 8999; border: 2px solid var(--accent); }
.ai-fab:hover { transform: scale(1.1) rotate(10deg); background: var(--accent); color: var(--primary); }
.ai-panel { position: fixed; bottom: 100px; right: 30px; width: 380px; height: 500px; max-height: 70vh; background: white; border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); display: none; flex-direction: column; overflow: hidden; z-index: 9998; border: 1px solid rgba(255,255,255,0.1); animation: slideUp 0.3s ease; }

@media (max-width: 900px) {
    .ai-fab {
        bottom: calc(85px + env(safe-area-inset-bottom, 0px));
        right: -25px; 
        width: 50px; height: 50px; font-size: 24px;
        opacity: 0.6;
    }
    .ai-fab:hover, .ai-fab:active {
        right: 10px; opacity: 1; transform: none;
    }
    .ai-panel {
        bottom: calc(85px + env(safe-area-inset-bottom, 0px));
        right: 5%; width: 90%; height: 60vh;
    }
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ai-header { background: var(--primary); color: white; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--accent); }
.ai-body { flex: 1; padding: 20px; overflow-y: auto; background: #f8fafc; display: flex; flex-direction: column; gap: 12px; }
.ai-msg { padding: 10px 14px; border-radius: 12px; max-width: 85%; font-size: 0.9rem; line-height: 1.5; animation: fadeIn 0.3s; }
.ai-msg.bot { background: white; border: 1px solid #e2e8f0; border-bottom-left-radius: 2px; color: var(--text-main); }
.ai-msg.user { background: var(--primary); color: white; align-self: flex-end; border-bottom-right-radius: 2px; }
.ai-opts { padding: 12px; background: white; border-top: 1px solid #e2e8f0; display: flex; gap: 8px; flex-wrap: wrap; }
.ai-chip { font-size: 0.8rem; padding: 6px 12px; border: 1px solid #e2e8f0; border-radius: 20px; cursor: pointer; transition: 0.2s; background: white; color: var(--primary); }
.ai-chip:hover { background: var(--accent); color: var(--primary); border-color: var(--accent); }

.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 40px; }
.sitemap-section { background: white; padding: 25px; border-radius: 16px; border: 1px solid #e2e8f0; }
.sitemap-title { font-size: 1.2rem; color: var(--primary); margin-bottom: 15px; border-bottom: 2px solid var(--accent); padding-bottom: 10px; display: inline-block; }
.sitemap-list { list-style: none; padding: 0; }
.sitemap-list li { margin-bottom: 8px; }
.sitemap-list a { color: var(--text-muted); text-decoration: none; transition: 0.2s; font-size: 0.95rem; }
.sitemap-list a:hover { color: var(--accent); padding-left: 5px; }

.booking-body { background-color: #f1f5f9; color: #1e293b; margin: 0; height: 100vh; display: flex; overflow: hidden; }
.booking-sidebar { width: 280px; background: #0f172a; color: white; display: flex; flex-direction: column; padding: 24px; box-shadow: 4px 0 24px rgba(0,0,0,0.1); z-index: 50; overflow-y: auto; transition: transform 0.3s ease; }
.booking-main { flex: 1; display: flex; flex-direction: column; overflow-y: auto; position: relative; }
.booking-header { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); padding: 16px 32px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 40; }
.booking-content { padding: 32px; max-width: 1400px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.booking-config-bar { background: white; border-radius: 16px; padding: 24px; display: flex; align-items: center; gap: 32px; box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); margin-bottom: 24px; border: 1px solid #e2e8f0; flex-wrap: wrap; }
.booking-slot-card { background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; text-align: center; cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden; }
.booking-slot-card:hover:not(.disabled) { border-color: #d4af37; transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1); z-index: 2; }
.booking-slot-card.disabled { opacity: 0.5; background: #f8fafc; cursor: not-allowed; filter: grayscale(100%); }

.profile-orders-table {
    min-width: 700px;
}

.ai-typing {
    display: flex;
    gap: 5px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    width: fit-content;
    align-items: center;
    animation: fadeIn 0.3s;
}
.ai-typing span {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: aiBounce 1.4s infinite ease-in-out both;
}
.ai-typing span:nth-child(1) { animation-delay: -0.32s; }
.ai-typing span:nth-child(2) { animation-delay: -0.16s; }

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

.ai-rich-card {
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.ai-rich-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.ai-rich-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}
.ai-rich-card-body {
    padding: 12px;
}
.ai-rich-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--primary);
    line-height: 1.3;
}
.ai-rich-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}