/*
  Стили страницы поиска детектов.
  Палитра: тёмная тема проекта (--bg, --panel, --border, --text, --muted).
  BEM-подобные имена с префиксом sds- (Shot Detect Search).
*/

:root {
    /* Локальные переменные страницы */
    --sds-accent: #2b6cb0;
    --sds-accent-hover: #2c5f9e;
    --sds-up: #22c55e;
    --sds-down: #ef4444;
    --sds-inv-active: #e6a817;
    --sds-chip-bg: rgba(43, 108, 176, 0.15);
    --sds-chip-border: rgba(43, 108, 176, 0.35);
    --sds-row-hover: rgba(255, 255, 255, 0.03);
    --sds-row-expanded-bg: rgba(0, 0, 0, 0.18);
    --sds-radius: 8px;
    --sds-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ========================= PAGE ========================= */

.sds-page {
    min-height: 100%;
    padding: 0 0 20px;
    color: var(--text);
    font-family: var(--ui, sans-serif);
}

/* ========================= TOPBAR ========================= */

.sds-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: var(--panel);
}

/* ---- info-бар ---- */

.sds-infobar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    min-height: 36px;
    flex-wrap: wrap;
}

.sds-infobar__left {
    flex-shrink: 0;
}

.sds-infobar__toggle {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 4px 10px;
    border-radius: var(--sds-radius);
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.sds-infobar__toggle:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

/* Анимация пульсации кнопки Параметры при первом открытии */
.sds-infobar__toggle.is-pulsing {
    border-color: var(--sds-accent);
    animation: toggle-glow 2s ease-in-out infinite;
}

.sds-infobar__toggle.is-pulsing::before,
.sds-infobar__toggle.is-pulsing::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: var(--sds-radius);
    border: 1px solid var(--sds-accent);
    opacity: 0;
    pointer-events: none;
}

.sds-infobar__toggle.is-pulsing::before {
    animation: pulse-ring 2s ease-out infinite;
}

.sds-infobar__toggle.is-pulsing::after {
    animation: pulse-ring 2s ease-out infinite 1s;
}

@keyframes toggle-glow {

    0%,
    100% {
        box-shadow: 0 0 4px rgba(43, 108, 176, 0.3);
    }

    50% {
        box-shadow: 0 0 12px rgba(43, 108, 176, 0.6);
    }
}

@keyframes pulse-ring {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

/* badge с количеством активных фильтров */
.sds-badge {
    background: var(--sds-accent);
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 999px;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
}

/* ---- filter chips ---- */

.sds-infobar__chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.sds-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--sds-chip-bg);
    border: 1px solid var(--sds-chip-border);
    border-radius: 999px;
    font-size: 11px;
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
}

.sds-chip:hover {
    border-color: var(--sds-accent);
}

.sds-chip__label {
    font-family: var(--sds-mono);
}

.sds-chip__remove {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
    padding: 0 2px;
    line-height: 1;
}

.sds-chip__remove:hover {
    color: var(--sds-down);
}

/* ========================= FILTERS PANEL ========================= */

.sds-filters {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--panel);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.sds-filters__body {
    padding: 10px 12px 12px;
}

.sds-filters__row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.sds-filters__row--primary {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---- пресеты ---- */

.sds-filters__row--presets {
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sds-presets__label {
    font-size: 11px;
    color: var(--muted);
    margin-right: 4px;
}

.sds-preset {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 3px 10px;
    border-radius: var(--sds-radius);
    cursor: pointer;
    font-size: 11px;
}

.sds-preset:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.14);
}

.sds-preset.is-active {
    border-color: var(--sds-accent);
    color: var(--text);
}

/* ---- сетка групп фильтров (4 колонки, как expanded-content) ---- */

.sds-fgroups-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 16px;
    margin-bottom: 12px;
}

