:root {
    --hkchatbot-primary: #0073aa;
    --hkchatbot-primary-alt: #0056b3;
    --hkchatbot-background: #ffffff;
    --hkchatbot-window: #f9f9f9;
    --hkchatbot-text: #1f2937;
    --hkchatbot-user-bubble: #0073aa;
    --hkchatbot-bot-bubble: #f3f4f6;
    --hkchatbot-on-primary: #ffffff;
    --hkchatbot-shadow: rgba(15, 23, 42, 0.22);
    --hkchatbot-border: #e5e7eb;
    --hkchatbot-hover: #f9fafb;
    --hkchatbot-timestamp: #6b7280;
}

#chat-icon {
    position: fixed;
    bottom: 24px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--hkchatbot-primary) 0%, var(--hkchatbot-primary-alt) 100%);
    color: var(--hkchatbot-on-primary);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 115, 170, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: hkchatbot-pulse 2s infinite;
}

#chat-icon:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 115, 170, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: none;
}

#chat-icon i {
    font-size: 1.6em;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation de rotation pour l'icône de fermeture */
#chat-icon.is-close-btn {
    animation: none;
}

#chat-icon.is-close-btn i {
    transform: rotate(90deg);
}

#chat-icon.is-close-btn:hover i {
    transform: rotate(180deg);
}

@keyframes hkchatbot-pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(0, 115, 170, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 8px 24px rgba(0, 115, 170, 0.5), 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 0 8px rgba(0, 115, 170, 0.1);
    }
}

#chat-icon.hkchatbot-launcher-right {
    right: 20px;
    left: auto;
}

#chat-icon.hkchatbot-launcher-left {
    left: 20px;
    right: auto;
}

#chat-icon.hkchatbot-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
}

#wp-openai-chat {
    position: fixed;
    bottom: 100px;
    width: 420px;
    max-height: 680px;
    background: var(--hkchatbot-background);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: var(--hkchatbot-closed-transform, translateY(20px) scale(0.96));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
}

#wp-openai-chat.hkchatbot-launcher-right {
    right: 20px;
    left: auto;
}

#wp-openai-chat.hkchatbot-launcher-left {
    left: 20px;
    right: auto;
}

#wp-openai-chat.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: var(--hkchatbot-open-transform, translateY(0) scale(1));
}

#wp-openai-chat.hkchatbot-animation-fade {
    --hkchatbot-closed-transform: translateY(20px) scale(0.96);
    --hkchatbot-open-transform: translateY(0) scale(1);
}

#wp-openai-chat.hkchatbot-animation-slide {
    --hkchatbot-closed-transform: translateY(80px) scale(0.95);
    --hkchatbot-open-transform: translateY(0) scale(1);
}

#wp-openai-chat.hkchatbot-animation-zoom {
    --hkchatbot-closed-transform: scale(0.85) translateY(20px);
    --hkchatbot-open-transform: scale(1) translateY(0);
}

#chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 20px;
    background: linear-gradient(135deg, var(--hkchatbot-primary) 0%, var(--hkchatbot-primary-alt) 100%);
    color: var(--hkchatbot-on-primary);
    font-weight: 600;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

#chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.chat-bot-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: white;
    position: relative;
}

.chat-bot-avatar::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.5);
}

.chat-bot-title {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    gap: 2px;
}

.discuss-text {
    font-size: 0.82em;
    opacity: 0.92;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.discuss-text strong {
    font-weight: 600;
}

#chat-close {
    cursor: pointer;
    font-size: 1.3em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

#chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

#chat-close:active {
    transform: rotate(90deg) scale(0.95);
}

#chat-window {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px 20px;
    background: var(--hkchatbot-window);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 220px;
    scroll-behavior: smooth;
}

#chat-window::-webkit-scrollbar {
    width: 8px;
}

#chat-window::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
    margin: 8px 0;
}

#chat-window::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

#chat-window::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
    background-clip: padding-box;
}

#chat-input-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--hkchatbot-background);
    border-top: 1px solid var(--hkchatbot-border);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
}

#chat-input {
    flex: 1 1 auto;
    padding: 12px 16px;
    border-radius: 24px;
    border: 2px solid var(--hkchatbot-border);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--hkchatbot-background);
    color: var(--hkchatbot-text);
}

#chat-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

#chat-input:focus {
    outline: none;
    border-color: var(--hkchatbot-primary);
    box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.1);
    background: white;
}

#chat-submit {
    padding: 12px 20px;
    border: none;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--hkchatbot-primary) 0%, var(--hkchatbot-primary-alt) 100%);
    color: var(--hkchatbot-on-primary);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.2);
    min-width: 70px;
}

#chat-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

#chat-submit:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 115, 170, 0.2);
}

