/* Nút n?i Hana AI */
.hana-floating-btn {
    position: fixed;
    bottom: 220px; /* Cách dáy */ 
    right: 10px;   /* Cách ph?i */
    z-index: 9999;
    width: 65px;   /* Tang kích thu?c chút d? rõ hình */ 
    height: 65px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 20px rgba(255, 20, 147, 0.4);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid #ff69b4; /* Vi?n h?ng */
}

/* Hi?u ?ng nhún nh?y */
.hana-floating-btn {
    animation: hana-float 3s ease-in-out infinite;
}

@keyframes hana-float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
/*
/* Hi?u ?ng vòng sóng lan t?a (Gây chú ý) */
.hana-floating-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    border: 2px solid #ff69b4;
    eanimation: hana-pulse-ring 2s infinite;
    z-index: -1;
}
*/

@keyframes hana-pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ?nh Avatar */
.hana-floating-btn img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    padding: 3px; /* Kho?ng cách tr?ng gi?a ?nh và vi?n */
}

/* Nhãn "H?i AI" bao quanh/bên du?i */
.hana-badge {
    position: absolute;
    bottom: -8px; /* Treo lo l?ng phía du?i */
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #ff1493, #ff69b4);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: 2px solid #fff; /* Vi?n tr?ng cho ch? n?i b?t */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.hana-floating-btn:hover {
    transform: scale(1.1) !important; /* Phóng to khi di chu?t */
}

/* Tooltip cu (V?n gi? d? hi?n th? khi hover) */
.hana-tooltip {
    position: absolute; right: 80px; background: #333; color: #fff;
    padding: 5px 10px; border-radius: 5px; font-size: 12px;
    white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.hana-floating-btn:hover .hana-tooltip { opacity: 1; }

/* --- Ph?n CSS Modal Popup (Gi? nguyên nhu cu) --- */
.hana-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); z-index: 10000;
    justify-content: center; align-items: center; backdrop-filter: blur(2px);
}
.hana-modal-content {
    background: #fff; width: 90%; max-width: 450px; border-radius: 15px;
    overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: hana-slide-up 0.3s ease-out;
}
@keyframes hana-slide-up { from {transform: translateY(20px); opacity: 0;} to {transform: translateY(0); opacity: 1;} }

.hana-modal-header {
    background: linear-gradient(135deg, #fff0f6, #fff); padding: 15px;
    border-bottom: 1px solid #ffe6e6; display: flex; align-items: center; gap: 10px; position: relative;
}
.hana-modal-header h4 { margin: 0; color: #d63384; font-size: 16px; font-weight:700; }
.hana-modal-close { position: absolute; right: 15px; top: 10px; font-size: 28px; cursor: pointer; color: #999; }
.hana-modal-close:hover { color: #d63384; }
.hana-modal-body { padding: 20px; font-size: 15px; line-height: 1.6; color: #333; max-height: 60vh; overflow-y: auto; }
#hana-result-content { text-align: left; }
.hana-loading-anim { display: flex; flex-direction: column; gap: 10px; }
.sk-line { height: 10px; background: #eee; border-radius: 4px; animation: sk-pulse 1.5s infinite; }
.sk-w70 { width: 70%; }
@keyframes sk-pulse { 0% {opacity: 0.5;} 50% {opacity: 1;} 100% {opacity: 0.5;} }