@media (max-width: 1200px) {
    .sds-fgroups-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sds-fgroups-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- группа фильтров (колонка) ---- */

.sds-fgroup {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sds-fgroup__title {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 200, 120, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    background: rgba(255, 200, 120, 0.1);
    border-radius: 4px;
    margin-bottom: 4px;
}

/* ---- поле фильтра внутри группы ---- */

.sds-filter-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sds-filter-group__label {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 3px;
}

.sds-filter-group__inputs {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sds-filter-group__sep {
    color: var(--muted);
    font-size: 12px;
}

.sds-input {
    width: 100%;
    min-width: 0;
    height: 26px;
    line-height: 26px;
    background: #202528;
    border: 1px solid #444;
    color: #fff;
    padding: 0 6px;
    border-radius: 6px;
    font-size: 11px;
    font-family: var(--sds-mono);
}

.sds-input:focus {
    outline: none;
    border-color: var(--sds-accent);
}

/* Убираем стрелки-спиннеры на числовых полях */
.sds-input::-webkit-inner-spin-button,
.sds-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sds-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ---- кнопка инверсии ---- */

.sds-inv-btn {
    flex-shrink: 0;
    width: 28px;
    height: 26px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #444;
    color: var(--muted);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.sds-inv-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.sds-inv-btn.is-active {
    background: rgba(230, 168, 23, 0.15);
    border-color: var(--sds-inv-active);
    color: var(--sds-inv-active);
}

/* ---- селектор UTC-зоны для datetime-фильтров ---- */

.sds-tz-select {
    flex-shrink: 0;
    height: 26px;
    background: #202528;
    border: 1px solid #444;
    color: var(--muted);
    padding: 0 4px;
    border-radius: 6px;
    font-size: 10px;
    cursor: pointer;
    min-width: 60px;
}

.sds-tz-select:focus {
    outline: none;
    border-color: var(--sds-accent);
    color: var(--text);
}

.sds-tz-select option {
    background: var(--bg, #0f1113);
    color: var(--text);
}

/* ---- кнопка точного совпадения символа ---- */

.sds-exact-btn {
    flex-shrink: 0;
    width: 28px;
    height: 26px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #444;
    color: var(--muted);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.sds-exact-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.sds-exact-btn.is-active {
    background: rgba(43, 108, 176, 0.15);
    border-color: var(--sds-accent);
    color: var(--sds-accent);
}

/* ---- поля ---- */

.sds-field {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.sds-field label {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 3px;
}

.sds-field select {
    height: 26px;
    line-height: 26px;
    background: #202528;
    border: 1px solid #444;
    color: #fff;
    padding: 0 6px;
    border-radius: 6px;
    font-size: 11px;
}

.sds-field select option {
    background: var(--bg, #0f1113);
    color: var(--text);
}

/* ---- кнопки действий ---- */

.sds-filters__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sds-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: var(--sds-radius);
    font-size: 12px;
    cursor: pointer;
    border: none;
}

.sds-btn--primary {
    background: var(--sds-accent);
    color: #fff;
}

.sds-btn--primary:hover {
    background: var(--sds-accent-hover);
}

.sds-btn--secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    border: 1px solid #444;
}

.sds-btn--secondary:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.14);
}

.sds-btn--ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid transparent;
}

.sds-btn--ghost:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.08);
}

.sds-btn--csv {
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    border: 1px solid #444;
    padding: 3px 10px;
    border-radius: var(--sds-radius);
    font-size: 11px;
    cursor: pointer;
}

.sds-btn--csv:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.14);
}

/* ========================= STATUS ========================= */

.sds-status {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: var(--sds-radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.sds-status--error {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.10);
    color: var(--text);
}

.sds-status--warn {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.10);
    color: #fbbf24;
}

.sds-status:empty {
    display: none;
}

/* ========================= META BAR ========================= */

.sds-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--muted);
}

.sds-meta-bar__info {
    font-family: var(--sds-mono);
}

/* ========================= TABLE ========================= */

.sds-table-wrap {
    margin: 0 12px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--sds-radius);
}

.sds-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.sds-table thead {
    position: sticky;
    top: 0;
    z-index: 5;
}

