/* Кнопки, профиль, подписки, пустое состояние, модальные окна, загрузка файлов, toast */

.btn {
    flex: 1;
    padding: 9px 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 12px;
    color: #ffffff;
    cursor: pointer;
    transition: var(--spring-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.95); }

/* Аккуратные компактные кнопки действий в шапках вкладок админки */
.admin-head-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    padding: 6px 14px !important;
    height: 32px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border-radius: var(--radius-sm) !important;
    white-space: nowrap !important;
    margin-left: 12px !important;
}

.btn-success { background: var(--success); }
.btn-warning { background: var(--warning); color: #fff; }
.btn-primary { background: var(--primary); }
.btn-secondary { background: var(--surface-solid); color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: var(--error); }

.profile-card {
    background: var(--surface-solid);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border);
    margin-bottom: 12px;
    box-shadow: var(--shadow-md);
}

.profile-title {
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 12px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group { margin-bottom: 12px; }

.form-group label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.subs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.sub-chip {
    background: var(--bg);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    color: var(--text);
}

.sub-chip.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    font-weight: 600;
}

.empty-state {
    padding: 36px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-illustration-container {
    width: 120px;
    height: 50px;
    margin-bottom: 10px;
}

.empty-illustration {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.animated-truck-body {
    animation: truckBounce 1.2s ease-in-out infinite alternate;
}

.animated-road {
    stroke-dasharray: 6 5;
    animation: roadMove 0.4s linear infinite;
}

.animated-wheel {
    transform-origin: 0 0;
    animation: wheelSpin 0.4s linear infinite;
}

@keyframes truckBounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-1px); }
    100% { transform: translateY(0.3px); }
}

@keyframes roadMove {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: 11; }
}

@keyframes wheelSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.empty-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.empty-desc {
    font-size: 11px;
    color: var(--text-muted);
    max-width: 260px;
    line-height: 1.4;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

/* Окна подтверждения и редактирования поверх панели админа */
#confirmModal, #bidModal, #directUploadModal, #adminEditLoadModal, #adminEditDealModal, #notifModal {
    z-index: 2500 !important;
}

.modal-overlay.active { display: flex; }

.modal-card {
    background: var(--surface-solid);
    border-radius: var(--radius-lg);
    padding: 20px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border: 1px solid var(--border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.modal-title { font-weight: 700; font-size: 14px; color: var(--text); }

.modal-close {
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 50%;
    display: flex;
}

#notifList {
    overflow-y: auto;
    flex: 1;
    padding-right: 2px;
}

.notif-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 8px;
}

.notif-item.unread { border-left: 3px solid var(--primary); }
.notif-title { font-weight: 700; font-size: 12px; margin-bottom: 2px; }
.notif-text { font-size: 11px; color: var(--text); line-height: 1.4; }
.notif-date { font-size: 10px; color: var(--text-muted); margin-top: 4px; text-align: right; }

.loader {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    background: var(--bg);
    cursor: pointer;
    margin-bottom: 12px;
    transition: border-color 0.2s ease;
}

.file-preview-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 11px;
}

.toast-container {
    position: fixed;
    bottom: 75px;
    left: 16px;
    right: 16px;
    max-width: 420px;
    margin: 0 auto;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 9px 14px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    pointer-events: none;
    animation: toastSlideDown 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.toast.hide {
    animation: toastSlideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
