﻿@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-300.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-500.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-600.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #05070D;
  --black: #05050D;
  --surface: #1B1B23;
  --surface-2: #27272F;
  --line: #2F2F37;
  --blue: #1E55F9;
  --cyan: #00A5E9;
  --orange: #FF7C02;
  --yellow: #FFC700;
  --red: #E62929;
  --text: #FFFFFF;
  --text-75: rgba(255,255,255,.75);
  --text-40: rgba(255,255,255,.4);
  --font: 'Inter', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); scrollbar-gutter: stable; }
body { margin: 0; min-width: 1180px; color: var(--text); background: var(--bg); font-family: var(--font); }
body:has(.modal:not([hidden])), body.modal-open { overflow: hidden; scrollbar-gutter: stable; }
button, input { font: inherit; }
button { padding: 0; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.site { position: relative; min-height: 100vh; display: flex; flex-direction: column; isolation: isolate; background: var(--bg); }
.site::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--pattern) top center / 672px 672px repeat; opacity: .1; }
.header { position: sticky; top: 0; z-index: 50; width: 100%; height: 72px; padding: 0 max(24px, calc((100% - 1400px) / 2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: var(--surface); backdrop-filter: blur(20px); }
.header::after { content: ""; position: absolute; left: 0; right: 0; top: 72px; height: 12px; pointer-events: none; background: linear-gradient(to bottom, rgba(5,7,13,.72), rgba(5,7,13,0)); backdrop-filter: blur(12px); }
.brand { width: 54px; height: 54px; margin-left: 10px; display: grid; place-items: center; }
.brand img { width: 40px; height: 40px; }
.catalog-menu { position: relative; height: 72px; display: flex; justify-content: center; }
.catalog-menu::after { content: ""; position: absolute; left: 0; bottom: 0; width: 158px; height: 3px; background: var(--blue); border-radius: 3px 3px 0 0; box-shadow: 0 -2px 24px rgba(30,85,249,.8); transition: transform .35s ease, background-color .25s ease, box-shadow .25s ease; }
body.hot .catalog-menu::after { transform: translateX(158px); background: var(--orange); box-shadow: 0 -2px 24px rgba(255,124,2,.8); }
.nav-item { width: 158px; color: var(--text-75); font: 400 16px/20px var(--font); }
.nav-item.active { color: #fff; font-weight: 600; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 32px; }
.language-wrap { position: relative; z-index: 80; }
.language { width: 74px; height: 28px; display: flex; align-items: center; gap: 9px; color: var(--text-75); font: 400 16px/20px var(--font); }
.language img { content: url('assets/global.png'); width: 28px; height: 28px; object-fit: contain; image-rendering: auto; }
.language i { position: relative; top: -1px; width: 9px; height: 5px; background: url('assets/chevron-down.svg') center/contain no-repeat; transition: transform .2s ease; }
.language-wrap.open .language i { transform: rotate(180deg); }
.language-menu { position: absolute; right: 0; top: 30px; z-index: 90; width: 56px; padding: 4px; display: grid; gap: 2px; visibility: hidden; opacity: 0; transform: translateY(-6px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: none; filter: none; transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.language-wrap.open .language-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.language-menu button { height: 30px; padding: 0 8px; color: var(--text-75); border-radius: 7px; text-align: center; font: 400 14px/18px var(--font); }
.language-menu button:hover, .language-menu button.selected { color: var(--blue); background: rgba(30,85,249,.12); }
.theme { position: relative; width: 53px; height: 28px; overflow: hidden; background: rgba(255,255,255,.08); border-radius: 14px; }
.theme::before, .theme::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background-color: #fff; background-position: center; background-repeat: no-repeat; background-size: 14px 14px; border-radius: 50%; transition: transform .35s ease, opacity .2s ease; }
.theme::before { background-image: url('assets/theme-moon.svg'); opacity: 1; }
.theme::after { background-image: url('assets/theme-sun.svg'); opacity: 0; }
.theme[data-theme="light"]::before { opacity: 0; transform: translateX(25px) rotate(90deg); }
.theme[data-theme="light"]::after { opacity: 1; transform: translateX(25px) rotate(180deg); }
.login { width: 138px; height: 52px; padding: 0 20px 0 24px; display: flex; align-items: center; justify-content: flex-start; gap: 8px; color: #fff; background: var(--blue); border-radius: 26px; font: 500 16px/20px var(--font); overflow: hidden; }
.login:hover { background: #2864ff; }
.login .avatar { width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; }
.login .avatar img { width: 20px; height: 20px; object-fit: contain; }
.login.is-profile,
.login.is-profile:hover { width: 138px; height: 52px; padding: 4px 20px 4px 4px; gap: 12px; justify-content: flex-start; background: var(--black); }
.login.is-profile .avatar { width: 44px; height: 44px; flex: 0 0 44px; overflow: hidden; background: linear-gradient(145deg,#7A1FDB,#240B45); border-radius: 50%; }
.login.is-profile .avatar img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; }
.login .login-text { width: 66px; height: 19px; display: block; line-height: 19px; }
.login .profile-name { position: relative; width: 58px; min-width: 0; overflow: hidden; white-space: nowrap; font: 500 16px/20px var(--font); mask-image: linear-gradient(to right,#000 0,#000 calc(100% - 16px),transparent); }
.page-shell { width: 1400px; min-height: 760px; margin: 40px auto 0; display: grid; grid-template-columns: 315px minmax(0,1fr); gap: 40px; align-items: start; }
.sidebar { width: 315px; }
.add-channel { position: relative; width: 315px; height: 52px; margin-bottom: 40px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--blue); background: transparent; border: 1px solid var(--blue); border-radius: 9px; font: 600 16px/20px var(--font); transition: color .2s ease, background-color .2s ease; overflow: hidden; }
.add-channel:hover { color: #fff; background: var(--blue); }
.add-icon { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; font-size: 26px; line-height: 1; transition: opacity .2s ease, transform .5s ease; }
.add-label { transition: opacity .2s ease, transform .2s ease; }
.add-channel:hover .add-label { opacity: 0; transform: translateY(-6px); }
.add-channel:hover .add-icon { opacity: 1; transform: rotate(360deg); }
.filters { width: 315px; overflow: visible; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.filter-section, .range-filter, .extras { position: relative; z-index: 1; margin: 0; padding: 20px; overflow: visible; border-bottom: 1px solid rgba(255,255,255,.1); }
.filter-section.selector-open, .range-filter.selector-open, .extras.selector-open, .filter-section:has(.category-selector.open), .range-filter:has(.category-selector.open), .extras:has(.category-selector.open) { z-index: 500; }
.section-title { width: 100%; height: 20px; display: flex; align-items: center; justify-content: space-between; color: #fff; font: 300 16px/20px var(--font); text-align: left; }
.section-chevron { width: 9px; height: 5px; background: url('assets/chevron-down.svg') center/contain no-repeat; transition: transform .2s ease; }
.collapsed .section-chevron { transform: rotate(180deg); }
.filter-content { position: relative; z-index: 2; max-height: 520px; margin-top: 12px; overflow: visible; transition: max-height .28s cubic-bezier(.2,.8,.2,1), opacity .22s ease, margin .22s ease, transform .22s ease; }
.collapsed .filter-content { max-height: 0; margin-top: 0; opacity: 0; overflow: hidden; transform: translateY(-6px); pointer-events: none; }
.collapsed .extra-content { margin-top: 0; }
.filters .collapsed { height: 61px; padding-top: 20px; padding-bottom: 20px; overflow: hidden; }
.category-selector { position: relative; z-index: 20; width: 274px; }
.chips { position: relative; z-index: 32; width: 274px; height: 42px; padding: 6px; display: flex; align-items: center; gap: 6px; background: var(--black); border-radius: 10px; transition: border-radius .22s ease, box-shadow .22s ease; }
.selected-categories { position: relative; min-width: 0; flex: 1; display: flex; align-items: center; gap: 6px; overflow: hidden; }
.selected-categories::after { content: ""; position: absolute; top: 0; right: 0; width: 54px; height: 100%; pointer-events: none; background: linear-gradient(90deg, rgba(5,5,13,0), var(--black) 88%); }
.selected-categories:has(.empty-selection)::after { display: none; }
.empty-selection { padding-left: 6px; color: var(--text-40); font: 500 14px/18px var(--font); }
.chip { height: 30px; padding: 0 10px; color: var(--blue); background: rgba(30,85,249,.16); border-radius: 5px; font: 400 14px/18px var(--font); transition: opacity .18s ease, transform .18s ease, background-color .18s ease; }
.chip.just-added { animation: chipIn .18s ease both; }
.chip.removing { opacity: 0; transform: scale(.86); }
.chip.more { width: 20px; padding: 0; flex: 0 0 20px; background: url('assets/chevron-down.svg') center/9px 5px no-repeat; color: transparent; transform: rotate(180deg); }
.category-selector.open .chips { border-radius: 10px 10px 0 0; }
.category-selector.open .chip.more { transform: rotate(0); }
.dropdown-panel { position: absolute; z-index: 1000; top: 42px; left: 0; width: 274px; visibility: hidden; opacity: 0; transform: translateY(-8px) scaleY(.96); transform-origin: top center; background: var(--black); border-radius: 0 0 10px 10px; transition: opacity .22s ease, transform .24s cubic-bezier(.2,.8,.2,1), visibility .22s; }
.category-selector.open .dropdown-panel { visibility: visible; opacity: 1; transform: translateY(0) scaleY(1); }
.category-options { height: 385px; padding: 54px 12px 12px; overflow: hidden; }
.dropdown-search { position: absolute; top: 6px; left: 12px; width: 250px; height: 40px; padding: 0 12px; display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 10px; }
.dropdown-search img { width: 16px; height: 16px; flex: 0 0 16px; align-self: center; opacity: .4; filter: none; transition: opacity .28s ease, filter .28s ease; }
.dropdown-search.has-value img, .catalog-search.has-value img { opacity: 1; filter: brightness(0) invert(1); }
.dropdown-search input { width: 100%; min-width: 0; color: #fff; background: transparent; border: 0; outline: 0; font: 400 14px/18px var(--font); }
.search-clear { display: none; }
.option-list { width: 250px; height: 319px; padding-right: 10px; overflow-y: auto; scrollbar-width: none; }
.option-list::-webkit-scrollbar { display: none; }
.option-list button { width: 100%; height: 29px; padding: 0 8px; display: block; color: var(--text-75); text-align: left; font: 400 14px/18px var(--font); }
.option-list button:hover, .option-list button.selected { color: var(--blue); background: rgba(30,85,249,.12); }
.custom-scrollbar { position: absolute; top: 54px; right: 8px; width: 10px; height: 319px; cursor: pointer; }
.custom-scrollbar::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: #2D2D34; }
.custom-scrollbar i { position: absolute; left: 4px; top: 0; width: 2px; height: 42px; background: #fff; transition: top .08s linear; }
.title-left { display: inline-flex; align-items: center; gap: 8px; }
.currency-icon { width: 18px; height: 18px; }
.currency-switch { position: relative; width: 38px; height: 20px; display: inline-block; background: rgba(255,255,255,.08); border-radius: 10px; }
.currency-switch::before { content: ""; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; background: #2BD822; border-radius: 50%; transform: translateX(2px); transition: transform .2s ease, background-color .2s ease; }
.currency-switch[aria-checked="true"]::before { background: var(--blue); transform: translateX(20px); }
.range-values { width: 274px; display: grid; grid-template-columns: 133px 133px; gap: 8px; }
.range-values label { height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 9px; background: var(--black); border-radius: 10px; }
.range-values small { color: var(--text-40); font: 400 12px/15px var(--font); }
.range-values input { width: 100%; color: #fff; background: transparent; border: 0; outline: 0; font: 500 16px/20px var(--font); }
.dual-range { position: relative; width: 274px; height: 18px; margin-top: 12px; }
.dual-range::before, .range-fill { content: ""; position: absolute; top: 7px; height: 4px; border-radius: 2px; }
.dual-range::before { left: 0; right: 0; background: rgba(30,85,249,.24); }
.range-fill { left: var(--range-start); right: calc(100% - var(--range-end)); background: var(--blue); }
.dual-range input { position: absolute; inset: 0; width: 100%; height: 18px; margin: 0; pointer-events: none; appearance: none; background: transparent; }
.dual-range input::-webkit-slider-thumb { width: 14px; height: 14px; margin-top: 0; pointer-events: auto; appearance: none; background: var(--blue); border: 2px solid #F0F2FA; border-radius: 50%; }
.extra-content { display: grid; gap: 12px; margin-top: 24px; }
.extras label { min-height: 20px; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.72); font: 400 16px/20px var(--font); }
.extras input[type="checkbox"] { width: 20px; height: 20px; margin: 0; appearance: none; border: 1px solid #343640; border-radius: 4px; transition: transform .18s ease, border-color .18s ease, background-color .18s ease; }
.extras input[type="checkbox"]:checked { background: url('assets/check-box.svg') center/20px 20px no-repeat; border-color: transparent; animation: checkboxPop .22s ease; }
.filter-option-icon { width: 16px; height: 16px; margin-left: 0; object-fit: contain; }
.channel-type { margin-top: 12px; }
.channel-type strong { display: block; margin-bottom: 12px; color: #fff; font: 300 16px/20px var(--font); }
.channel-type > div { position: relative; width: max-content; height: 38px; padding: 4px; display: flex; align-items: center; gap: 2px; background: var(--black); border-radius: 10px; overflow: hidden; }
.channel-type > div::before { content: ""; position: absolute; left: var(--type-x, 4px); top: 4px; width: var(--type-w, 46px); height: 30px; background: var(--surface); border-radius: 6px; transition: left .24s ease, width .24s ease; }
.channel-type button { position: relative; z-index: 1; height: 30px; padding: 0 10px; color: var(--text-75); border-radius: 6px; font: 400 14px/18px var(--font); transition: color .2s ease; }
.channel-type button.selected { color: #fff; background: transparent; }
.filter-actions { padding: 18px 20px; display: grid; gap: 15px; border-bottom: 1px solid rgba(255,255,255,.1); }
.filter-actions button, .clear-filters { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.72); font: 400 15px/20px var(--font); text-align: left; }
.filter-actions img, .clear-filters img { width: 16px; height: 16px; object-fit: contain; }
.clear-filters { width: 100%; height: 64px; padding: 0 20px; color: #FF4050; }
.catalog-empty { min-height: 760px; padding-bottom: 80px; }
.catalog-toolbar { width: 100%; height: 52px; display: flex; align-items: center; justify-content: space-between; }
.catalog-search { width: 371px; height: 52px; padding: 0 18px; display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 10px; }
.catalog-search img { width: 16px; height: 16px; flex: 0 0 16px; align-self: center; opacity: .4; filter: none; transition: opacity .28s ease, filter .28s ease; }
.catalog-search input { width: 100%; color: #fff; background: transparent; border: 0; outline: 0; font: 300 16px/20px var(--font); }
.catalog-search input::placeholder { color: rgba(255,255,255,.4); }
.catalog-controls { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.reach-periods { display: flex; align-items: center; gap: 10px; }
.reach-periods[hidden] { display: none !important; }
.reach-periods button { width: var(--period-width); height: 52px; color: var(--text-75); background: transparent; border: 1px solid var(--line); border-radius: 10px; font: 500 16px/20px var(--font); }
.reach-periods button.selected { color: var(--black); background: rgba(255,255,255,.9); border-color: rgba(255,255,255,.9); }
.catalog-sort { position: relative; width: 220px; height: 52px; padding: 0 17px; display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 10px; transition: border-radius .18s ease; }
.sort-direction { width: 18px; height: 52px; display: grid; place-items: center; align-self: center; }
.sort-direction img { width: 16px; height: 16px; transition: transform .25s ease; }
.sort-direction[aria-pressed="true"] img { transform: scaleY(-1); }
.sort-dropdown { position: static; flex: 1; }
.dropdown-trigger { width: 100%; height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-40); font: 300 16px/20px var(--font); }
.dropdown-trigger i { width: 9px; height: 5px; background: url('assets/chevron-down.svg') center/contain no-repeat; }
.sort-dropdown .dropdown-panel { position: absolute; z-index: 1000; left: 0; top: 52px; width: 220px; box-sizing: border-box; padding: 0; overflow: hidden; visibility: hidden; opacity: 0; transform: translateY(-8px) scaleY(.96); transform-origin: top center; background: var(--surface); border-radius: 0 0 10px 10px; transition: opacity .22s ease, transform .24s cubic-bezier(.2,.8,.2,1), visibility .22s; }
.catalog-sort:has(.sort-dropdown.open) { border-radius: 10px 10px 0 0; }
.sort-dropdown.open .dropdown-panel { visibility: visible; opacity: 1; transform: translateY(0) scaleY(1); }
.sort-dropdown .dropdown-panel button { width: 100%; height: 36px; box-sizing: border-box; padding: 0 17px; display: flex; align-items: center; color: var(--text-75); text-align: left; font: 300 16px/20px var(--font); }
.sort-dropdown .dropdown-panel button:hover, .sort-dropdown .dropdown-panel button.selected { color: var(--blue); background: rgba(30,85,249,.12); }
.channel-grid { width: 1046px; margin-top: 40px; display: grid; grid-template-columns: repeat(3, 338px); gap: 16px; }
.channel-card { position: relative; width: 338px; height: 486px; overflow: hidden; color: #fff; background: var(--surface); border-radius: 16px; cursor: default; transition: box-shadow .2s ease; }
.channel-card:hover { box-shadow: 0 0 0 2px rgba(30,85,249,.35); }
body.hot .channel-card:hover { box-shadow: 0 0 0 2px rgba(255,124,2,.35); }
.card-cover { position: relative; width: 294px; height: 88px; margin-left: 44px; overflow: visible; border-radius: 0 16px 0 0; cursor: pointer; }
.card-cover::before { content: ""; position: absolute; inset: 0; width: 294px; background: var(--cover-bg); border-radius: 0 16px 0 0; box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); }
.card-avatar { position: absolute; z-index: 4; left: -44px; top: 0; width: 88px; height: 88px; display: grid; place-items: center; background: var(--avatar-bg); border: 12px solid var(--surface); border-radius: 50%; }
.avatar-letter { width: 64px; height: 64px; display: grid; place-items: center; color: #fff; font: 700 26px/1 var(--font); }
.card-pro { position: absolute; z-index: 6; left: -36px; top: 8px; width: 41px; height: 22px; display: grid; place-items: center; color: #fff; background: linear-gradient(90deg,var(--orange),var(--yellow)); border: 2px solid var(--surface); border-radius: 11px; font: 700 12px/18px var(--font); }
.card-favorite { position: absolute; z-index: 5; top: 14px; right: 15px; width: 20px; height: 20px; }
.card-favorite img { width: 18px; height: 18px; transition: transform .2s ease, filter .2s ease; }
.card-favorite[aria-pressed="true"] img { animation: favoritePop .28s ease; }
.card-tags { position: absolute; z-index: 5; right: 12px; bottom: 12px; display: flex; flex-direction: row-reverse; align-items: center; gap: 4px; }
.card-tag { height: 24px; padding: 0 8px; display: grid; place-items: center; color: var(--cyan); background: rgba(0,165,233,.18); border-radius: 5px; font: 400 11px/14px var(--font); }
.card-tag.icon { width: 24px; padding: 5px; }
.card-tag.icon.ad { background: rgba(255,124,2,.18); }
.card-tag.icon.rkn { background: rgba(255,199,0,.18); }
.card-tag.icon img { width: 14px; height: 14px; }
.card-title-line { position: absolute; left: 24px; top: 96px; width: 290px; height: 22px; display: flex; align-items: center; gap: 9px; overflow: hidden; mask-image: linear-gradient(to right,#000 0,#000 calc(100% - 28px),transparent); }
.card-title { margin: 0; color: #fff; white-space: nowrap; font: 600 18px/22px var(--font); }
.card-verified { width: 16px; height: 16px; flex: 0 0 16px; }
.card-description { position: absolute; left: 24px; top: 126px; width: 290px; height: 36px; margin: 0; padding-left: 11px; overflow: hidden; color: rgba(255,255,255,.72); border-left: 3px solid #058FF9; font: 400 12px/18px var(--font); }
.card-metrics { position: absolute; left: 12px; top: 182px; width: 314px; height: 137px; padding: 4px; display: grid; grid-template-columns: 151px 151px; grid-template-rows: 45px 45px 31px; gap: 4px; background: var(--surface-2); border-radius: 12px; }
.metric { width: 151px; height: 45px; padding: 6px 10px 0; background: transparent; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; }
.metric small { display: block; color: var(--text-40); font: 400 10px/12px var(--font); }
.metric strong { margin-top: 2px; display: inline-flex; align-items: center; gap: 8px; color: #fff; font: 500 16px/19px var(--font); }
.metric strong::after { content: ""; width: 12px; height: 12px; background: url('assets/metric-line-up.svg') center/contain no-repeat; }
.metric:nth-child(2) strong::after { background: url('assets/metric-emotion-puzzled.svg') center/contain no-repeat; transform: none; }
.metric:nth-child(3) strong::after { background: url('assets/metric-emotion-happy.svg') center/contain no-repeat; display: inline-block; }
.metric:nth-child(4) strong::after { background: url('assets/metric-emotion-sad.svg') center/contain no-repeat; display: inline-block; }
.metric-orders strong::after, .metric-score strong::after { display: none; }
.metric-orders, .metric-score { height: 31px; padding: 0 10px 0 12px; display: flex; align-items: center; background: var(--surface); border: 0; }
.metric-orders strong, .metric-score strong { margin: 0; color: var(--blue); }
.metric-score strong { color: #F7C02A; }
.metric-orders small, .metric-score small { margin-left: auto; }
.metric-icon { position: relative; top: 1.5px; margin-right: 5.5px; }
.card-price { position: absolute; left: 0; right: 0; top: 335px; display: flex; align-items: center; justify-content: center; color: #fff; font: 600 24px/29px var(--font); }
.price-ruble { margin-left: 6px; }
.price-ton { width: 20px; height: 20px; margin-left: 6px; }
.card-slots { position: absolute; left: 50%; top: 372px; width: 169px; height: 38px; padding: 4px; display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--text-75); background: var(--black); border-radius: 9px; transform: translateX(-50%); font: 400 14px/18px var(--font); }
.card-slots::before { content: ""; position: absolute; left: var(--slot-x, 4px); top: 4px; width: var(--slot-w, 45px); height: 30px; background: var(--surface); border-radius: 6px; transition: left .24s ease, width .24s ease; }
.card-slots button { position: relative; z-index: 1; height: 30px; padding: 6px 10px; display: grid; place-items: center; color: var(--text-75); border-radius: 6px; transition: color .2s ease; }
.card-slots .selected { color: #fff; background: transparent; }
.card-buy { position: absolute; left: 12px; bottom: 12px; width: 314px; height: 48px; color: #fff; background: var(--blue); border: 1px solid var(--blue); border-radius: 10px; font: 600 16px/20px var(--font); transition: background-color .2s ease, border-color .2s ease; }
.card-buy:hover, .card-buy:active { color: #fff; background: var(--blue); }
.hot-buy-label, .card-countdown { display: none; }
.hot-deal { display: none; }
body.hot .channel-card { height: 540px; }
body.hot .card-slots { display: none; }
body.hot .hot-deal { position: absolute; left: 50%; top: 372px; display: flex; align-items: center; justify-content: center; gap: 4px; transform: translateX(-50%); white-space: nowrap; font: 400 14px/18px var(--font); }
body.hot .hot-deal span, body.hot .hot-deal b { min-height: 30px; padding: 6px 10px; display: grid; place-items: center; color: #fff; border-radius: 6px; background: var(--surface-2); }
body.hot .hot-deal b { background: linear-gradient(90deg, #FF9496 0%, #FF0000 100%); font-weight: 400; }
body.hot .card-buy { bottom: 46px; color: #fff; border-color: var(--orange); background: var(--orange); }
body.hot .card-buy:hover, body.hot .card-buy:active { color: #fff; background: var(--orange); }
body.hot .catalog-buy-label { display: none; }
body.hot .hot-buy-label { display: inline; }
body.hot .card-countdown { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 26px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--orange); background: rgba(255,124,2,.12); border-radius: 10px; font: 500 14px/18px var(--font); }
.clock-icon { width: 18px; height: 18px; display: grid; place-items: center; font-size: 18px; line-height: 1; }
.channel-page { grid-template-columns: 314px 692px 314px; }
.channel-sidebar { width: 314px; }
.channel-tabs { width: 314px; height: 136px; padding: 4px; display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.channel-tabs button { height: 62px; padding: 0 20px; color: var(--text-75); border-radius: 8px; text-align: left; font: 600 18px/22px var(--font); transition: color .2s ease, background-color .25s ease; }
.channel-tabs button.selected { color: #fff; background: var(--surface-2); }
.channel-dates { width: 314px; height: 86px; margin-top: 20px; padding: 16px; display: grid; gap: 14px; background: #000003; border-radius: 12px; }
.channel-dates div { width: 282px; height: 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; color: var(--text-75); font: 400 14px/18px var(--font); }
.channel-dates i { height: 1px; opacity: .12; border-bottom: 1px dashed #fff; }
.channel-dates b { color: #fff; font-weight: 400; }
.channel-detail-card { width: 692px; min-height: 360px; overflow: hidden; background: var(--surface); border-radius: 16px; }
.detail-cover { height: 132px; position: relative; background: var(--cover-bg); box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); }
.detail-avatar { position: absolute; left: 32px; bottom: -44px; width: 88px; height: 88px; display: grid; place-items: center; background: var(--surface); border-radius: 50%; }
.detail-avatar span { width: 64px; height: 64px; display: grid; place-items: center; color: #fff; background: var(--avatar-bg); border-radius: 50%; font: 700 24px/1 var(--font); }
.detail-body { padding: 60px 32px 32px; }
.detail-body h1 { margin: 0 0 12px; color: #fff; font: 600 28px/34px var(--font); }
.detail-body p { max-width: 560px; margin: 0; color: var(--text-75); font: 400 16px/24px var(--font); }
.detail-stats { margin-top: 28px; display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.detail-stats div { min-height: 70px; padding: 12px; background: var(--surface-2); border-radius: 12px; }
.detail-stats small { display: block; color: var(--text-40); font: 400 12px/16px var(--font); }
.detail-stats strong { display: block; margin-top: 4px; color: #fff; font: 600 18px/22px var(--font); }
.channel-buy-column { width: 314px; display: grid; gap: 40px; align-content: start; }
.channel-link-row { min-height: 52px; display: grid; grid-template-columns: 1fr 174px; align-items: center; gap: 20px; }
.channel-link-row > span { color: var(--text-75); font: 400 14px/18px var(--font); }
.channel-link-row > span b { color: var(--orange); font-weight: 400; }
.channel-copy { width: 174px; height: 52px; padding: 0 16px 0 20px; display: flex; align-items: center; justify-content: space-between; color: var(--blue); background: rgba(30,85,249,.12); border-radius: 10px; font: 600 14px/18px var(--font); }
.channel-copy img { width: 18px; height: 18px; }
.channel-copy.copied { color: #fff; background: var(--blue); }
.channel-price-card { position: relative; width: 314px; height: 179px; background: var(--surface); border-radius: 12px; }
.static-price { position: static; height: 58px; padding-top: 20px; }
.detail-slots { top: 66px; }
.detail-buy { left: 0; right: 0; bottom: 16px; margin: 0 auto; }
.load-more { width: 314px; height: 52px; margin: 50px auto; color: var(--blue); background: transparent; border: 1px solid var(--blue); border-radius: 10px; font: 600 16px/20px var(--font); }

.profile-page { grid-template-columns: 315px minmax(0,1046px); grid-template-rows: 52px auto; }
.profile-sidebar { grid-row: 1 / span 2; }
.profile-page-title { grid-column: 2; grid-row: 1; height: 52px; margin: 0; display: flex; align-items: center; color: #fff; font: 600 30px/36px var(--font); }
.profile-menu-stack { display: grid; gap: 20px; }
.profile-menu-card { width: 314px; padding: 4px; display: grid; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.profile-main-menu { height: 202px; }
.profile-buy-menu { height: 245px; }
.profile-sell-menu { height: 179px; }
.profile-manage-menu { min-height: 302px; }
.profile-menu-title { height: 38px; margin: -4px -4px 4px; padding: 0 20px; display: flex; align-items: center; color: var(--blue); background: rgba(30,85,249,.12); font: 500 14px/18px var(--font); }
.profile-sell-menu .profile-menu-title { color: #2AB822; background: rgba(42,184,34,.12); }
.profile-manage-menu .profile-menu-title { color: var(--orange); background: rgba(255,124,2,.12); }
.profile-menu-card button { width: 306px; height: 62px; padding: 0 20px; color: var(--text-75); text-align: left; border-radius: 8px; font: 600 18px/22px var(--font); transition: color .2s ease, background-color .2s ease; }
.profile-menu-card button.selected { color: #fff; background: var(--surface-2); }
.profile-content { grid-column: 2; grid-row: 2; width: 1046px; min-height: 214px; background: var(--surface); border-radius: 12px; }
.profile-content-main { height: 214px; padding: 32px; }
.profile-id-row { display: grid; grid-template-columns: 479px 479px; gap: 24px; }
.profile-id-field { height: 70px; display: grid; gap: 10px; }
.profile-id-field > span { color: #fff; font: 600 18px/22px var(--font); }
.profile-id-field button { position: relative; width: 100%; height: 38px; padding: 0 48px 0 16px; display: flex; align-items: center; color: var(--blue); background: rgba(30,85,249,.12); border-radius: 8px; font: 500 14px/18px var(--font); transition: none; }
.profile-id-field button img { position: absolute; right: 18px; width: 18px; height: 18px; }
.profile-id-field button.copied { color: #fff; background: var(--blue); }
.profile-logout { width: 99px; height: 48px; margin: 32px 0 0 auto; display: flex; align-items: center; justify-content: center; color: #E62929; background: var(--black); border-radius: 10px; font: 700 16px/20px var(--font); }
.profile-placeholder { padding: 32px; color: #fff; font: 600 24px/30px var(--font); }
.footer { width: 1400px; min-height: 220px; margin: auto auto 0; padding: 42px 54px; display: grid; grid-template-columns: repeat(4,1fr); gap: 72px; color: var(--text-75); background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; font: 400 16px/22px var(--font); }
.footer div { display: flex; flex-direction: column; gap: 14px; }
.footer h3 { margin: 0 0 10px; color: var(--blue); font: 600 18px/22px var(--font); }
.footer-copyright { margin-top: 14px; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(0,0,0,.55); animation: modalFade .2s ease; }
.modal-card { position: relative; width: min(454px, calc(100vw - 32px)); min-height: 257px; padding: 32px; color: #fff; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; text-align: center; animation: modalLift .22s ease; }
.auth-card { transform: translateY(-20%); }
.modal-close { position: absolute; right: 20px; top: 18px; color: var(--text-40); font-size: 24px; }
.modal-card h2 { margin: 0; color: #fff; font: 600 32px/39px var(--font); }
.modal-card p { margin: 12px 0 0; color: var(--text-75); font: 400 16px/20px var(--font); }
.auth-note { display: block; margin-top: 16px; color: var(--text-75); font: 400 12px/16px var(--font); }
.telegram-button { width: 253px; height: 48px; margin: 24px auto 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; background: #0088CC; border-radius: 10px; font: 600 16px/20px var(--font); }
.telegram-button img { width: 20px; height: 20px; }
.add-channel-card { width: min(454px, calc(100vw - 32px)); height: 507px; padding: 32px 12px; text-align: left; transform: translateY(-10%); }
.add-channel-card h2 { text-align: center; }
.add-channel-card .modal-subtitle { display: none; }
.channel-steps { margin-top: 24px; display: grid; gap: 12px; }
.channel-step { position: relative; width: 430px; margin: 0 auto; padding: 20px 16px 20px 64px; color: var(--text-75); background: var(--surface-2); border-radius: 12px; font: 400 16px/20px var(--font); }
.channel-step:nth-child(1) { height: 120px; }
.channel-step:nth-child(2) { height: 89px; }
.channel-step:nth-child(3) { height: 70px; }
.step-number { position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; display: grid; place-items: center; color: #fff; background: var(--orange); border-radius: 50%; font: 600 16px/20px var(--font); }
.channel-step b { color: #fff; font-weight: 600; }
.step-info { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: inline-grid; width: 18px; height: 18px; margin-left: 0; place-items: center; color: var(--text-75); border: 1px solid rgba(255,255,255,.65); border-radius: 50%; font-style: normal; font-size: 12px; }
.bot-copy { width: 100%; height: 44px; margin-top: 18px; padding: 0 14px 0 16px; display: flex; align-items: center; justify-content: space-between; color: var(--blue); background: rgba(30,85,249,.12); border-radius: 8px; font: 500 14px/18px var(--font); transition: none; }
.bot-copy img { width: 18px; height: 18px; }
.bot-copy > span { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.copy-success { display: none !important; }
.bot-copy.copied .copy-default { display: none !important; }
.bot-copy.copied { color: #fff; background: var(--blue); animation: none; }
.bot-copy.copied .copy-success { display: flex !important; }
.submit-channel { position: relative; width: 176px; height: 48px; margin: 28px auto 0; display: flex; align-items: center; justify-content: center; color: var(--blue); background: transparent; border: 1px solid var(--blue); border-radius: 10px; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.submit-channel:hover, .submit-channel:active { color: #fff; background: var(--blue); }
.submit-channel.is-loading { color: transparent; background: #5087FF; border-color: #5087FF; pointer-events: none; }
.submit-channel.is-loading::after { content: ""; position: absolute; left: calc(50% - 12px); top: calc(50% - 12px); width: 24px; height: 24px; margin: 0; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; transform-origin: 50% 50%; animation: loaderSpin .75s linear infinite; }
@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalLift { from { opacity: 0; transform: translateY(calc(var(--modal-y, 0px) + 12px)); } to { opacity: 1; } }
@media (max-width: 1500px) { body { min-width: 0; } .header { padding: 0 24px; } .page-shell, .footer { width: calc(100% - 48px); } }
@media (max-width: 900px) { .header { height: 116px; grid-template-columns: 1fr auto; grid-template-rows: 52px 48px; grid-template-areas: "brand actions" "nav nav"; padding: 8px 16px 0; } .header::after { top: 116px; } .brand { grid-area: brand; } .catalog-menu { grid-area: nav; } .header-actions { grid-area: actions; gap: 12px; } .page-shell { width: calc(100% - 32px); grid-template-columns: 1fr; } .sidebar, .add-channel, .filters { width: 100%; } .channel-grid { width: 100%; grid-template-columns: minmax(0,338px); } .footer { grid-template-columns: 1fr; } .footer-empty { display: none !important; } }


.step-text { display: block; }
.channel-step:nth-child(2), .channel-step:nth-child(3) { display: flex; align-items: center; }
.step-red { color: #E62229; font-weight: 400; }
.step-blue { color: var(--blue); }
.catalog-search img { transition: opacity .28s ease, filter .28s ease; }
.search-clear { display: none !important; }
.reach-periods button { transition: color .2s ease, background-color .24s ease, border-color .24s ease, transform .18s ease; }
.reach-periods button.selected { animation: periodSelect .2s ease; }
.filter-actions button img { transition: transform .45s ease, filter .2s ease; }
.save-search[aria-pressed="true"] img { animation: favoritePop .28s ease; filter: none; }
.restore-search.is-spinning img { animation: restoreSpin .55s ease; }
@keyframes chipIn { from { opacity: 0; transform: scale(.86) translateY(-2px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes checkboxPop { 0% { transform: scale(.82); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes favoritePop { 0% { transform: scale(.8); } 55% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes restoreSpin { to { transform: rotate(360deg); } }
@keyframes periodSelect { 0% { transform: scale(.96); } 100% { transform: scale(1); } }
@keyframes copyPulse { 0% { transform: scale(.98); } 100% { transform: scale(1); } }


.metric-icon-img { width: 16px; height: 16px; object-fit: contain; flex: 0 0 16px; }
.metric-orders .metric-icon-img { margin-right: 5.5px; }
.metric-score .metric-icon-img { margin-right: 6.25px; }
input[type="search"]::-webkit-search-cancel-button { appearance: none; display: none; }
input[type="search"]::-ms-clear { display: none; width: 0; height: 0; }

/* 2026-06 auth/catalog polish */
.language { width: 68px; }
.language img { content: url('assets/global.png'); width: 20px; height: 20px; object-fit: contain; }
.selected-categories { flex-wrap: nowrap; }
.chip { max-width: 210px; flex: 0 0 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: opacity .54s ease, transform .54s ease, background-color .18s ease; }
.chip.just-added { animation-duration: .54s; }
.dropdown-search img { width: 20px; height: 20px; flex-basis: 20px; transition: opacity .28s ease, filter .28s ease; }
.dual-range { overflow: visible; cursor: pointer; }
.catalog-empty { padding-bottom: 100px; }
.catalog-page { margin-bottom: 80px; }
.catalog-search { padding-left: 18.5px; padding-right: 18.5px; }
.catalog-search img { width: 21px; height: 21px; flex-basis: 21px; transition: opacity .28s ease, filter .28s ease; }
.sort-direction { align-items: center; justify-items: center; }
.sort-direction[aria-pressed="true"] img { transform: scaleX(-1); }
.catalog-sort.has-selection .dropdown-trigger { color: var(--text-75); }
.catalog-sort.has-selection .sort-direction img { opacity: .75; }
.card-pro { width: 41px; height: 22px; font: 700 12px/18px var(--font); }
.metric strong::after { width: 16px; height: 16px; }
.metric-orders strong, .metric-score strong { gap: 5px; }
.metric-orders .metric-icon-img, .metric-score .metric-icon-img { margin-right: 0 !important; }
.metric-score strong { color: #F7C02A; }
.card-slots { justify-content: flex-start; }
.modal-card { animation: modalZoom .22s ease; }
.bot-copy .copy-default b { color: var(--blue); font: 500 14px/18px var(--font); }
.bot-copy.copied .copy-success b { color: #fff; font: 500 14px/18px var(--font); }
.bot-copy.copied img { content: url('assets/copy-check.svg'); }
.submit-channel.is-loading::after { left: 50%; top: 50%; translate: -50% -50%; }
@keyframes modalZoom { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }

/* Modal positioning fix: keep zoom animation from fighting translateY offsets */
#auth-modal { align-items: start; padding-top: calc(50vh - 154px); }
#channel-modal { align-items: start; padding-top: calc(50vh - 304px); }
.auth-card,
.add-channel-card { transform: none; }
.modal-card { transform-origin: center; animation: modalZoomStable .22s cubic-bezier(.2,.8,.2,1); }
@keyframes modalZoomStable {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: scale(1); }
}



body.hot .hot-deal span, body.hot .hot-deal b { font: 400 14px/18px var(--font); }
