@import url('sdbo-theme.css');

/* ============================================================
   ГЛАВНАЯ / ФИНАНСЫ — вёрстка по макету SDBO [TEST].fig
   («Main - Finances - Show accounts»)
   ============================================================ */

.acc-wrap {
    max-width: 520px;
    margin: 0 auto;
    padding: 0 16px 120px;              /* снизу — место под таб-бар */
    font-family: var(--sdbo-font);
    color: var(--sdbo-text);
    overflow-x: clip;                   /* соседние карты не дают горизонтальный скролл */
}

.acc-wrap button { font-family: inherit; }

/* ============================================================
   APP BAR — логотип · табы · QR
   ============================================================ */
.acc-appbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin: 0 -16px;
    padding: 8px 16px;
    min-height: 56px;
    background: rgba(246, 247, 249, 0.86);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.acc-appbar__logo {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    height: 40px;
    text-decoration: none;
}

.acc-appbar__logo-icon {
    width: 32px;
    height: 32px;
    display: block;
}

.acc-appbar__logo-full {
    height: 30px;
    width: auto;
    display: none;
}

.acc-appbar__btn {
    justify-self: end;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--sdbo-r-xs);
    background: transparent;
    color: var(--sdbo-text);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.acc-appbar__btn:hover { background: rgba(var(--sdbo-primary-rgb), 0.06); }

@media (min-width: 576px) {
    .acc-appbar__logo-icon { display: none; }
    .acc-appbar__logo-full { display: block; }
}

/* ===== Табы «Крипто / Фиат» — «Tab group» ===== */
.acc-tabs {
    display: flex;
    gap: 0;
    padding: 4px;
    background: rgba(145, 145, 145, 0.05);
    border: 1px solid rgba(193, 199, 210, 0.40);
    border-radius: var(--sdbo-r-pill);
    box-sizing: border-box;
}

.acc-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 4px 16px;
    border: none;
    background: transparent;
    border-radius: var(--sdbo-r-pill);
    font-size: 14px;
    line-height: 24px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--sdbo-text-tab);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.acc-tab:hover { color: var(--sdbo-text); }

