@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px var(--primary-glow); }
    50% { box-shadow: 0 0 20px var(--primary-glow), 0 0 40px var(--primary-glow); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes pulse-scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes borderGlow {
    0%, 100% { border-color: var(--primary); }
    50% { border-color: var(--accent); }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

@keyframes ripple {
    0% { transform: scale(0); opacity: 0.6; }
    100% { transform: scale(4); opacity: 0; }
}

.animate-fade-in { animation: fadeIn 0.4s ease both; }
.animate-fade-in-up { animation: fadeInUp 0.4s ease both; }
.animate-fade-in-down { animation: fadeInDown 0.4s ease both; }
.animate-fade-in-left { animation: fadeInLeft 0.4s ease both; }
.animate-fade-in-right { animation: fadeInRight 0.4s ease both; }
.animate-scale-in { animation: scaleIn 0.3s ease both; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }
.animate-pulse-scale { animation: pulse-scale 2s ease-in-out infinite; }
.animate-border-glow { animation: borderGlow 3s ease-in-out infinite; }
.animate-shake { animation: shake 0.5s ease; }

.page-content > * {
    animation: fadeInUp 0.35s ease both;
}

.page-content > *:nth-child(1) { animation-delay: 0ms; }
.page-content > *:nth-child(2) { animation-delay: 50ms; }
.page-content > *:nth-child(3) { animation-delay: 100ms; }
.page-content > *:nth-child(4) { animation-delay: 150ms; }
.page-content > *:nth-child(5) { animation-delay: 200ms; }
.page-content > *:nth-child(6) { animation-delay: 250ms; }

.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: var(--border-light);
}

.btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.nav-item {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover {
    transform: translateX(4px);
}

.nav-item.active {
    transform: translateX(0);
}

.logo-text {
    transition: all 0.3s ease;
}

.logo:hover .logo-text {
    letter-spacing: 1px;
}

.chatter-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatter-card:hover {
    transform: translateX(4px);
    background: var(--bg-card-hover);
}

.chatter-card.top-three:hover {
    box-shadow: 0 0 20px var(--primary-glow);
}

.giveaway-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.giveaway-card.active:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 230, 118, 0.15);
}

.reward-node {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.reward-node:hover {
    transform: translateY(-4px) scale(1.02);
}

.reward-node.unlocked:hover {
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.3);
}

.mission-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-card:hover {
    transform: translateX(4px);
}

.mission-card.completed:hover {
    opacity: 1;
}

.poll-option {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.poll-option:hover {
    transform: translateX(4px);
}

.poll-option-bar {
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.goal-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.goal-card:hover {
    transform: translateY(-4px);
}

.level-item {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.level-item:hover {
    transform: scale(1.03);
    border-color: var(--level-color);
}

.toast {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    animation: fadeInRight 0.4s ease both;
}

.progress-fill {
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar-day {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar-day:hover {
    transform: scale(1.03);
    z-index: 1;
}

.calendar-day.today {
    animation: pulse-scale 3s ease-in-out infinite;
}

.modal {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal {
    animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus {
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.setting-item {
    transition: background 0.2s ease;
}

.setting-item:hover {
    background: var(--bg-card-hover);
}

.toggle-slider {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-slider::before {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-item {
    animation: fadeIn 0.3s ease both;
}

.dash-top-item {
    transition: background 0.2s ease;
}

.dash-top-item:hover {
    background: var(--bg-card-hover);
}

.online-user {
    animation: fadeIn 0.2s ease;
}

.chat-message {
    animation: fadeIn 0.15s ease;
}

.chat-emote {
    transition: transform 0.2s ease;
}

.chat-emote:hover {
    transform: scale(1.3);
}

.sidebar {
    animation: slideInLeft 0.3s ease;
}

.sidebar.open {
    animation: slideInLeft 0.3s ease;
}

.admin-badge {
    transition: all 0.3s ease;
}

.admin-badge:hover {
    background: var(--primary-subtle);
}

.month-cell.has-stream {
    animation: pulse-scale 2s ease-in-out infinite;
}

.stream-event {
    animation: fadeIn 0.3s ease both;
}
