.bi-spin {
    animation: bi-spin 1s linear infinite;
}

@keyframes bi-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.avatar-cyber-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 50%;
    padding: 3px;
}

.cyber-border-active {
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.cyber-border-expert {
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
    background: linear-gradient(135deg, #10b981, #34d399);
}

.cyber-border-master {
    background: linear-gradient(45deg, #6366f1, #a855f7, #6366f1);
    background-size: 200% 200%;
    animation: cyber-gradient-loop 3s infinite linear;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.8);
}

.cyber-border-godlike {
    background: linear-gradient(45deg, #f59e0b, #ef4444, #f59e0b);
    background-size: 200% 200%;
    animation: cyber-gradient-loop 2s infinite linear;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.9), inset 0 0 8px rgba(239, 68, 68, 0.5);
}

.cyber-border-streak {
    background: linear-gradient(135deg, #f59e0b, #fbbf24, #f97316);
    background-size: 200% 200%;
    animation: cyber-gradient-loop 2.5s infinite linear;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.8), 0 0 22px rgba(251, 191, 36, 0.45);
}

@keyframes cyber-gradient-loop {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.streak-badge-mini {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #2d3748;
    color: #fff;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.search-matrix-row-item {
    transition: all 0.2s ease-in-out;
}

.search-matrix-row-item:hover {
    background: #151a29 !important;
    border-color: #ff9f43 !important;
}

.search-matrix-row-item:hover h6 {
    color: #ff9f43 !important;
}

#liveSearchDropdownOutputMatrix::-webkit-scrollbar { width: 5px; }
#liveSearchDropdownOutputMatrix::-webkit-scrollbar-track { background: #090b11; }
#liveSearchDropdownOutputMatrix::-webkit-scrollbar-thumb { background: #1a2033; border-radius: 10px; }

.archive-modal-row:hover {
    border-color: #ff9f43 !important;
    background: #141824 !important;
    transition: all 0.2s ease-in-out;
}

.tt-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 99999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.tt-popup-box {
    background-color: #ffffff;
    border-radius: 16px;
    width: 90%;
    max-width: 750px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    animation: popupScaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popupScaleIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.tt-popup-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 28px;
    text-align: center;
    transition: transform 0.2s ease;
}

.tt-popup-close-btn:hover { transform: scale(1.1); }

.tt-popup-timer-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    backdrop-filter: blur(2px);
}

.popup-layout-left { display: flex; flex-direction: row; }
.popup-layout-right { display: flex; flex-direction: row-reverse; }
.popup-layout-background { position: relative; background-size: cover; background-position: center; }

.popup-img-side {
    width: 45%;
    min-height: 350px;
    background-size: cover;
    background-position: center;
}

.popup-content-side {
    width: 55%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-layout-background .popup-content-side {
    width: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 60%, rgba(255, 255, 255, 0.7));
    min-height: 380px;
}

.tt-popup-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #f1f5f9;
}

.tt-popup-progress-bar {
    height: 100%;
    width: 100%;
    background-color: #ef4444;
    transition: width 0.1s linear;
}

@media (max-width: 768px) {
    .popup-layout-left,
    .popup-layout-right { flex-direction: column; }
    .popup-img-side { width: 100%; min-height: 180px; }
    .popup-content-side { width: 100%; padding: 25px; }
}