.acc-tab.is-active {
    background: var(--sdbo-primary);
    color: var(--sdbo-on-dark);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* ===== ЭКРАНЫ ===== */
.acc-screens { position: relative; }

.acc-screen { display: none; }
.acc-screen.is-active {
    display: block;
    animation: accScreenFade 0.3s ease;
}

@keyframes accScreenFade {
    from { transform: translateX(8px); }
    to   { transform: translateX(0); }
}

/* ============================================================
   КАРТОЧКИ СЧЕТОВ — карусель, соседние карты видны по краям
   ============================================================ */
.acc-cards {
    position: relative;
    height: 140px;                      /* как в макете: активная карта 320×140 */
    margin: 4px -16px 0;
    touch-action: pan-y;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

.acc-card {
    position: absolute;
    top: 5px;                           /* боковые карты — 130 px, по центру */
    bottom: 5px;
    left: 27.5px;
    width: calc(100% - 55px);           /* 320 px на экране 375 — соседи видны по 16 px */
    background: var(--sdbo-dark);
    color: var(--sdbo-on-dark);
    border-radius: var(--sdbo-r-md);
    padding: 16px 24px 24px;
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
}

.acc-card.is-active { top: 0; bottom: 0; cursor: default; z-index: 2; }
.acc-card.no-anim { transition: none; }

.acc-card__inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/* Верх: иконка + валюта + «глаз» */
.acc-card__head {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 24px;
}

.acc-card__sym {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;              /* ← ничего не вылезет */
    flex-shrink: 0;
}

.acc-card__sym--img {
    display: block;
    width: 100%;                    /* = размеру .acc-card__sym */
    height: 100%;
    object-fit: contain;
    object-position: center center; /* ← ключ к центрированию */
    border-radius: 50%;             /* оставляем — скруглит зелёный квадрат */
    pointer-events: none;           /* чтобы не мешать свайпу карточки */
    user-select: none;
    -webkit-user-select: none;
}



.acc-card__sym .crypto-icon {
    display: block;
    width: 32px;                   /* = размеру контейнера */
    height: 32px;
    color: #fff;
    background-color: currentColor;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.acc-card__label {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: var(--sdbo-on-dark-2);
}

.acc-card__eye {
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--sdbo-icon);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s;
}
.acc-card__eye:hover { color: var(--sdbo-on-dark); }

/* Баланс */
.acc-card__balance {
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    color: var(--sdbo-on-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.acc-card__balance-cur { margin-left: 2px; }
.acc-card__balance-hidden { display: none; letter-spacing: 2px; }

.is-balance-hidden .acc-card__balance-amount { display: none; }
.is-balance-hidden .acc-card__balance-hidden { display: inline; }
.is-balance-hidden [data-equiv-usd],
.is-balance-hidden [data-equiv-byn] { filter: blur(5px); }

/* Маска счёта */
.acc-card__mask {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--sdbo-font-alt);
    font-size: 14px;
    line-height: 20px;
    color: var(--sdbo-on-dark-muted);
    align-self: flex-start;
}
.acc-card__mask-dots { letter-spacing: 1px; }

.acc-card__copy {
    border: none;
    background: transparent;
    color: var(--sdbo-on-dark-muted);
    padding: 0 0 0 4px;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}
.acc-card__copy:hover { color: var(--sdbo-on-dark); }

/* Эквиваленты */
.acc-card__equiv {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 16px;
    margin-top: -2px;
    font-size: 12px;
    line-height: 16px;
    color: var(--sdbo-on-dark-muted);
}
.acc-card__equiv-item { display: flex; align-items: baseline; gap: 4px; }
.acc-card__equiv-value { color: var(--sdbo-on-dark-2); font-weight: 500; }
.acc-card__equiv-value small { font-size: 12px; font-weight: 400; color: var(--sdbo-on-dark-muted); }

.acc-card__equiv-flag {
    width: 12px;
    height: 12px;
    object-fit: cover;
    border-radius: 50%;
    vertical-align: -1px;
    margin-right: 3px;
}

/* Карточка «+» — «Создать криптопрофиль» */
.acc-card--add {
    align-items: center;
    justify-content: center;
    padding-bottom: 16px;
}

.acc-card__add-btn {
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--sdbo-on-dark);
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    cursor: pointer;
}

.acc-card__add-btn i {
    width: 32px;
    height: 32px;
    border-radius: var(--sdbo-r-xs);
    background: rgba(255, 255, 255, 0.14);
    color: var(--sdbo-on-dark);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}
.acc-card__add-btn:hover i { transform: rotate(90deg); background: rgba(255, 255, 255, 0.22); }

/* ============================================================
   КНОПКИ ДЕЙСТВИЙ — «Actions»: стекло, заходят на карту на 8px
   ============================================================ */
.acc-actions-wrap {
    position: relative;
    z-index: 3;
    margin-top: -8px;
    margin-bottom: 16px;
}

.acc-actions-viewport {
    container-type: inline-size;
    margin: 0 -16px;
    padding: 0 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding: 0 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.acc-actions-viewport::-webkit-scrollbar { display: none; }
.acc-actions-viewport.is-dragging { scroll-snap-type: none; cursor: grabbing; }

.acc-actions-track {
    display: flex;
    gap: 8px;
    width: max-content;
}

.acc-action {
    flex: 0 0 auto;
    width: calc((100cqw - 24px) / 4);    /* 4 кнопки на ширину экрана, как в макете */
    min-width: 72px;
    height: 62px;
    scroll-snap-align: start;
    border: 1px solid var(--sdbo-border-2);
    border-radius: var(--sdbo-r-sm);
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 2px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    line-height: 16px;
    font-weight: 500;
    color: var(--sdbo-text);
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s;
}

/* Иконка — плашка 26×26 с градиентом */
.acc-action i {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--sdbo-r-sm);
    background: var(--sdbo-grad-icon);
    box-shadow: inset 0 0 0 1px #ebebee;
    color: #fff;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.acc-action span {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover — «Variant2» из макета */
.acc-action:hover { background: rgba(255, 255, 255, 0.80); }
.acc-action:hover i { background: var(--sdbo-grad-icon-light); color: var(--sdbo-text); }

/* ============================================================
   ЗАГОЛОВКИ СЕКЦИЙ
   ============================================================ */
.acc-history__head,
.acc-rates__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 32px;
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    color: var(--sdbo-text);
}

.acc-quick__settings,
.acc-history__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--sdbo-text-2);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}
.acc-quick__settings:hover,
.acc-history__link:hover { color: var(--sdbo-text); }
.acc-history__link:focus { outline: none; }