.sds-table th {
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

/* Несортируемые столбцы (_expand, _graph) — без pointer */
.sds-table th:empty {
    cursor: default;
    width: 1px;
    padding: 8px 4px;
}

.sds-table th:hover {
    color: var(--text);
}

/* Индикатор сортировки */
.sds-table th .sds-sort-icon {
    margin-left: 4px;
    font-size: 10px;
    opacity: 0.4;
}

.sds-table th.is-sorted .sds-sort-icon {
    opacity: 1;
    color: var(--sds-accent);
}

.sds-table td {
    padding: 3px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-family: var(--sds-mono);
    white-space: nowrap;
}

.sds-table tbody tr {
    cursor: pointer;
}

.sds-table tbody tr:hover {
    background: var(--sds-row-hover);
}

/* Раскрытая строка — без hover-подсветки и курсора */
.sds-table tbody tr.sds-expanded-row {
    cursor: default;
}

.sds-table tbody tr.sds-expanded-row:hover {
    background: var(--sds-row-expanded-bg);
}

/* Side badges */
.sds-side--up {
    color: var(--sds-up);
    font-weight: 600;
}

.sds-side--down {
    color: var(--sds-down);
    font-weight: 600;
}

/* Стрелка свёрнуто/развёрнуто (accordion) */
.sds-expand-arrow {
    display: inline-block;
    font-size: 9px;
    color: var(--muted);
    transition: transform 0.15s ease;
    width: 12px;
    text-align: center;
}

/* При раскрытии строки стрелка поворачивается ▶ → ▼ */
.sds-table tbody tr.is-expanded .sds-expand-arrow {
    transform: rotate(90deg);
    color: var(--sds-accent);
}

/* Ссылка на график */
.sds-graph-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    text-decoration: none;
    font-size: 12px;
}

.sds-graph-link:hover {
    border-color: var(--sds-accent);
    background: rgba(43, 108, 176, 0.15);
}

/* ---- раскрытая строка (expanded row) ---- */

.sds-expanded-row {
    background: var(--sds-row-expanded-bg);
}