#chat-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Footer with credits */
.hkchatbot-footer {
    padding: 1px 2px;
    background: var(--hkchatbot-background);
    border-top: 1px solid var(--hkchatbot-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hkchatbot-credits {
    font-size: 9px;
    color: #9ca3af;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.hkchatbot-credits-link {
    color: var(--hkchatbot-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.hkchatbot-credits-link:hover {
    color: var(--hkchatbot-primary-alt);
    text-decoration: underline;
}

.user-message,
.bot-message {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    line-height: 1.5;
    animation: hkchatbot-message-in 0.3s ease;
    position: relative;
}

@keyframes hkchatbot-message-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.user-message .message-avatar,
.bot-message .message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9em;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, var(--hkchatbot-primary) 0%, var(--hkchatbot-primary-alt) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 75%;
}

.user-message .message-content {
    align-items: flex-end;
}

.bot-message .message-content {
    align-items: flex-start;
}

.user-message span,
.bot-message span {
    padding: 12px 16px;
    border-radius: 18px;
    display: inline-block;
    font-size: 15px;
    line-height: 1.5;
    word-wrap: break-word;
    position: relative;
}

.user-message span {
    background: linear-gradient(135deg, var(--hkchatbot-primary) 0%, var(--hkchatbot-primary-alt) 100%);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.2);
}

.bot-message span {
    background: var(--hkchatbot-bot-bubble);
    color: var(--hkchatbot-text);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.message-timestamp {
    font-size: 0.65em !important;
    color: var(--hkchatbot-timestamp) !important;
    padding: 0 !important;
    opacity: 0.7 !important;
    font-weight: 400 !important;
}

.bot-message span a {
    color: var(--hkchatbot-primary);
    text-decoration: underline;
    word-break: break-word;
    font-weight: 500;
}

.bot-message span a:hover {
    color: var(--hkchatbot-primary-alt);
}

.bot-message span strong {
    font-weight: 600;
}

.bot-message span code {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.welcome-message {
    animation: hkchatbot-welcome 0.5s ease;
}

@keyframes hkchatbot-welcome {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.welcome-message span {
    font-style: normal;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px solid var(--hkchatbot-primary);
    border-left-width: 4px;
}

#chat-icon-message {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: var(--hkchatbot-text);
    padding: 14px 18px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.06);
    animation: hkchatbot-tooltip-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    max-width: 200px;
    line-height: 1.4;
}

@keyframes hkchatbot-tooltip-in {
    from {
        opacity: 0;
        transform: translate(-12px, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(0, -50%) scale(1);
    }
}

#chat-icon.hkchatbot-launcher-right #chat-icon-message {
    right: calc(100% + 16px);
    left: auto;
}

#chat-icon.hkchatbot-launcher-left #chat-icon-message {
    left: calc(100% + 16px);
    right: auto;
}

/* Typing Indicator */
.hkchatbot-typing-indicator {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 8px 0;
}

.hkchatbot-typing-indicator .message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--hkchatbot-primary) 0%, var(--hkchatbot-primary-alt) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

.hkchatbot-typing-dots {
    background: var(--hkchatbot-bot-bubble);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 18px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.hkchatbot-typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hkchatbot-primary);
    opacity: 0.4;
    animation: hkchatbot-typing 1.4s infinite;
}

.hkchatbot-typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.hkchatbot-typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes hkchatbot-typing {
    0%, 60%, 100% {
        opacity: 0.4;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-8px);
    }
}

/* Quick Actions Improvements */
.hkchatbot-quick-actions {
    padding: 12px 20px 8px;
    background: var(--hkchatbot-window);
    border-bottom: 1px solid var(--hkchatbot-border);
}

.hkchatbot-quick-action-btn {
    display: inline-block;
    padding: 8px 14px;
    margin: 4px;
    background: white;
    border: 2px solid var(--hkchatbot-border);
    border-radius: 20px;
    color: var(--hkchatbot-text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.hkchatbot-quick-action-btn:hover {
    background: var(--hkchatbot-primary);
    color: white;
    border-color: var(--hkchatbot-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.2);
}

@media (max-width: 768px) {
    #wp-openai-chat {
        width: min(92%, 400px);
        right: 4%;
        left: 4%;
        bottom: 90px;
        max-height: calc(100vh - 120px);
    }

    #wp-openai-chat.hkchatbot-mobile-fullscreen {
        width: 100%;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 100vh;
        border-radius: 0;
    }

    #wp-openai-chat.hkchatbot-mobile-fullscreen #chat-header {
        border-radius: 0;
    }

    #chat-icon {
        bottom: 20px;
        width: 60px;
        height: 60px;
    }

    #chat-icon i {
        font-size: 1.5em;
    }

}

@media (max-width: 480px) {
    #wp-openai-chat {
        width: 90%;
        height: 80%;
        left: 0;
        right: 0;
        bottom: 100px;
        max-height: 100vh;
        border-radius: 0;
    }

    #chat-icon {
        width: 56px;
        height: 56px;
        bottom: 16px;
    }

    #chat-header {
        padding: 16px 16px;
    }

    .chat-bot-avatar {
        width: 40px;
        height: 40px;
    }

    #chat-window {
        padding: 20px 16px;
    }

    #chat-input-container {
        padding: 14px 16px;
    }
    
    .hkchatbot-footer {
        padding: 2px 16px;
    }
    
    .hkchatbot-credits {
        font-size: 9px;
    }

    .message-content {
        max-width: 82%;
    }
}