.acc-history__link::after {
    content: "\F285";                   /* bi-chevron-right */
    font-family: "bootstrap-icons";
    font-size: 12px;
    line-height: 1;
}

/* ============================================================
   БЫСТРЫЙ ДОСТУП — карточка-«папка» с вкладкой
   ============================================================ */
.acc-quick { margin-bottom: 16px; }

.acc-quick__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.acc-quick__title {
    position: relative;
    z-index: 1;
    margin-bottom: -1px;
    padding: 12px 24px 4px 16px;
    background: var(--sdbo-surface);
    border: 1px solid var(--sdbo-border);
    border-bottom: none;
    border-radius: var(--sdbo-r-lg) var(--sdbo-r-lg) 0 0;
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    color: var(--sdbo-text);
}

/* Вогнутый скос справа от вкладки */
.acc-quick__title::after {
    content: '';
    position: absolute;
    left: 100%;
    bottom: 0;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 100% 0,
        transparent 18.6px,
        var(--sdbo-border) 19.1px,
        var(--sdbo-border) 19.9px,
        var(--sdbo-surface) 20.4px);
}

.acc-quick__settings { margin-top: 8px; }

.acc-quick__body {
    background: var(--sdbo-surface);
    border: 1px solid var(--sdbo-border);
    border-radius: 0 var(--sdbo-r-lg) var(--sdbo-r-lg) var(--sdbo-r-lg);
    padding: 8px 16px 16px;
}

.acc-quick__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
}

.acc-quick__item {
    border: none;
    background: var(--sdbo-surface-2);
    border-radius: var(--sdbo-r-sm);
    padding: 8px;
    min-height: 98px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--sdbo-text-3);
    text-align: left;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.acc-quick__item i {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--sdbo-r-sm);
    background: var(--sdbo-surface);
    color: var(--sdbo-text);
    font-size: 18px;
}

.acc-quick__item:hover { box-shadow: inset 0 0 0 1px var(--sdbo-border); }

/* ============================================================
   ИСТОРИЯ
   ============================================================ */
.acc-history { margin-bottom: 16px; }

.acc-history__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.acc-history__item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas:
        "icon info amount"
        "icon info status";
    align-items: center;
    column-gap: 12px;
    padding: 8px;
    background: var(--sdbo-surface);
    border-radius: var(--sdbo-r-sm);
}

.acc-history__icon {
    grid-area: icon;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--sdbo-border);
    color: var(--sdbo-text);
}

.acc-history__info { grid-area: info; min-width: 0; }

.acc-history__title {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--sdbo-text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acc-history__time {
    font-size: 12px;
    line-height: 16px;
    color: var(--sdbo-muted);
}

.acc-history__amount {
    grid-area: amount;
    align-self: end;
    text-align: right;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    white-space: nowrap;
}
.acc-history__amount--in  { color: var(--sdbo-success); }
.acc-history__amount--out { color: var(--sdbo-danger); }

.acc-history__status {
    grid-area: status;
    align-self: start;
    text-align: right;
    font-size: 12px;
    line-height: 16px;
    color: var(--sdbo-muted);
    white-space: nowrap;
}

.acc-history__empty {
    padding: 20px 8px;
    text-align: center;
    color: var(--sdbo-muted);
    font-size: 14px;
    line-height: 20px;
    list-style: none;
}

.acc-history__list.is-expanded {
    max-height: 440px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.acc-history__group-title {
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sdbo-muted);
    margin: 8px 0 0;
    padding: 0 4px;
    list-style: none;
}
.acc-history__group-title:first-child { margin-top: 0; }

/* ============================================================
   БАННЕРЫ (Stories)
   ============================================================ */
.acc-stories { margin: 0 0 16px; }

.acc-stories__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: var(--sdbo-r-sm);
}
.acc-stories__track::-webkit-scrollbar { display: none; }