.sds-expanded-row td {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sds-expanded-content {
    padding: 10px 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 16px;
}

@media (max-width: 900px) {
    .sds-expanded-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- группа в подробностях ---- */

.sds-detail-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sds-detail-group__title {
    font-size: 11px;
    font-weight: 700;
    color: var(--sds-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 4px;
    margin-bottom: 2px;
    border-bottom: 1px solid rgba(43, 108, 176, 0.25);
}

.sds-detail-item {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sds-detail-item__label {
    font-size: 11px;
    color: var(--muted);
}

.sds-detail-item__value {
    font-family: var(--sds-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

/* ========================= PAGINATION ========================= */

.sds-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px;
}

.sds-page-btn {
    min-width: 30px;
    height: 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-family: var(--sds-mono);
}

.sds-page-btn:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.14);
}

.sds-page-btn.is-active {
    background: var(--sds-accent);
    border-color: var(--sds-accent);
    color: #fff;
}

.sds-page-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.sds-page-ellipsis {
    color: var(--muted);
    font-size: 12px;
    padding: 0 4px;
}

/* ========================= WELCOME ========================= */

.sds-welcome {
    max-width: 100%;
    margin: 0 auto;
    padding: 32px 16px 40px;
}

/* ---- Hero ---- */

.sds-welcome__hero {
    text-align: center;
    margin-bottom: 32px;
}

.sds-welcome__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--sds-accent);
    background: rgba(43, 108, 176, 0.1);
    border: 1px solid rgba(43, 108, 176, 0.2);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.sds-welcome__title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 0 12px;
    color: var(--text);
}

.sds-welcome__title-accent {
    background: linear-gradient(135deg, var(--sds-accent), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sds-welcome__desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

.sds-welcome__desc strong {
    color: var(--text);
    font-weight: 600;
}

/* ---- Feature-карточки ---- */

.sds-welcome__features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

@media (max-width: 900px) {
    .sds-welcome__features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .sds-welcome__features {
        grid-template-columns: 1fr;
    }
}

.sds-feature-card {
    position: relative;
    overflow: hidden;
    padding: 20px 18px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

.sds-feature-card:hover {
    border-color: rgba(43, 108, 176, 0.25);
    background: rgba(43, 108, 176, 0.04);
    transform: translateY(-2px);
}

/* Фоновая иконка — большая, обрезанная в правом верхнем углу */
.sds-feature-card::before {
    content: attr(data-icon);
    position: absolute;
    top: -18px;
    right: -10px;
    font-size: 110px;
    line-height: 1;
    opacity: 0.10;
    pointer-events: none;
    transition: opacity 0.25s;
}

.sds-feature-card:hover::before {
    opacity: 0.18;
}

.sds-feature-card__body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    z-index: 1;
}

.sds-feature-card__body strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.sds-feature-card__body span {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.55;
}

/* ---- Секция ---- */

.sds-welcome__section {
    margin-bottom: 28px;
}

.sds-welcome__section-title {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 200, 120, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    background: rgba(255, 200, 120, 0.1);
    border-radius: 6px;
    margin: 0 0 12px;
}

.sds-welcome__section-hint {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0 0 14px;
}

/* ---- Таблица-справочник столбцов ---- */

.sds-ref-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.sds-ref-table thead th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sds-ref-table__col-name {
    width: 120px;
    white-space: nowrap;
}

.sds-ref-table tbody td {
    padding: 7px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: top;
}

.sds-ref-table tbody tr:last-child td {
    border-bottom: none;
}

.sds-ref-table tbody td:first-child {
    white-space: nowrap;
}

.sds-ref-table tbody td code {
    font-family: var(--sds-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.sds-ref-table tbody td:last-child {
    color: var(--muted);
    line-height: 1.5;
}

/* Акцентные строки MPP / MLP */
.sds-ref-table__accent-row {
    border-left: 3px solid transparent;
}

.sds-ref-table__accent-row--mpp {
    border-left-color: rgba(34, 197, 94, 0.6);
    background: rgba(34, 197, 94, 0.04);
}

.sds-ref-table__accent-row--mlp {
    border-left-color: rgba(239, 68, 68, 0.6);
    background: rgba(239, 68, 68, 0.04);
}

.sds-ref-table__accent-row td:last-child strong {
    color: var(--text);
}

/* ---- Quick Start: таблица-сетка (категории × периоды) ---- */

/* Горизонтальная раскладка блоков бирж */
.sds-welcome__exchanges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sds-exchange-block {
    flex: 1 1 280px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 16px 20px;
    transition: border-color 0.2s;
}

.sds-exchange-block:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Лого биржи — слева, по центру */
.sds-exchange-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    object-fit: contain;
    margin-top: 4px;
}

/* Правая часть: название + маркеты */
.sds-exchange-block__content {
    flex: 1;
    min-width: 0;
}

.sds-exchange-block__name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

/* Секция маркета (Futures / Spot) */
.sds-market-section {
    margin-bottom: 10px;
}

.sds-market-section:last-child {
    margin-bottom: 0;
}

.sds-market-section__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--sds-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 4px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(43, 108, 176, 0.3);
}

/* Таблица-сетка категория × период */
.sds-qs-grid {
    width: auto;
    border-collapse: collapse;
    font-size: 11px;
}

.sds-qs-grid th {
    font-weight: 600;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
    padding: 2px 6px 4px;
}

.sds-qs-grid td {
    padding: 2px 4px;
    text-align: center;
}

/* Первая колонка — название категории */
.sds-qs-grid__cat {
    text-align: left !important;
    font-weight: 600;
    color: var(--muted);
    padding-right: 10px;
    white-space: nowrap;
    font-size: 11px;
}

/* Категории без цветовой кодировки — единый стиль */

/* Кнопка-точка */
.sds-quickstart-pill {
    width: 52px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.15s ease;
    padding: 0;
    line-height: 1;
}

.sds-quickstart-pill:hover {
    border-color: var(--sds-accent);
    background: rgba(43, 108, 176, 0.15);
    color: var(--text);
}

@media (max-width: 900px) {
    .sds-welcome__exchanges {
        flex-direction: column;
    }

    .sds-exchange-block {
        flex: 1 1 auto;
    }
}

@media (max-width: 500px) {
    .sds-exchange-logo {
        width: 36px;
        height: 36px;
    }

    .sds-exchange-block {
        padding: 12px;
        gap: 10px;
    }
}



/* ========================= LOADER OVERLAY ========================= */

.sds-loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.sds-loader-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Кольцевой спиннер */
.sds-loader-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--sds-accent);
    border-radius: 50%;
    animation: sds-spin 0.8s linear infinite;
}

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

.sds-loader-text {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.3px;
}