/* BasaltComp — полировка поверх AdminKit Pro */

:root {
    --bslt-primary: #3B7DDD;
    --bslt-primary-dark: #2f64b1;
    --bslt-gradient: linear-gradient(135deg, #1e3a5f 0%, #3B7DDD 55%, #5a9cf8 100%);
}

/* ---- карточки ---- */
.card {
    border: 0;
    border-radius: .6rem;
    box-shadow: 0 1px 3px rgba(30, 58, 95, .08), 0 4px 14px rgba(30, 58, 95, .05);
    transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover {
    box-shadow: 0 2px 6px rgba(30, 58, 95, .10), 0 10px 24px rgba(30, 58, 95, .08);
}
.card-header { border-bottom: 1px solid rgba(0,0,0,.045); background: transparent; }

/* ---- сайдбар ---- */
.sidebar-brand { font-weight: 700; letter-spacing: .3px; }
.sidebar-item.active > .sidebar-link {
    border-left: 3px solid var(--bslt-primary);
}

/* ---- кнопки ---- */
.btn { border-radius: .45rem; transition: transform .12s ease, box-shadow .12s ease; }
.btn-primary { background: var(--bslt-primary); border-color: var(--bslt-primary); }
.btn-primary:hover { background: var(--bslt-primary-dark); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(59,125,221,.35); }
.btn-success:hover, .btn-outline-primary:hover { transform: translateY(-1px); }

/* ---- таблицы ---- */
.table th { text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; color: #6c757d; }
.table-hover tbody tr { transition: background .12s ease; }
code { color: #2f64b1; }

/* ---- бейджи ---- */
.badge { border-radius: .35rem; font-weight: 600; letter-spacing: .02em; }

/* ---- hero (страница проверки) ---- */
.bslt-hero {
    background: var(--bslt-gradient);
    border-radius: .8rem;
    color: #fff;
    padding: 2.2rem 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}
.bslt-hero::after {
    content: "";
    position: absolute;
    right: -60px; top: -60px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
}
.bslt-hero h1 { color: #fff; }
.bslt-hero .lead { color: rgba(255,255,255,.85); }

/* ---- страница логина ---- */
.bslt-auth-bg {
    min-height: 100vh;
    background: var(--bslt-gradient);
    display: flex;
    align-items: center;
}
.bslt-auth-bg .card { box-shadow: 0 20px 60px rgba(10, 25, 47, .45); border-radius: .9rem; }
.bslt-auth-logo { color: #fff; font-weight: 800; font-size: 2rem; letter-spacing: .5px; }
.bslt-auth-logo .badge { vertical-align: super; font-size: .65rem; }

/* ---- gauge на отчёте ---- */
.bslt-gauge { position: relative; width: 190px; height: 120px; margin: 0 auto; }
.bslt-gauge svg { width: 100%; height: 100%; }
.bslt-gauge .bslt-gauge-value {
    position: absolute; left: 0; right: 0; bottom: 0;
    text-align: center; font-size: 2.4rem; font-weight: 700; line-height: 1;
}

/* ---- цепочки экспозиции ---- */
.bslt-path {
    display: flex; align-items: center; flex-wrap: wrap; gap: .35rem;
    font-family: var(--bs-font-monospace, monospace); font-size: .8rem;
}
.bslt-path .arrow { color: #adb5bd; }
.bslt-path .addr {
    background: #f1f4f9; border-radius: .3rem; padding: .15rem .45rem;
}
.bslt-path .addr.dirty { background: #fde8e8; color: #b02a37; font-weight: 600; }

/* ---- мелочи ---- */
.progress { border-radius: 1rem; }
.alert { border: 0; border-radius: .55rem; }
h1 strong, .h3 strong { font-weight: 700; }
.stat i { width: 22px; height: 22px; }

/* ---- дашборд v2 ---- */
.bslt-hero .bslt-chip {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: .6rem;
    padding: .6rem 1rem;
    display: inline-block;
    color: #fff;
    backdrop-filter: blur(2px);
}
.bslt-hero .bslt-chip .num { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.bslt-hero .bslt-chip .lbl { font-size: .72rem; opacity: .75; text-transform: uppercase; letter-spacing: .05em; }

.bslt-stat-icon {
    width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.bslt-stat-icon i { width: 20px; height: 20px; }
.bslt-stat-icon.blue { background: rgba(59,125,221,.12); color: #3B7DDD; }
.bslt-stat-icon.red { background: rgba(217,83,79,.12); color: #d9534f; }
.bslt-stat-icon.green { background: rgba(75,191,115,.12); color: #4bbf73; }
.bslt-stat-icon.violet { background: rgba(111,66,193,.12); color: #6f42c1; }
.bslt-stat-card .num { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.bslt-stat-card .lbl { color: #6c757d; font-size: .82rem; }

.bslt-donut-wrap { position: relative; height: 210px; }
.bslt-donut-center {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    pointer-events: none;
}
.bslt-donut-center .num { font-size: 1.9rem; font-weight: 700; line-height: 1; }
.bslt-donut-center .lbl { font-size: .72rem; color: #6c757d; text-transform: uppercase; letter-spacing: .04em; }

.bslt-net {
    width: 30px; height: 30px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .8rem; color: #fff;
}
.bslt-net.btc { background: #f7931a; }
.bslt-net.eth { background: #627eea; }
.bslt-net.tron { background: #eb0029; }

.bslt-legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .45rem; }

/* ---- оверлей проверки ---- */
.bslt-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(20, 35, 60, .88);
    backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center;
}

/* ---- фильтры истории ---- */
.bslt-filter-chip {
    display: inline-flex; align-items: center;
    padding: .35rem .8rem; border-radius: 2rem;
    background: #eef2f8; color: #495057;
    font-size: .82rem; text-decoration: none;
    border: 1px solid transparent;
    transition: all .12s ease;
}
.bslt-filter-chip:hover { background: #e2e9f3; color: #2f64b1; }
.bslt-filter-chip.active { background: var(--bslt-primary); color: #fff; font-weight: 600; }
.bslt-score-bar { width: 54px; height: 6px; background: #edf0f4; border-radius: 3px; overflow: hidden; display: inline-block; vertical-align: middle; }
.bslt-score-bar > div { height: 100%; border-radius: 3px; }

/* ---- пульсация активных задач ---- */
@keyframes bslt-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.badge.bg-warning.bslt-live, .badge.bg-secondary.bslt-live { animation: bslt-pulse 1.2s ease-in-out infinite; }
.bslt-source-icon { width: 38px; height: 38px; border-radius: .55rem; display: inline-flex; align-items: center; justify-content: center; background: rgba(59,125,221,.1); color: #3B7DDD; flex-shrink: 0; }

/* ---- тосты ---- */
.bslt-toasts {
    position: fixed; top: 1rem; right: 1rem; z-index: 3000;
    display: flex; flex-direction: column; gap: .6rem;
    max-width: 400px; width: calc(100% - 2rem);
}
.bslt-toast {
    display: flex; align-items: flex-start; gap: .7rem;
    background: #fff; border-radius: .7rem;
    padding: .85rem 1rem;
    box-shadow: 0 8px 30px rgba(15, 30, 55, .18), 0 2px 8px rgba(15, 30, 55, .10);
    border-left: 4px solid #adb5bd;
    opacity: 0; transform: translateX(24px);
    transition: opacity .3s ease, transform .3s ease;
}
.bslt-toast.show { opacity: 1; transform: translateX(0); }
.bslt-toast.success { border-left-color: #4bbf73; }
.bslt-toast.danger { border-left-color: #d9534f; }
.bslt-toast.warning { border-left-color: #f0ad4e; }
.bslt-toast-icon { flex-shrink: 0; margin-top: .1rem; }
.bslt-toast-icon i { width: 20px; height: 20px; }
.bslt-toast.success .bslt-toast-icon { color: #4bbf73; }
.bslt-toast.danger .bslt-toast-icon { color: #d9534f; }
.bslt-toast.warning .bslt-toast-icon { color: #f0ad4e; }
.bslt-toast-body { font-size: .875rem; color: #37414f; }
.bslt-toast-close {
    margin-left: auto; border: 0; background: none;
    font-size: 1.25rem; line-height: 1; color: #adb5bd; cursor: pointer; padding: 0 .1rem;
}
.bslt-toast-close:hover { color: #495057; }