.acc-story {
    flex: 0 0 100%;
    height: 80px;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 26px;
    border-radius: var(--sdbo-r-sm);
    box-shadow: inset 0 0 0 1px var(--sdbo-border-3);
    background-color: #e6e9ef;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    box-sizing: border-box;
}

.acc-story__text {
    max-width: 50%;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: var(--sdbo-text);
}

.acc-stories__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.acc-stories__dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--sdbo-dot);
    cursor: pointer;
    transition: background 0.2s;
}
.acc-stories__dot.is-active { background: var(--sdbo-primary); }

/* ============================================================
   КУРСЫ — «Widget»
   ============================================================ */
.acc-rates { margin-bottom: 16px; }

.acc-rates__widget {
    background: var(--sdbo-surface);
    border-radius: var(--sdbo-r-sm);
    padding: 16px 12px;
}

.acc-rates__cols,
.acc-rates__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px 76px;
    gap: 8px;
    align-items: center;
}

.acc-rates__cols {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 20px;
    color: var(--sdbo-muted);
    text-align: right;
}

.acc-rates__cols--fiat { grid-template-columns: 1fr auto; text-align: left; }
.acc-rates__cols--fiat .acc-rates__meta { justify-self: end; }

.acc-rates__meta {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    line-height: 16px;
    color: var(--sdbo-muted);
    white-space: nowrap;
    text-align: left;
}

.acc-rates__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sdbo-dot);
    flex-shrink: 0;
    transition: background 0.3s, box-shadow 0.3s;
}
.acc-rates__dot.on  { background: var(--sdbo-success); box-shadow: 0 0 0 3px var(--sdbo-success-bg); }
.acc-rates__dot.off { background: var(--sdbo-danger); }
.acc-rates__time { margin-left: 4px; }

.acc-rates__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.acc-rates__row { min-height: 24px; font-size: 14px; line-height: 20px; }
.acc-rates[data-rates-kind="fiat"] .acc-rates__row { grid-template-columns: 1fr auto; }

.acc-rates__sym {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--sdbo-text);
    white-space: nowrap;
}

.acc-rates__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
    border-radius: 50%;
}

.acc-rates__icon--flag {
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(11, 34, 42, 0.06);
}

.acc-rates__val {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    color: var(--sdbo-text);
    text-align: right;
    transform-origin: right center;
    transition: color 0.3s;
}
.acc-rates__val small { font-size: 12px; color: var(--sdbo-muted); }

.acc-rates__chg {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    font-weight: 500;
    white-space: nowrap;
}
.acc-rates__chg i { font-size: 10px; }
.acc-rates__chg--up   { color: var(--sdbo-success); }
.acc-rates__chg--down { color: var(--sdbo-danger); }

.acc-rates__row--loading .acc-rates__val { color: var(--sdbo-muted); }

.acc-rates__val.flash-up   { animation: rateFlashUp 0.6s ease; }
.acc-rates__val.flash-down { animation: rateFlashDown 0.6s ease; }

@keyframes rateFlashUp {
    0%, 50% { color: var(--sdbo-success); transform: scale(1.06); }
    100%    { color: var(--sdbo-text); transform: scale(1); }
}
@keyframes rateFlashDown {
    0%, 50% { color: var(--sdbo-danger); transform: scale(1.06); }
    100%    { color: var(--sdbo-text); transform: scale(1); }
}

