/* ---------------------------------- */
/* СБРОСЫ, СКРОЛЛБАРЫ, АНИМАЦИИ, БАЗА */
/* ---------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    height: 100vh;
    overflow: hidden;
    transition: background var(--transition), color var(--transition);
}
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@keyframes typingDot {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}
@keyframes borderGlow {
    0% { box-shadow: 0 0 0 0 var(--primary), 0 0 0 0 rgba(76, 154, 255, 0); }
    20% { box-shadow: 0 0 0 2px var(--primary), 0 0 0 4px rgba(76, 154, 255, 0.4); }
    40% { box-shadow: 0 0 0 4px var(--primary), 0 0 0 8px rgba(76, 154, 255, 0.3); }
    60% { box-shadow: 0 0 0 4px var(--primary), 0 0 0 8px rgba(76, 154, 255, 0.2); }
    80% { box-shadow: 0 0 0 2px var(--primary), 0 0 0 4px rgba(76, 154, 255, 0.1); }
    100% { box-shadow: 0 0 0 0 var(--primary), 0 0 0 0 rgba(76, 154, 255, 0); }
}
@keyframes iconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes voiceSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
.app-container {
    transform-origin: top left;
    transition: transform 0.2s ease;
    width: 100%;
    height: 100%;
}
.app {
    display: flex;
    height: 100vh;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    background: transparent;
    position: relative;
}
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.2s ease;
}
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
/* Скелетоны */
.skeleton-avatar {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-surface) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.skeleton-text {
    height: 16px;
    width: 70%;
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-surface) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    margin-bottom: 8px;
}
.skeleton-text-short {
    height: 12px;
    width: 50%;
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-surface) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}