/* Summy Floating Button */
.rjk-ai-floating-btn {
    position: fixed;
    bottom: 110px;
    right: 20px;
    height: 48px;
    background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(74, 0, 224, 0.4);
    z-index: 999999 !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: summyAutoExpand 12s infinite;
}
.rjk-ai-floating-btn svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}
.summy-text {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    white-space: nowrap;
    display: inline-block;
    animation: summyTextFade 12s infinite;
}
@keyframes summyAutoExpand {
    0%, 75% { max-width: 48px; padding: 0 12px; }
    80%, 95% { max-width: 150px; padding: 0 18px; }
    100% { max-width: 48px; padding: 0 12px; }
}
@keyframes summyTextFade {
    0%, 75% { max-width: 0; opacity: 0; margin-left: 0; }
    80%, 95% { max-width: 100px; opacity: 1; margin-left: 8px; }
    100% { max-width: 0; opacity: 0; margin-left: 0; }
}
.rjk-ai-floating-btn:hover {
    max-width: 150px !important;
    padding: 0 18px !important;
    animation: none;
    box-shadow: 0 10px 30px rgba(74, 0, 224, 0.6);
}
.rjk-ai-floating-btn:hover .summy-text {
    max-width: 100px !important;
    opacity: 1 !important;
    margin-left: 8px !important;
    animation: none;
}
/* Modal Background */
.rjk-ai-modal {
    display: none;
    position: fixed;
    z-index: 1000000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}
/* Exact Centering Logic for Modal Box */
.rjk-ai-modal-content {
    background-color: #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 25px 30px;
    border-radius: 20px;
    width: 85%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    font-family: Arial, sans-serif;
    animation: summyFadeIn 0.3s ease-out forwards;
}
/* Custom Scrollbar for Modal */
.rjk-ai-modal-content::-webkit-scrollbar {
    width: 6px;
}
.rjk-ai-modal-content::-webkit-scrollbar-thumb {
    background: #4a00e0;
    border-radius: 10px;
}
.summy-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #f4f4f4;
    padding-bottom: 12px;
    margin-bottom: 15px;
    padding-right: 20px;
}
.summy-header h3 {
    margin: 0;
    background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}
/* RJK Bhai Credit Text */
.summy-credit {
    font-size: 11px;
    color: #999;
    font-weight: 500;
    -webkit-text-fill-color: #999;
    letter-spacing: 0.5px;
}
.rjk-ai-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #a0a0a0;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    transition: color 0.2s;
    z-index: 10;
}
.rjk-ai-close:hover {
    color: #ff3366;
}
#rjk-ai-summary-text {
    color: #333;
    font-size: 15.5px;
}
.summy-bullet {
    background: #f8f9fa;
    padding: 12px 15px;
    border-left: 4px solid #8e2de2;
    border-radius: 6px;
    margin-bottom: 10px;
    line-height: 1.5;
}
/* Centering Fade In Animation */
@keyframes summyFadeIn {
    from { opacity: 0; top: 55%; }
    to { opacity: 1; top: 50%; }
}