/* ============================================================
   НИЖНИЙ ТАБ-БАР — «Tab Bar - iPhone» (стекло)
   ============================================================ */
.acc-tabbar {
    position: fixed;
    left: 50%;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 50;
    width: min(343px, calc(100% - 32px));
    height: 54px;
    display: flex;
    align-items: stretch;
    padding: 0 2px;
    border-radius: 296px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    box-sizing: border-box;
}

.acc-tabbar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--sdbo-tabbar-muted);
    text-decoration: none;
    font-size: 10px;
    line-height: 12px;
    font-weight: 500;
    letter-spacing: -0.01em;
    border-radius: 296px;
    transition: color 0.2s;
}
.acc-tabbar__item i { font-size: 22px; line-height: 1; }
.acc-tabbar__item:hover,
.acc-tabbar__item.is-active { color: var(--sdbo-text); }

/* ============================================================
   ИКОНКИ КРИПТОВАЛЮТ (SVG через mask)
   ============================================================ */
.crypto-icon {
    display: inline-block;
    width: 26px;
    height: 26px;
    background-color: currentColor;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.crypto-icon-btc  { -webkit-mask-image: url('../icons/crypto/btc.svg');  mask-image: url('../icons/crypto/btc.svg'); }
.crypto-icon-eth  { -webkit-mask-image: url('../icons/crypto/eth.svg');  mask-image: url('../icons/crypto/eth.svg'); }
.crypto-icon-usdt { -webkit-mask-image: url('../icons/crypto/usdt.svg'); mask-image: url('../icons/crypto/usdt.svg'); }
.crypto-icon-usdc { -webkit-mask-image: url('../icons/crypto/usdc.svg'); mask-image: url('../icons/crypto/usdc.svg'); }
.crypto-icon-bnb  { -webkit-mask-image: url('../icons/crypto/bnb.svg');  mask-image: url('../icons/crypto/bnb.svg'); }
.crypto-icon-sol  { -webkit-mask-image: url('../icons/crypto/sol.svg');  mask-image: url('../icons/crypto/sol.svg'); }
.crypto-icon-ton  { -webkit-mask-image: url('../icons/crypto/ton.svg');  mask-image: url('../icons/crypto/ton.svg'); }
.crypto-icon-avax { -webkit-mask-image: url('../icons/crypto/avax.svg'); mask-image: url('../icons/crypto/avax.svg'); }

/* ============================================================
   МОРГАНИЕ ЭКВИВАЛЕНТОВ ПРИ ОБНОВЛЕНИИ
   ============================================================ */
[data-equiv-usd],
[data-equiv-byn] {
    display: inline-block;
    border-radius: 4px;
    padding: 0 2px;
    transition: color 0.4s ease, filter 0.2s;
}

[data-equiv-usd].equiv-flash,
[data-equiv-byn].equiv-flash { animation: equivFlash 1.2s ease; }

@keyframes equivFlash {
    0%   { color: inherit; background: transparent; }
    30%  { color: #ffffff; background: rgba(255, 255, 255, 0.14); }
    100% { color: inherit; background: transparent; }
}

/* ============================================================
   ПОДСКАЗКИ (tooltip)
   ============================================================ */
.tooltip { font-family: var(--sdbo-font); }

.tooltip-inner {
    background: var(--sdbo-dark);
    color: var(--sdbo-on-dark);
    font-size: 12px;
    line-height: 16px;
    padding: 10px 12px;
    border-radius: var(--sdbo-r-sm);
    box-shadow: var(--sdbo-shadow-md);
    max-width: 320px;
    text-align: left;
}

.tooltip.bs-tooltip-top    .tooltip-arrow::before { border-top-color: var(--sdbo-dark); }
.tooltip.bs-tooltip-bottom .tooltip-arrow::before { border-bottom-color: var(--sdbo-dark); }
.tooltip.bs-tooltip-start  .tooltip-arrow::before { border-left-color: var(--sdbo-dark); }
.tooltip.bs-tooltip-end    .tooltip-arrow::before { border-right-color: var(--sdbo-dark); }
