/* Новая версия страниц «Крипто», «Идеи», «План» — строго по макету Figma (файл NkOhv72Cuhkmz3DTQcZkp9).
   Цвета брендбука: фиолетовый #7F4EFF, мятный #31E3AF, оранжевый #FE9848, красный #FD4A4A, чёрный #1E1E1E.
   Оболочка (сайдбар, шапка) — dashboard.css, здесь только содержимое страниц. */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Manrope-Medium-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Manrope-Medium-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Manrope-SemiBold-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Manrope-SemiBold-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Manrope-Bold-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Manrope-Bold-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.alteco-wrapper--sidebar {
  --rd-ink: #1E1E1E;
  --rd-ink-2: #717171;
  --rd-ink-3: #878787;
  --rd-line: #E5E5E5;
  --rd-line-2: #D5D5D5;
  --rd-gray: #F5F5F5;
  --rd-purple: #7F4EFF;
  --rd-purple-hover: #6E3FF0;
  --rd-mint: #31E3AF;
  --rd-mint-hover: #22D19C;
  --rd-orange: #FE9848;
  --rd-red: #FD4A4A;
  --rd-blue: #2A71FD;
}

/* ================= общие элементы ================= */

.rd-page { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; font-family: 'Manrope', -apple-system, sans-serif; color: var(--rd-ink); }
.rd-page [hidden] { display: none !important; }
.rd-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rd-card { background: #fff; border-radius: 16px; padding: 20px 32px; box-shadow: 0 2px 5px rgba(0, 0, 0, .1); min-width: 0; }

.rd-icon { display: block; flex-shrink: 0; }
.rd-icon--inline { display: inline-flex; width: 16px; height: 16px; }
.rd-icon--inline svg { width: 100%; height: 100%; display: block; }

.alteco-wrapper--sidebar .rd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; min-width: 200px; padding: 0 20px; border: 1px solid var(--rd-purple); border-radius: 8px;
  background: var(--rd-purple); color: #fff; font: 600 14px/1 'Manrope', sans-serif;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap;
}
.alteco-wrapper--sidebar .rd-btn:hover { background: var(--rd-purple-hover); border-color: var(--rd-purple-hover); color: #fff; }
.alteco-wrapper--sidebar .rd-btn:focus-visible { outline: 2px solid var(--rd-purple); outline-offset: 2px; }
.alteco-wrapper--sidebar .rd-btn:disabled, .alteco-wrapper--sidebar .rd-btn.is-loading { opacity: .55; cursor: default; pointer-events: none; }
.alteco-wrapper--sidebar .rd-btn--outline { background: #fff; color: var(--rd-ink); border-color: var(--rd-ink); }
.alteco-wrapper--sidebar .rd-btn--outline:hover { background: #F7F4FF; color: var(--rd-purple); border-color: var(--rd-purple); }
.rd-btn__arrow { font-weight: 400; }

.rd-muted { color: var(--rd-ink-2); font-weight: 400; }

.rd-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 16px; border-radius: 24px; color: #fff; font: 700 12px/1 'Manrope', sans-serif; flex-shrink: 0; }
.rd-tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 24px; background: #E5E5E5;
  color: #000; font: 400 12px/1 'Manrope', sans-serif; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0;
}

.rd-scorebar { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 160px; height: 16px; border-radius: 500px; background: #E5E5E5; overflow: hidden; vertical-align: middle; }
.rd-scorebar__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 500px; }
.rd-scorebar__value { position: relative; font: 600 12px/1 'Manrope', sans-serif; color: var(--rd-ink); }

.rd-hint {
  display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid currentColor; color: #717171; font: 600 10px/1 'Manrope', sans-serif; cursor: help; flex-shrink: 0; user-select: none; vertical-align: middle;
}
.rd-hint:hover, .rd-hint:focus-visible { color: #7F4EFF; outline: none; }
.cr-table th .rd-hint { margin-left: 2px; text-transform: none; letter-spacing: 0; }
.rd-tip {
  position: absolute; z-index: 10000; max-width: 300px; padding: 10px 12px; border-radius: 8px; background: #1E1E1E; color: #fff;
  font: 500 12px/1.45 'Manrope', -apple-system, sans-serif; box-shadow: 0 8px 24px rgba(30, 30, 30, .18); pointer-events: none;
}

/* поле ввода: высота 40, рамка #717171, радиус 8 */
.rd-field {
  position: relative; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  background: #fff; border: 1px solid var(--rd-ink-2); border-radius: 8px; font: 400 14px/1 'Manrope', sans-serif; color: #000; cursor: text;
}
.rd-field:focus-within { border-color: var(--rd-purple); }
/* глобальные стили старого сайта оформляют input и button[type=submit] — внутри поля их сбрасываем */
.rd-field input[type="text"] {
  flex: 1 1 auto; width: auto !important; min-width: 0; height: 100% !important; margin: 0 !important; padding: 0 !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; outline: 0; background: transparent !important;
  font: inherit !important; color: inherit !important;
}
.rd-field input::placeholder { color: #000; opacity: 1; }
.rd-field__btn {
  display: flex; flex-shrink: 0; width: auto !important; min-width: 0 !important; height: auto !important; margin: 0 !important; padding: 0 !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: none !important; cursor: pointer;
}
.rd-field__label { white-space: nowrap; }
.rd-field__overlay { position: absolute !important; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* выпадающие списки selectize внутри поля */
.rd-field--select { padding: 0 16px 0 0; cursor: pointer; }
.rd-field--select .selectize-control { flex: 1 1 auto; display: flex; align-items: center; min-width: 0; height: 38px; }
.rd-field--select .selectize-control .selectize-input > input { height: 38px !important; line-height: 38px !important; margin: 0 !important; padding: 0 !important; max-height: none !important; }
.rd-field--select .selectize-control .selectize-input > input:first-child:not(:only-child) { width: 4px !important; }
.rd-field--select .selectize-control .selectize-input {
  display: flex !important; align-items: center; flex-wrap: nowrap; height: 38px; min-height: 0; padding: 0 0 0 16px !important;
  border: 0 !important; border-radius: 8px !important; box-shadow: none !important; background: transparent !important;
  overflow: hidden; font: 400 14px/1 'Manrope', sans-serif !important; color: #000; cursor: pointer;
}
.rd-field--select .selectize-control .selectize-input::after { display: none !important; }
.rd-field--select .selectize-input > input { font: inherit !important; color: #000 !important; }
.rd-field--select .selectize-input > input::placeholder { color: #000; opacity: 1; }
.rd-field--select .selectize-input .item {
  margin: 0 4px 0 0 !important; padding: 2px 8px !important; border: 0 !important; border-radius: 100px !important;
  background: #F1ECFF !important; color: var(--rd-purple) !important; font-size: 12px !important; white-space: nowrap; text-shadow: none !important;
}
.rd-field--select .selectize-input .item.active { background: var(--rd-purple) !important; color: #fff !important; }
.rd-field--select .selectize-dropdown {
  min-width: 280px; margin-top: 4px; border: 1px solid var(--rd-line) !important; border-radius: 8px !important;
  box-shadow: 0 12px 32px rgba(30, 30, 30, .12) !important; font: 400 14px/1.35 'Manrope', sans-serif !important; z-index: 60;
}
.rd-field--select .selectize-dropdown .option { padding: 8px 12px !important; border-radius: 6px; }
.rd-field--select .selectize-dropdown .option.active { background: #F7F4FF !important; color: var(--rd-purple) !important; }
.rd-field--select .selectize-dropdown .optgroup-header { padding: 8px 12px 4px !important; font: 600 12px/1.2 'Manrope', sans-serif !important; color: var(--rd-ink-2) !important; background: transparent !important; }
.rd-field__icon { pointer-events: auto; cursor: pointer; }

/* выпадающий список в стиле поля: 200×36 */
.rd-select {
  width: 200px; height: 36px; padding: 0 40px 0 16px; border: 1px solid var(--rd-ink-2); border-radius: 8px;
  background: #fff url('../img/redesign/arrow-down.svg') no-repeat right 16px center / 16px 16px;
  font: 400 14px/1 'Manrope', sans-serif; color: #000; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.rd-select:focus { outline: 0; border-color: var(--rd-purple); }

/* ================= Крипто ================= */

.cr-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.cr-filter__search { width: 400px; }
.cr-filter__select { width: 200px; }
.cr-filter__period { width: auto; }
.alteco-wrapper--sidebar .banners { margin: 0; }

.cr-card { display: flex; flex-direction: column; gap: 16px; }
.cr-table-wrap { overflow-x: auto; }
.cr-table { width: 100%; min-width: 1180px; border-collapse: collapse; table-layout: fixed; }
.cr-col-name { width: 21.3%; }
.cr-col-price { width: 8.7%; }
.cr-col-rank { width: 7.4%; }
.cr-col-period { width: 11%; }   /* место под «?» подсказки */
.cr-col-ratio { width: 10.5%; }
.cr-col-rank60 { width: 14.6%; }
.cr-col-alteco { width: 13.9%; }
.cr-col-nvt { width: 6.9%; }
.cr-col-actions { width: 5.7%; }

.cr-table th {
  padding: 0 4px 10px; font: 400 11px/1 'Manrope', sans-serif; letter-spacing: .5px; text-transform: uppercase;
  color: var(--rd-ink-2); text-align: left; white-space: nowrap; background: transparent;
}
.cr-table td {
  padding: 10px 4px; height: 60px; border-bottom: 1px solid var(--rd-line-2); vertical-align: middle; white-space: nowrap;
  font: 600 15px/1.2 'Manrope', sans-serif; color: var(--rd-ink); overflow: hidden; text-overflow: ellipsis;
}
.cr-table th:first-child, .cr-table td:first-child { padding-left: 0; }
.cr-table tbody tr:first-child td { border-top: 1px solid var(--rd-line-2); }
.cr-table tbody tr:last-child td { border-bottom: 0; }
.cr-table .is-num { text-align: center; }

.rd-sort { display: inline-flex; align-items: center; gap: 4px; color: inherit !important; text-decoration: none; }
.rd-sort:hover, .rd-sort.is-active { color: var(--rd-ink) !important; }
.rd-sort__icon { transition: transform .15s; }
.rd-sort.is-asc .rd-sort__icon { transform: rotate(180deg); }

.cr-coin { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cr-coin__logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #F4F4F7; }
.cr-coin__logo--empty { display: flex; align-items: center; justify-content: center; font: 700 15px/1 'Manrope', sans-serif; color: #666; }
.cr-coin__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cr-coin__title { display: flex; align-items: center; gap: 4px; min-width: 0; color: var(--rd-ink) !important; text-decoration: none; }
.cr-coin__title b { font: 600 15px/1.2 'Manrope', sans-serif; }
.cr-coin__title:hover b { color: var(--rd-purple); }
.cr-coin__name { min-width: 0; max-width: 130px; padding: 2px 8px; border-radius: 100px; background: #F4F4F7; color: #666; font: 400 11px/1.3 'Manrope', sans-serif; overflow: hidden; text-overflow: ellipsis; }
.cr-coin__category { font: 400 13px/1.2 'Manrope', sans-serif; color: #858585; overflow: hidden; text-overflow: ellipsis; }

.cr-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.cr-action { display: inline-flex; padding: 0; border: 0; background: none; color: var(--rd-ink); cursor: pointer; }
.cr-action svg path { transition: fill .15s, stroke .15s; }
.cr-action:hover svg path { stroke: var(--rd-purple); }
.cr-action.is-active svg path { fill: var(--rd-purple); stroke: var(--rd-purple); }
.cr-action:disabled { opacity: .6; }

.cr-more { display: flex; justify-content: center; }
.cr-empty { height: auto !important; padding: 32px 0 !important; text-align: center !important; font-weight: 400 !important; color: var(--rd-ink-2) !important; white-space: normal !important; }

@media (max-width: 1320px) {
  .cr-table th:first-child, .cr-table td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; }
}

@media (max-width: 760px) {
  .cr-filter { flex-direction: column; }
  .cr-filter > * { width: 100%; }
  .cr-card { padding: 16px; }
  .cr-more .rd-btn { width: 100%; }
}

/* ================= Идеи ================= */

.id-target {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 10px 16px; border-radius: 12px;
  background: #F7F4FF; font: 500 13px/1.4 'Manrope', sans-serif; color: var(--rd-ink);
}
.id-target a { color: var(--rd-purple) !important; font-weight: 600; }

.id-filter {
  display: inline-flex; align-self: flex-start; align-items: flex-end; flex-wrap: wrap; gap: 20px; max-width: 100%;
  padding: 24px; border-radius: 20px; background: var(--rd-gray);
}
.id-filter__fields { display: flex; flex-wrap: wrap; gap: 10px; }
.id-field { display: flex; flex-direction: column; gap: 4px; }
.id-field__label { font: 500 14px/normal 'Manrope', sans-serif; color: #000; }
.id-filter__btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center !important;
  width: 200px; height: 59px; padding: 0 !important; border: 0 !important; border-radius: 12px !important; background: var(--rd-mint) !important; color: #fff !important;
  font: 500 16px/1.4 'Manrope', sans-serif !important; letter-spacing: -.176px; text-transform: none !important; box-shadow: none !important; cursor: pointer; transition: background-color .15s;
}
.id-filter__btn:hover { background: var(--rd-mint-hover) !important; }
.id-filter__btn:focus-visible { outline: 2px solid var(--rd-purple); outline-offset: 2px; }

.id-section { margin-top: 14px; }
.id-section__title { margin: 0 0 18px; font: 500 20px/1 'Manrope', sans-serif; letter-spacing: -1px; color: #000; }
.id-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }

.id-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 20px; border: 1px solid var(--rd-ink-2); border-radius: 20px; background: #fff; }
.id-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--rd-ink-2); }
.id-card__title { margin: 0; min-width: 0; font: 600 16px/normal 'Manrope', sans-serif; color: var(--rd-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.id-card__sub { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; }
.id-card__issuer { min-width: 0; font: 400 14px/1 'Manrope', sans-serif; color: var(--rd-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.id-card__rows { display: flex; flex-direction: column; gap: 8px; margin: 0; font: 400 14px/normal 'Manrope', sans-serif; color: var(--rd-ink); }
.id-card__row { display: flex; justify-content: space-between; gap: 10px; min-width: 0; }
.id-card__row dt { margin: 0; white-space: nowrap; }
.id-card__row dd { margin: 0; min-width: 0; font-weight: 700; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.id-card__actions { display: flex; gap: 10px; margin-top: auto; }
.id-card__actions > * { flex: 1 1 0; min-width: 0; }
.alteco-wrapper--sidebar .id-card .rd-btn { min-width: 0; padding: 0 12px; }

.id-btn-more {
  display: flex; align-items: center; justify-content: center; height: 36px; padding: 0 12px; border: 1px solid var(--rd-ink-2); border-radius: 8px;
  background: #fff; color: var(--rd-ink) !important; font: 400 14px/1 'Manrope', sans-serif; text-decoration: none; transition: border-color .15s, color .15s;
}
.id-btn-more:hover { border-color: var(--rd-purple); color: var(--rd-purple) !important; }
.id-btn-more[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.id-empty { margin-top: 14px; padding: 40px 32px; text-align: center; }
.id-empty__title { margin: 0 0 8px; font: 600 18px/1.3 'Manrope', sans-serif; }
.id-empty__text { margin: 0; font: 400 14px/1.5 'Manrope', sans-serif; color: var(--rd-ink-2); }

/* окно «подробнее» на страницах новой версии */
body:has(.alteco-wrapper--sidebar) .box-modal { font-family: 'Manrope', sans-serif; border-radius: 16px; }
body:has(.alteco-wrapper--sidebar) .box-modal .tabs__navigation input:checked + label { background: #7F4EFF; border-color: #7F4EFF; color: #fff; }

@media (max-width: 1600px) { .id-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1320px) { .id-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .id-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .id-filter { display: flex; align-self: stretch; flex-direction: column; align-items: stretch; padding: 16px; }
  .id-filter__fields { flex-direction: column; }
  .rd-select { width: 100%; }
  .id-filter__btn { width: 100%; height: 48px; }
}
@media (max-width: 640px) { .id-grid { grid-template-columns: minmax(0, 1fr); } }
