body {
    font-family: 'Poppins', sans-serif;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
    transition: background-image 0.5s ease-in-out;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.4); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.6); }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.glass-effect {
    background: rgba(40, 30, 20, 0.45); 
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar {
    transition: transform 0.3s ease-in-out;
}
#prompt-list-container::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); }
#prompt-list-container::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.4); }

.category-button {
    transition: all 0.3s ease-in-out;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.category-button.active {
    background-color: #f59e0b;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.25);
    transform: translateX(5px);
}

@keyframes bobbing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

#bot-avatar {
    animation: bobbing 3s ease-in-out infinite;
}

#chat-bubble {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#chat-bubble.hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

#chat-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(40, 30, 20, 0.45);
}

.topic-header {
    background: rgba(20, 10, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 165, 0, 0.2);
}
.topic-header h1 {
    font-family: 'Creepster', cursive;
    background: linear-gradient(to top, #f97316, #fcd34d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 5px rgba(255, 165, 0, 0.5), 0 0 10px rgba(0, 0, 0, 0.7);
    font-size: 2.25rem;
    letter-spacing: 3px;
    white-space: nowrap;
}

#youtube-player-container {
    position: absolute;
    top: -9999px;
    left: -9999px;
}

.dancing-icon {
    position: absolute;
    font-size: 2rem;
}

.dancing-image {
    position: absolute;
    height: auto;
    will-change: transform;
    cursor: pointer;
    pointer-events: auto;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}
.shake {
    animation: shake 0.5s ease-in-out;
}
.confetti {
    position: absolute;
    width: 8px;
    height: 16px;
    background: #f59e0b;
    top: 0;
    opacity: 0;
}

/* Premium button shimmer and glow effect */
@keyframes shimmer {
    0% { transform: translateX(-100%) skewX(-20deg); }
    100% { transform: translateX(200%) skewX(-20deg); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.6), 0 0 12px rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 16px rgba(245, 158, 11, 0.9), 0 0 24px rgba(245, 158, 11, 0.6); }
}
.premium-pack-button {
    position: relative;
    overflow: hidden;
    animation: pulse-glow 2.5s infinite ease-in-out;
}
.premium-pack-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    animation: shimmer 3s infinite ease-in-out;
    animation-delay: 1s;
}
.premium-unlocked-button {
    background-size: cover;
    background-position: center;
    position: relative;
}
.premium-unlocked-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(40, 30, 20, 0.6); /* Dark overlay */
    border-radius: inherit;
    z-index: 1;
    transition: background-color 0.3s;
}
.premium-unlocked-button:hover::before {
     background-color: rgba(40, 30, 20, 0.4);
}
.premium-unlocked-button span {
    position: relative;
    z-index: 2; /* Make sure text is on top of overlay */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

@keyframes pulse-glow-super {
    0%, 100% { box-shadow: 0 0 8px rgba(168, 85, 247, 0.7), 0 0 12px rgba(168, 85, 247, 0.5); } /* purple-500 tones */
    50% { box-shadow: 0 0 16px rgba(168, 85, 247, 1), 0 0 24px rgba(168, 85, 247, 0.7); }
}
.super-premium-unlocked-button {
    animation: pulse-glow-super 2.5s infinite ease-in-out;
    border: 1px solid rgba(192, 132, 252, 0.5); /* purple-400 */
}