/* WhatsApp Contact Button */
.hkchatbot-whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    margin: 4px auto;
}

.hkchatbot-whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.hkchatbot-whatsapp-button i {
    font-size: 1.1em;
}

.hkchatbot-contact-section {
    padding: 1px 20px;
    background: white;
    border-top: 1px solid var(--hkchatbot-border);
    display: flex;
    justify-content: center;
}

/* Modal Overlay */
.hkchatbot-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.hkchatbot-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.hkchatbot-modal-overlay.is-visible .hkchatbot-modal-panel {
    transform: scale(1) translateY(0);
}

/* Modal Panel */
.hkchatbot-modal-panel {
    background: white;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hkchatbot-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: #6b7280;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1;
}

.hkchatbot-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.hkchatbot-modal-panel h3 {
    margin: 0 0 12px;
    padding: 24px 24px 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--hkchatbot-text);
}

.hkchatbot-modal-description {
    margin: 0 0 24px;
    padding: 0 24px;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.5;
}

.hkchatbot-field-group {
    padding: 0 24px;
    margin-bottom: 20px;
}

.hkchatbot-field-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--hkchatbot-text);
}

.hkchatbot-field-group input,
.hkchatbot-field-group select,
.hkchatbot-field-group textarea {
    width: 90%;
    padding: 12px 16px;
    border: 2px solid var(--hkchatbot-border);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
}

.hkchatbot-field-group input:focus,
.hkchatbot-field-group select:focus,
.hkchatbot-field-group textarea:focus {
    outline: none;
    border-color: var(--hkchatbot-primary);
    box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.1);
}

.hkchatbot-field-group textarea {
    resize: vertical;
    min-height: 100px;
}

.hkchatbot-modal-actions {
    padding: 20px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.hkchatbot-button {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hkchatbot-button-primary {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.hkchatbot-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.hkchatbot-button-primary i {
    font-size: 1.2em;
}

.hkchatbot-button-secondary {
    background: white;
    color: var(--hkchatbot-text);
    border: 2px solid var(--hkchatbot-border);
}

.hkchatbot-button-secondary:hover {
    background: var(--hkchatbot-hover);
}

.hkchatbot-button-tertiary {
    background: transparent;
    color: #6b7280;
    border: none;
}

.hkchatbot-button-tertiary:hover {
    background: rgba(0, 0, 0, 0.05);
}

.hkchatbot-modal-feedback {
    padding: 0 24px 16px;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}

.hkchatbot-modal-feedback.success {
    color: #10b981;
}

.hkchatbot-modal-feedback.error {
    color: #ef4444;
}

.hkchatbot-modal-hint {
    padding: 0 24px 20px;
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
    font-style: italic;
}

/* Clinic Cards in Modal */
.hkchatbot-clinic-list {
    padding: 0 24px 24px;
    display: grid;
    gap: 12px;
}

.hkchatbot-clinic-card {
    padding: 16px;
    border: 2px solid var(--hkchatbot-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.hkchatbot-clinic-card:hover {
    border-color: var(--hkchatbot-primary);
    background: var(--hkchatbot-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hkchatbot-clinic-card.selected {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.05);
}

.hkchatbot-clinic-card h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--hkchatbot-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hkchatbot-clinic-card h4 i {
    color: var(--hkchatbot-primary);
}

.hkchatbot-clinic-card p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* ==================== REPRISE DE SESSION ==================== */
.hkchatbot-resume-session {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border: 2px solid #3b82f6;
    border-radius: 16px;
    padding: 24px;
    margin: 16px;
    animation: slideInDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resume-session-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.resume-session-content > i {
    font-size: 42px;
    color: #3b82f6;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.resume-session-content p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e40af;
}

.resume-session-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.resume-session-buttons button {
    flex: 1;
    min-width: 160px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.resume-session-buttons button i {
    font-size: 16px;
}

.resume-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.resume-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.new-session-btn {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.new-session-btn:hover {
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.2);
}

@media (max-width: 768px) {
    .hkchatbot-modal-panel {
        max-width: 95%;
        border-radius: 16px;
    }
    
    .hkchatbot-modal-panel h3 {
        font-size: 20px;
        padding: 20px 20px 0;
    }
    
    .hkchatbot-modal-description,
    .hkchatbot-field-group,
    .hkchatbot-modal-hint {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hkchatbot-modal-actions {
        padding: 16px 20px 20px;
        flex-direction: column;
    }
    
    .hkchatbot-button {
        width: 100%;
        justify-content: center;
    }
    
    .hkchatbot-clinic-list {
        padding: 0 20px 20px;
    }
}
