/* ====== БАЗА  ====== */
/* Темная общая */
:root{
	--header-bg: rgba(0,0,0,0.5);
  	--row-bg: rgba(0,0,0,0.2);
  	--line-color: rgba(16,12,113,1);
  	--font-color: #EDEAFB;
  	--pos: rgba(62, 197, 196, 1);
	--neg: rgba(255, 97, 86, 1);
  	--muted: #9aa0c6;
  	--radius: 14px;
	--button-background2: #ffff;
	--button-hover-background2: #000DFF;
	--button-text2: rgba(18, 0, 82, 1);
	--button-text3: #ffff;
	--main-text: #ffff;
	--input-background2: rgb(0 0 0 / 30%);
	--border2: rgba(18, 0, 82, 0);
	--placeholder: rgba(255, 255, 255, 0.5);
	--input-active-background2: rgb(0 0 0 / 40%);
	--input-hover-background2: rgb(0 0 0 / 35%);
	--menu-shadow: 0 12px 30px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, .3);
	--menu-background: rgb(0 0 0 / 50%);
	--arrow-icon: url('/wp-content/uploads/2025/09/ad.svg');
	--menu-hover-option: rgba(255,255,255,.12);
	--checkbox-border: #070063;
	--row-hover-bg: rgba(0,0,0,0.4);
	--table-shadow: none;
	--card-bg: rgb(0 0 0 / 30%);
	--block-background: rgba(0,0,0,.50);
	--block-border: rgba(122, 162, 255, 0.2);
	--button-background: rgba(255,255,255,.06);
	--button-hover-background: rgba(122, 162, 255, 0.12);
	--token-component-shadow: 0px 1px 0px 1px rgba(255, 255, 255, 0.02) inset, 0px 6px 24px 0px rgba(0, 0, 0, 0.45);
	--value-text-color: rgba(230, 237, 247, 1);
	--card-header-color: rgba(207, 224, 255, 1);
	--tg-alert-tab-active-bg: rgb(0 31 255 / 54%);
	--tg-alert-tab-active-text: #EDEAFB;
	--tg-alert-checkbox-accent: rgb(0 31 255 / 84%);
}

.favorite-ticker-btn {
    border: none;
    background: transparent;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    margin-right: 6px;
    padding: 0;
}

.favorite-ticker-btn.is-favorite {
    color: #f1c40f;
}

.favorite-ticker-btn:hover,
.favorite-ticker-btn:focus,
.favorite-ticker-btn:active,
.favorite-ticker-btn:focus-visible {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.favorite-ticker-btn:hover {
    color: #ffd84d;
}

/* Светлая общая*/
body.light-mode {
  	--header-bg: rgba(239, 242, 255, 1);
  	--row-bg: rgba(255, 255, 255, 1);
  	--line-color: rgba(19, 0, 87, 0.15);
  	--font-color: rgba(15, 21, 66, 1);
  	--pos: rgba(62, 197, 196, 1);
	--neg: rgba(255, 97, 86, 1);
  	--muted: #9aa0c6;
  	--radius: 14px;
	--button-background2: rgba(15, 21, 66, 1);
	--button-hover-background2: rgb(5 11 51);
	--button-text2: #ffff;
	--button-text3:#ffff;
	--main-text: rgba(15, 21, 66, 1);
	--input-background2: rgba(239, 242, 255, 1);
	--border2: rgba(19, 0, 87, 0.15);
	--placeholder: rgba(15, 21, 66, 0.5);
	--input-active-background2: rgb(255 255 255 / 80%);
	--input-hover-background2: rgb(255 255 255 / 80%);
	--menu-shadow: 0 12px 30px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, .05);
	--menu-background: rgb(255 255 255 / 100%);
	--arrow-icon: url('/wp-content/uploads/2025/09/la.svg');
	--menu-hover-option: rgba(19, 0, 87, 0.05);
	--checkbox-border:rgba(7, 0, 99, 1);
	--row-hover-bg: rgba(255,255,255,.12);
	--table-shadow: 2.3px 2.3px 34.3px -13px rgba(0, 0, 0, 0.05);
	--card-bg: rgb(255 255 255 / 100%);
	--block-background: rgba(255, 255, 255, 1);
	--block-border: rgba(122, 162, 255, 0.2);
	--button-background: rgba(255, 255, 255, 1);
	--button-hover-background: rgba(122, 162, 255, 0.12);
	--token-component-shadow: 2.3px 2.3px 34.3px -13px rgba(0, 0, 0, 0.05);
	--value-text-color: rgba(15, 21, 66, 1);
	--card-header-color: rgba(15, 21, 66, 1);
	--tg-alert-tab-active-bg: rgb(36 87 255 / 72%);
	--tg-alert-tab-active-text: #FFFFFF;
	--tg-alert-checkbox-accent: rgb(36 87 255 / 95%);
}

.cf-scaner {
	width: min(1480px, calc(100% - 40px));
	margin-inline: auto;
	margin-top: 0;
	margin-bottom: 20px;
}

body.light-mode #filter_result .toggle-other:hover {
  	background: rgba(15, 21, 66, 1);
	color: #ffffff;
}

.menu_item {
	opacity:0.8 !important;
} 

.menu_item:hover {
	opacity:1 !important;
} 

.filters-horizontal-container .filters-horizontal-container {
	margin-bottom:20px;
}

.filters-horizontal-container button {
    display: inline-block;
    font-weight: 500;
    color: var(--button-text2);
    text-align: center;
    white-space: nowrap;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: var(--button-background2);
    border: 0;
    padding: 0.6rem 1rem;
    font-size: 16px;
    border-radius: 6px;
    transition: all .2s;
	width:160px;
}

.filters-horizontal-container button:hover {
	background-color: var(--button-hover-background2);
	color: var(--button-text3);
}

.filters-horizontal-container button:focus {
	background-color: var(--button-hover-background2);
	color:#fff;
	-webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.filters-horizontal-container button:active {
	background-color: var(--button-hover-background2);
	color:#fff;
	border:none;
	outline:none;
	-webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

#exchanges_container button {
	color: var(--main-text);
}

.horizontal-filter-form {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.filter-row.top-row {
    display: flex;
    gap: 10px;
}

.filter-row.bottom-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-group {
    width: 25%;
}

.filter-row.bottom-row > * {
  width: auto;
}

.filter-row.bottom-row .exchanges-button-group, .filter-row.bottom-row .networks-button-group, .filter-row.bottom-row .additional-button-group {
	width: auto;
}

.filter-row.bottom-row .volume-group,
.filter-row.bottom-row .spread-group,
.filter-row.bottom-row .sort-group {
    flex: 0.9 1 0;
    min-width: 0;
}

.filter-row.bottom-row .acceptor-group {
    flex: 1.05 1 0;
    min-width: 0;
}

.filter-row.bottom-row .amount-group {
    flex: 0.8 1 0;
    min-width: 0;
}

.filter-row.bottom-row .limits-group {
    flex: 0.9 1 0;
    min-width: 0;
}

.filter-row.bottom-row .exchanges-button-group {
    flex: 0 0 auto;
}

.filter-row.bottom-row .button-group {
    flex: 0 0 150px;
}

.filter-row.bottom-row .button-group {
	margin-left:auto;
}

.filter-group.button-group {
	text-align:right;
}

#toggle_exchanges, #toggle_networks, #toggle_additional, .exchanges-controls button {
	opacity:0.8;
	position: relative;
	color: var(--main-text);
	background: transparent;
	border: none;
	cursor: pointer;
	width:auto;
	padding: 0.6rem 0;
	margin: 0 0px;
}

#toggle_exchanges::after, #toggle_networks::after, #toggle_additional::after, .exchanges-controls button::after {
    content: "";
    position: absolute;
    left: 0px;
    bottom: 6px;
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed var(--main-text);
}

#toggle_exchanges:hover, #toggle_networks:hover, #toggle_additional:hover, .exchanges-controls button:hover {
    opacity:1;
}

.exchanges-controls button {
	padding-top:0px;
	font-size:14px;
	
}

.exchanges-controls button:hover {
	background:none;
	
}

.exchanges-controls button:focus {
	background:none;
	
}

.blacklist-group {
    width: 75%;
}

/* ===== БАЗОВЫЕ ПОЛЯ ===== */
:is(#cex-spreads-v2, #dex-spreads-v2) input,
:is(#cex-spreads-v2, #dex-spreads-v2) select,
:is(#cex-spreads-v2, #dex-spreads-v2) textarea {
  	-webkit-user-select: none;
  	-moz-user-select: none;
  	user-select: none;
  	width: 100%;
  	border: 1px solid var(--border2);
  	border-radius: 6px;
  	padding: .5rem 1rem;
  	transition: all .3s;
  	height: 40px; 
  	background: var(--input-background2);
  	font-size: 16px;
  	color: var(--main-text);
  	-webkit-text-fill-color: currentColor !important;
  	caret-color: var(--input-caret-color, currentColor);
}

:is(#cex-spreads-v2, #dex-spreads-v2) input:focus,
:is(#cex-spreads-v2, #dex-spreads-v2) select:focus,
:is(#cex-spreads-v2, #dex-spreads-v2) textarea:focus {
  	background: var(--input-active-background2);
}

:is(#cex-spreads-v2, #dex-spreads-v2) input:hover,
:is(#cex-spreads-v2, #dex-spreads-v2) select:hover,
:is(#cex-spreads-v2, #dex-spreads-v2) textarea:hover {
  	background: var(--input-hover-background2);
}

:is(#cex-spreads-v2, #dex-spreads-v2) input::placeholder,
:is(#cex-spreads-v2, #dex-spreads-v2) textarea::placeholder {
  	color: var(--placeholder) !important;
  	opacity: 1; /* Firefox */
}

:is(#cex-spreads-v2, #dex-spreads-v2) input:focus::placeholder,
:is(#cex-spreads-v2, #dex-spreads-v2) textarea:focus::placeholder {
  	color: var(--placeholder) !important;
  	opacity: 1;
}

:is(#cex-spreads-v2, #dex-spreads-v2) input::-webkit-input-placeholder,
:is(#cex-spreads-v2, #dex-spreads-v2) textarea::-webkit-input-placeholder {
  	color: var(--placeholder) !important;
}
:is(#cex-spreads-v2, #dex-spreads-v2) input:focus::-webkit-input-placeholder,
:is(#cex-spreads-v2, #dex-spreads-v2) textarea:focus::-webkit-input-placeholder {
  	color: var(--placeholder) !important;
}


#cex-spreads-v2 input:focus, #dex-spreads-v2 input:focus {
  	outline: none;
  	box-shadow: none;
}


#cex-spreads-v2 select:focus, #dex-spreads-v2 select:focus {
  	outline: none;
  	box-shadow: none;
}

#cex-spreads-v2 select option, #dex-spreads-v2 select option {
  	background-color: var(--input-background2);
}

#cex-spreads-v2 .filter-select.is-hidden, #dex-spreads-v2 .filter-select.is-hidden {
  	position:absolute!important; 
	left:-99999px!important;
  	width:1px!important; 
	height:1px!important; 
	opacity:0!important;
  	pointer-events:none!important;
}

#cex-spreads-v2 .csel, #dex-spreads-v2 .csel { 
	position:relative; 
	display:block; 
	width:100%; 
	font:inherit; 
}

#cex-spreads-v2 .csel__toggle, #dex-spreads-v2 .csel__toggle {
    all: unset;
    display: flex;
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    line-height: 40px;
    padding: 0px 50px 0 14px;
    border-radius: 6px;
    border: 1px solid var(--border2);
    background: var(--input-background2);
    color: var(--placeholder);
    cursor: pointer;
    position: relative;
    font: inherit;
    align-items: center;
	transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#cex-spreads-v2 .csel__toggle:hover, #dex-spreads-v2 .csel__toggle:hover {
	background: var(--input-hover-background2);
}

#cex-spreads-v2 .csel__toggle:focus, #dex-spreads-v2 .csel__toggle:focus {
	background: var(--input-active-background2);
	color: var(--main-text);
}

#cex-spreads-v2 .csel__toggle::after, #dex-spreads-v2 .csel__toggle::after  {
  	content:''; 
	position:absolute; 
	right:10px; 
	top:50%;
  	width:20px; 
	height:20px; 
	transform:translateY(-50%);
  	pointer-events:none;
	background: var(--arrow-icon) no-repeat center/contain;
}


#cex-spreads-v2 .csel__menu, #dex-spreads-v2 .csel__menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: block;
    z-index: 9999;
    padding: 10px;
    max-height: none;
    border-radius: 10px;
    border: none;
    background: var(--menu-background);
    backdrop-filter: blur(20px);
    box-shadow: var(--menu-shadow);
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
	isolation: isolate;
    transition: 
        opacity 0.25s ease, 
        transform 0.25s ease;
}

#cex-spreads-v2 .csel__menu.is-open, #dex-spreads-v2 .csel__menu.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#cex-spreads-v2 .csel__menu.is-open, #dex-spreads-v2 .csel__menu.is-open { 
	display:block; 
}

#cex-spreads-v2 .acceptor-group .csel__menu {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 10px;
}

#cex-spreads-v2 .acceptor-group .csel__option + .csel__option {
	margin-top: 0;
}

#cex-spreads-v2 .csel__option, #dex-spreads-v2 .csel__option{
  	padding:10px 12px; 
	color: 
	var(--main-text); 
	border-radius:6px; 
	cursor:pointer; 
	user-select:none;
}

#cex-spreads-v2 .csel__option + .csel__option, #dex-spreads-v2 .csel__option + .csel__option { 
	margin-top:4px; 
}

#cex-spreads-v2 .csel__option:hover, #dex-spreads-v2 .csel__option:hover { 
	background:var(--menu-hover-option); 
}

#cex-spreads-v2 .filter-group, #dex-spreads-v2 .filter-group { 
	position:relative; 
}

.exchanges-grid-container {
    padding: 20px;
    background: var(--input-background2);
    border-radius: 16px;
	border: 1px solid var(--border2);
}

.exchanges-controls {
	display: flex;
    gap: 10px;
	margin-top: 2px;
    margin-bottom: 10px;
}

.exchanges-grid {
	display:flex;
	flex-direction:column;
	gap:10px;
}

.exchange-label {
	width:100%;
	display: flex;
	line-height: 1.4;
    align-items: center;
	font-size:12px;
	width:153px;
	color: var(--main-text);
	font-weight:500;
}

.exchanges-row {
	display:flex;
	gap:2px;
	justify-content:flex-start;
}

#cex-spreads-v2 input.exchange-checkbox,
#dex-spreads-v2 input.exchange-checkbox,
#dex-spreads-v2 input.network-checkbox,
#dex-spreads-v2 input.additional-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 0.5px solid var(--checkbox-border);
  border-radius: 4px;
  background-color: #000dff !important;
  cursor: pointer;
  position: relative;
  box-shadow: none !important;
  margin-right: 3px;
  padding: 0;
}

#cex-spreads-v2 input.exchange-checkbox:checked,
#dex-spreads-v2 input.exchange-checkbox:checked,
#dex-spreads-v2 input.network-checkbox:checked,
#dex-spreads-v2 input.additional-checkbox:checked {
  background-color: #000dff !important;
  padding: 0;
}

#cex-spreads-v2 input.exchange-checkbox:checked::after,
#dex-spreads-v2 input.exchange-checkbox:checked::after,
#dex-spreads-v2 input.network-checkbox:checked::after,
#dex-spreads-v2 input.additional-checkbox:checked::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 6px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  padding: 0;
}


/* Контейнер */
#filter_result:not(:where(#filter_result #filter_result))  {
    background: #00000000;
    border-radius: var(--radius);
    padding: 0;
    border: 1px solid var(--border2);
	box-shadow: var(--table-shadow);
	margin-bottom:80px;
}

/* Таблица */
#filter_result table {
  	width: 100%;
  	border-collapse: separate;
  	border-spacing: 0;
  	color: var(--font-color);
  	border-radius: var(--radius);
  	background: transparent;
  	border: none; 
  	box-shadow: none;
	margin-block-end:0px;
}

/* Шапка */
#filter_result th {
  background: var(--header-bg);
  color: var(--main-text);
  font-weight: 700;
  font-size: 16px;
  text-align: left;
  padding: 14px 16px;
  border: none; 
  border-bottom: 1px solid var(--border2);
  white-space: nowrap;
}

/* Строки */
#filter_result td {
  background: var(--row-bg);
  font-weight: 500;
  font-size: 15px;
  text-align: left;
  padding: 12px 12px;
  vertical-align: middle;
  border: none;
  border-bottom: 1px solid var(--line-color); 
  transition: background 0.2s ease;
}

#filter_result th.compact-cell,
#filter_result td.compact-cell {
  padding-left: 10px;
  padding-right: 10px;
  min-width: 96px;
}

#filter_result td.compact-cell .price-value {
  font-size: 13px;
  line-height: 1.25;
}

/* Ховер */
#filter_result tr:hover td{
  background: var(--row-hover-bg);
}

/* Скругления */
#filter_result tr:first-child th:first-child{ border-top-left-radius: var(--radius); }
#filter_result tr:first-child th:last-child{ border-top-right-radius: var(--radius); }
#filter_result tr:last-child td:first-child{ border-bottom-left-radius: var(--radius); }
#filter_result tr:last-child td:last-child{ border-bottom-right-radius: var(--radius); }

/* Цвета значений */
#filter_result .positive-value{ color: var(--pos); }
#filter_result .negative-value{ color: var(--neg); }
#filter_result .neutral-value{ color: var(--muted); }

.positive-value{ color: var(--pos); }
.negative-value{ color: var(--neg); }
.neutral-value{ color: var(--muted); }

#filter_result a {
    position: relative;
    color: var(--main-text)!important;
    text-decoration: none; 
}

#filter_result a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0px; 
    height: 1px;
    border-bottom: 1px dashed var(--main-text);
}

.exchange-pair {
	display:flex;
}

.exchange-logo {
	border-radius: 100px;
    margin-right: 5px;
}

.network-logo {
	width:20px !important;
	height: 20px !important;
}


#filter_result .toggle-other {
  color: var(--main-text);
  font-weight:400;
  border: 0;
  padding: 0;
  margin-left: 8px;
  display: inline-flex;      
  align-items: center;
  justify-content: center;
  vertical-align: middle;      
  width: 20px !important;
  height: 20px;
  line-height: 0;               
  box-sizing: content-box;
  cursor: pointer;
  border-radius:100px;
}

#filter_result .toggle-other:hover {
  background:#000DFF;
}

#filter_result .toggle-other:focus {
  background:none;
}

.toggle-other svg {
  display: block;              
  width: 100%;
  height: 100%;
}


.filters-horizontal-container > .filters-horizontal-container{
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  margin: 0;
  transition:
    max-height .35s cubic-bezier(0.4,0,0.2,1),
    opacity .25s ease,
    transform .25s ease,
    margin .30s ease,                
    visibility 0s linear .35s;
}

.filters-horizontal-container > .filters-horizontal-container.is-open{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  margin: 20px 0;                
  transition:
    max-height .45s cubic-bezier(0.4,0,0.2,1),
    opacity .30s ease,
    transform .30s ease,
    margin .30s ease,
    visibility 0s;
}

#toggle_filters {
	display:flex;
	background:transparent;
	width:auto;
	color: var(--main-text);
	padding:0;
	margin-bottom:20px;
	opacity:0.8;
}

#toggle_pause {
	display:flex;
	background:transparent;
	width:auto;
	color: var(--main-text);
	padding:0;
	margin-bottom:20px;
	opacity:0.8;
}

#toggle_pause.is-paused {
	color: var(--neg);
}

.pause-toggle-button {
	align-items:center;
	justify-content:center;
	border:0;
	cursor:pointer;
	font:inherit;
}

.pause-toggle-button .pause-icon {
	font-size: 18px;
	line-height: 1;
}

#toggle_filters:hover {
	opacity:1;
}

#toggle_filters:focus {
	opacity:1;
}

#toggle_pause:hover {
	opacity:1;
}

#toggle_pause:focus {
	opacity:1;
}

.filter-toggle-button{
	align-items:center; 
	gap:8px;  	 
	border:0; 
	color:#fff; 
	cursor:pointer;
  	font:inherit;
}

.filter-toggle-header {
	display:flex;
	align-items:center;
	justify-content:flex-start;
	gap:16px;
}

.filter-toggle-controls {
	display:flex;
	align-items:center;
	gap:16px;
}

#cex-spreads-v2 .filter-toggle-header .cex-add-alert-btn {
	margin-left: auto;
	background: var(--tg-alert-tab-active-bg, #7f95ea);
	border: 1px solid transparent;
	color: var(--tg-alert-tab-active-text, #ffffff);
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	line-height: 1;
	white-space: nowrap;
	width: auto;
	height: auto;
}

#cex-spreads-v2 .filter-toggle-header .cex-add-alert-btn:hover {
	background: var(--tg-alert-checkbox-accent, #6e86df);
	color: var(--tg-alert-tab-active-text, #ffffff);
}

#cex-spreads-v2 .filter-toggle-header .cex-add-alert-btn:focus {
	background: var(--tg-alert-checkbox-accent, #6e86df);
	color: var(--tg-alert-tab-active-text, #ffffff);
	outline: none;
}

.cex-link-inline-grid {
	display: grid;
	grid-template-columns: 1.25fr 1.25fr 1.25fr 1.25fr;
	gap: 14px;
	align-items: start;
}

.cex-link-inline-field {
	min-width: 0;
}

.cex-link-inline-field label {
	display: block;
	margin-bottom: 6px;
}

/* Base modal shell reused from the dashboard's own modal component. */
.dashboard-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.45);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 20px;
}

.dashboard-modal-card {
	position: relative;
	width: min(680px, 100%);
	background: var(--block-background);
	border: 1px solid var(--block-border);
	border-radius: 14px;
	padding: 16px;
	box-shadow: var(--token-component-shadow);
	display: grid;
	gap: 12px;
}

body:not(.light-mode) .dashboard-modal-card {
	background: #111322;
}

.dashboard-modal-card h3 {
	margin: 0;
	color: var(--card-header-color);
}

.dashboard-modal-close {
	position: absolute;
	right: 10px;
	top: 8px;
	background: transparent;
	border: none;
	color: var(--value-text-color);
	font-size: 24px;
	line-height: 1;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	cursor: pointer;
}

.dashboard-modal-close:hover,
.dashboard-modal-close:focus,
.dashboard-modal-close:active,
.dashboard-modal-close:focus-visible {
	background: transparent !important;
	color: var(--value-text-color) !important;
	box-shadow: none !important;
	outline: none;
	transform: none !important;
}

.dashboard-add-form {
	display: grid;
	gap: 10px;
}

.dashboard-add-submit-btn {
	background: var(--tg-alert-tab-active-bg);
	border: 1px solid transparent;
	color: var(--tg-alert-tab-active-text);
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.dashboard-add-submit-btn:hover {
	background: var(--tg-alert-checkbox-accent);
}

.dashboard-autocomplete-wrap {
	position: relative;
}

.dashboard-autocomplete-list {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	z-index: 10;
	background: var(--block-background);
	border: 1px solid var(--block-border);
	border-radius: 8px;
	max-height: 220px;
	overflow-y: auto;
}

.dashboard-autocomplete-item {
	width: 100%;
	text-align: left;
	background: transparent;
	border: none;
	color: var(--value-text-color);
	padding: 8px 10px;
	cursor: pointer;
}

.dashboard-autocomplete-item:hover {
	background: var(--button-hover-background);
}

.cex-link-modal-card {
	width: min(1160px, 96vw);
	max-width: 1160px;
	padding: 28px;
	max-height: none;
	overflow: visible !important;
}

.cex-link-modal-card h3 {
	font-size: 34px;
	line-height: 1.15;
	font-weight: 700;
	margin-bottom: 14px;
}

#cex-link-modal .dashboard-add-form {
	gap: 14px;
}

#cex-link-modal {
	position: fixed !important;
	inset: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}

body.cex-link-modal-open {
	overflow: hidden;
}

#cex-link-autocomplete-portal {
	position: relative;
	z-index: 10080;
}

/* Селекты в модалке должны выглядеть как filter csel */
#cex-link-modal select.is-hidden {
	position: absolute !important;
	left: -99999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

#cex-link-modal .csel {
	position: relative;
	display: block;
	width: 100%;
	font: inherit;
}

#cex-link-modal .csel__toggle {
	all: unset;
	display: flex;
	box-sizing: border-box;
	width: 100%;
	height: 46px;
	line-height: 46px;
	padding: 0 50px 0 14px;
	border-radius: 8px;
	border: 1px solid var(--border2);
	background: var(--input-background2);
	color: var(--placeholder);
	cursor: pointer;
	position: relative;
	align-items: center;
	transition: all 0.2s;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#cex-link-modal .csel__toggle:hover {
	background: var(--input-hover-background2);
}

#cex-link-modal .csel__toggle:focus {
	background: var(--input-active-background2);
	color: var(--main-text);
}

#cex-link-modal .csel__toggle::after {
	content: '';
	position: absolute;
	right: 10px;
	top: 50%;
	width: 20px;
	height: 20px;
	transform: translateY(-50%);
	pointer-events: none;
	background: var(--arrow-icon) no-repeat center/contain;
}

#cex-link-modal .csel__menu {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 8px);
	display: block;
	z-index: 9999;
	padding: 10px;
	border-radius: 10px;
	border: none;
	background: var(--menu-background);
	backdrop-filter: blur(20px);
	box-shadow: var(--menu-shadow);
	opacity: 0;
	transform: translateY(-10px) scale(0.98);
	pointer-events: none;
	transition: opacity .25s ease, transform .25s ease;
}

#cex-link-modal .csel__menu.is-open {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

#cex-link-modal .csel__option {
	padding: 10px 12px;
	color: var(--main-text);
	border-radius: 6px;
	cursor: pointer;
	user-select: none;
}

#cex-link-modal .csel__option + .csel__option {
	margin-top: 4px;
}

#cex-link-modal .csel__option:hover {
	background: var(--menu-hover-option);
}

#cex-link-modal .dashboard-autocomplete-wrap input {
	width: 100%;
	height: 46px;
	padding: .5rem 1rem;
	border: 1px solid rgb(102, 102, 102);
	border-radius: 8px;
	background: #fff;
	color: #111;
	transition: .3s;
	box-sizing: border-box;
}

.filter-toggle-button svg{
  	display:block; 
	width:20px; 
	height:20px;
}

#cex-spreads-v2 .filter-row,
#cex-spreads-v2 .filters-horizontal-container, #dex-spreads-v2 .filter-row,
#dex-spreads-v2 .filters-horizontal-container {
  position: relative;
  z-index: 2; 
}

#cex-spreads-v2 .csel__menu {
  position: absolute;
  z-index: 1001; 
}

/* контейнер карточек */
.mobile-card-view,
.mobile-card-container,
.arb-card {
  z-index: 0;         
}


.mobile-card-view {
  transform: none;   
}

.filters-horizontal-container .collapsible {
  display: block;
  box-sizing: border-box;
  overflow: hidden;

  height: 0;
  opacity: 0;
  transform: translateY(8px) scale(.98);
  pointer-events: none;

  padding-block: 0;
  margin-block: 0 !important;
  border-top-width: 0 !important;
  border-bottom-width: 0 !important;

  transition: height 260ms ease, opacity 260ms ease, transform 260ms ease !important;
  max-height: none !important;
}

.filters-horizontal-container .collapsible.is-open {
  height: auto;              
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  margin-block: 0 !important;
}

.filters-horizontal-container .is-open.collapsible {
  transition: height 260ms ease, opacity 260ms ease, transform 260ms ease !important;
}


/* Адаптация */
@media (max-width: 900px) {
	.cf-scaner { margin-top: 0; margin-bottom: 20px; }

	#toggle_exchanges {
    	margin: 0 0px;
	}
	
	#toggle_filters {
		margin-bottom:10px;
	}
	
	#toggle_pause {
		margin-bottom:10px;
	}

	.filter-toggle-header {
		flex-wrap: wrap;
	}

	.cex-add-alert-btn {
		width: 100%;
	}

	.cex-link-inline-grid {
		grid-template-columns: 1fr;
	}

	.cex-link-modal-card {
		width: min(96vw, 760px);
		padding: 18px;
	}

	.cex-link-modal-card h3 {
		font-size: 28px;
	}
	
	#cex-spreads-v2 input {
		 font-size: 14px !important;
	}
	
	.filters-horizontal-container {
         font-size: 14px !important;
    }	

	#cex-spreads-v2 .acceptor-group .csel__menu {
		grid-template-columns: 1fr;
	}
	
	.filter-row.top-row {
		flex-wrap:wrap;
	}
	
	.filter-row.bottom-row {
		flex-wrap:wrap;
		flex-direction: column;
	}

	.filter-row.bottom-row > * {
		width: 100%;
	}

	.filter-row.bottom-row .volume-group,
	.filter-row.bottom-row .spread-group,
	.filter-row.bottom-row .sort-group,
	.filter-row.bottom-row .acceptor-group,
	.filter-row.bottom-row .amount-group,
	.filter-row.bottom-row .limits-group,
	.filter-row.bottom-row .exchanges-button-group,
	.filter-row.bottom-row .networks-button-group,
	.filter-row.bottom-row .additional-button-group,
	.filter-row.bottom-row .button-group {
		flex: 1 1 auto;
		width: 100%;
	}

	.filter-row.bottom-row .button-group {
		margin-left: 0;
	}

	
	
	.filter-group.search-group {
		width:100%;
	}
	
	.filter-group.blacklist-group {
		width:100%;
	}
	
	.exchanges-row {
    	flex-direction: column;
	}
	
	.exchanges-grid {
    	gap:2px;
	}
	
	.filters-horizontal-container #apply_filter {
		width:100%;
	}
	
	.mobile-card-view {
		display:flex;
		flex-direction:column;
		gap:10px;
	}
	
	.arb-card:not(:where(.arb-card .arb-card)) {
		background: var(--card-bg);
    	padding: 20px;
    	border-radius: 20px;
		font-size: 12px;
		border: 1px solid var(--border2);
		box-shadow: var(--table-shadow);
	}
	
	.arb-card-label, .summary-label {
		color: var(--main-text);
		opacity:0.8;
	}
	
	.arb-card a {
    	background-color: transparent;
    	text-decoration: none;
    	color: var(--main-text);
    	font-size: 16px;
    	font-weight: 500;
	}
	
	.arb-card-header a {
    	font-weight: 700;
	}
	
	.arb-card-header {
        display: flex;
        align-items: center;
        flex-direction: row;
        line-height: 1.3;
		margin-bottom:6px;
    }
	
	.arb-card-symbol {
		margin-right:5px;
	}
	
	.other-card {
		padding:0px;
		background:transparent;
		margin-top:20px;
	}
	
	.mobile-card-view button {
		margin-left:auto;
		font-weight: 300;
		color: var(--main-text);
		background:none;
		width:auto;
		border:none;
		padding:0;
		font-size:20px;
	}

	/* The generic ".mobile-card-view button" rule above targets the expand
	   toggle but also matches the favorite star (also a <button>), pushing
	   the header off-center; keep the star flush left. */
	.mobile-card-view .arb-card-header .favorite-ticker-btn {
		margin-left: 0;
	}
	
	.arb-card-split {
		margin-top:15px;
		display:flex;
		flex-direction:row:
	}
	
	.arb-card-column {
		width:50%;
	}
	
	.arb-card-split > :nth-child(3) {
  		padding-left:20px;
	}
	
	.arb-card-divider {
		width:1px;
		background:#4f5073ab;
		border-radius:10px;
		margin-top:0px;
	}
	
	.arb-card a {
		position: relative;
		color: var(--main-text);
		text-decoration: none;
	}

	.arb-card a::after {
		content: '';
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0px; /* расстояние 2px от текста */
		height: 1px;
		border-bottom: 1px dashed var(--main-text);
	}
	
	.exchange-pair a {
        font-size: 12px;
        line-height: 1.7;
		color: var(--main-text)!important;
    }
	
	.exchange-pair {
		margin-top:2px;
    	display: flex;
    	align-items: center;
    	margin-bottom: 16px;
	}
	
	.arb-card-column > .arb-card-label {
		color: var(--main-text);
		font-weight:600;
	}
	
	.arb-card-value {
		color: var(--main-text);
		font-weight:600;
		display:flex;
		gap:5px;
	}
	
	.arb-card-column > .arb-card-row {
		display:flex;
		flex-direction:column;
	}
	
	.positive-value {
		color: rgba(73, 194, 144, 1);
		font-weight: 600;
	}
	
	.negative-value {
		color: rgba(255, 97, 86, 1);
		font-weight: 600;
	}
	
	.status-open {
		color: rgba(73, 194, 144, 1);
	}
	
	.status-closed {
		color: rgba(255, 97, 86, 1);
	}
	
	.site-logo {
    	width: 75px;
    	height: 42px;
	}
}

/* Стили для пагинации */
.pagination-container {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-top: 30px;
	padding: 20px 0;
	border-top: 1px solid var(--border2);
}

.pagination-info {
	color: var(--main-text);
	font-size: 14px;
	opacity: 0.8;
	text-align: center;
}

.pagination-controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.pagination-btn {
	background: var(--input-background2);
	border: 1px solid var(--border2);
	color: var(--main-text);
	border-radius: 8px;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	min-width: 40px;
	text-align: center;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
}

.pagination-btn:hover {
	background: var(--input-hover-background2);
	border-color: var(--button-hover-background2);
}

.pagination-btn:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(0, 13, 255, 0.2);
}

.pagination-btn:active {
	transform: translateY(1px);
}

.pagination-btn.active {
	background: var(--button-background2);
	color: var(--button-text2);
	border-color: var(--button-background2);
}

.pagination-btn.active:hover {
	background: var(--button-hover-background2);
	border-color: var(--button-hover-background2);
	color: var(--button-text3);
}

.pagination-btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.pagination-dots {
	color: var(--main-text);
	opacity: 0.5;
	padding: 0 8px;
	font-size: 14px;
}

body.light-mode .pagination-btn {
	background: var(--input-background2);
	color: var(--main-text);
}

body.light-mode .pagination-btn:hover {
	background: var(--input-hover-background2);
}

body.light-mode .pagination-btn.active {
	background: var(--button-background2);
	color: var(--button-text2);
}

body.light-mode .pagination-btn.active:hover {
	background: var(--button-hover-background2);
	color: var(--button-text3);
}

.mobile-card-view .pagination-container {
	margin-top: 20px;
	padding: 20px 0;
	border-top: 1px solid var(--border2);
}

@media (max-width: 768px) {
	.pagination-container {
		padding: 15px 0;
		gap: 12px;
	}

	.pagination-controls {
		gap: 6px;
	}

	.pagination-btn {
		padding: 6px 12px;
		font-size: 13px;
		min-width: 36px;
	}

	.pagination-info {
		font-size: 13px;
	}
}

/* Заголовки символов - более контрастные */
#filter_result tr.symbol-header td {
	background: var(--header-bg) !important;
	color: var(--main-text) !important;
	font-weight: 600 !important;
	font-size: 16px !important;
	text-align: center !important;
	padding: 18px !important;
	border-top: 2px solid var(--border2) !important;
	border-bottom: 2px solid var(--border2) !important;
	position: relative;
}

#filter_result tr.symbol-header:first-child td {
	border-top: 2px solid var(--border2) !important;
	margin-top: 4px;
}

body.light-mode #filter_result tr.symbol-header td {
	background: color-mix(in srgb, var(--header-bg) 95%, white) !important;
}

body:not(.light-mode) #filter_result tr.symbol-header td {
	background: color-mix(in srgb, var(--header-bg) 95%, black) !important;
}

#filter_result tr.symbol-header:hover td {
	background: color-mix(in srgb, var(--header-bg), var(--main-text) 5%) !important;
}

/* Мобильные карточки фандинга */
.mobile-card-view .funding-variants-mobile {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid var(--border2);
}

.mobile-card-view .funding-variants-mobile .other-card {
	background: var(--row-bg);
	border-radius: 12px;
	padding: 15px;
	margin-bottom: 10px;
	border: 1px solid var(--border2);
}

.mobile-card-view .funding-variants-mobile .other-card:last-child {
	margin-bottom: 0;
}

.mobile-card-view .funding-variants-mobile .exchange-pair {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 15px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line-color);
}

.mobile-card-view .funding-variants-mobile .exchange-pair a {
	font-weight: 600;
	font-size: 14px;
	color: var(--main-text);
	text-decoration: none;
}

.mobile-card-view .funding-variants-mobile .arb-card-split {
	display: flex;
	gap: 15px;
	margin-top: 0;
}

.mobile-card-view .funding-variants-mobile .arb-card-column {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mobile-card-view .funding-variants-mobile .arb-card-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 4px 0;
}

.mobile-card-view .funding-variants-mobile .arb-card-label {
	font-size: 12px;
	color: var(--main-text);
	opacity: 0.7;
	flex-shrink: 0;
}

.mobile-card-view .funding-variants-mobile .arb-card-value {
	font-size: 13px;
	font-weight: 600;
	text-align: right;
	flex-shrink: 0;
	margin-left: 10px;
	color: var(--main-text);
}

.mobile-card-view .arb-card-header .toggle-other-mobile:hover {
	background: rgba(0, 13, 255, 0.1);
}

.mobile-card-view .arb-card-header .toggle-other-mobile svg {
	width: 24px;
	height: 24px;
	transition: transform 0.3s ease;
}

.mobile-card-view .arb-card-header .toggle-other-mobile.expanded svg {
	transform: rotate(180deg);
}

.mobile-card-view .arb-card-header .toggle-other-mobile svg circle {
	fill: var(--button-background2);
}

.mobile-card-view .arb-card-header .toggle-other-mobile svg path {
	fill: var(--main-text);
}

.mobile-card-view .arb-card-header .toggle-other-mobile:hover svg circle {
	fill: var(--button-hover-background2);
}

body.light-mode .mobile-card-view .funding-variants-mobile .other-card {
	background: var(--input-background2);
}

body.light-mode .mobile-card-view .arb-card-header .toggle-other-mobile:hover {
	background: rgba(15, 21, 66, 0.1);
}

@media (max-width: 400px) {
	.mobile-card-view .funding-variants-mobile .arb-card-split {
		flex-direction: column;
		gap: 10px;
	}

	.mobile-card-view .funding-variants-mobile .arb-card-column {
		width: 100%;
	}

	.mobile-card-view .funding-variants-mobile .arb-card-label {
		font-size: 11px;
	}

	.mobile-card-view .funding-variants-mobile .arb-card-value {
		font-size: 12px;
	}

	.mobile-card-view .arb-card-header .arb-card-symbol {
		font-size: 18px;
	}

	.mobile-card-view .arb-card-header .toggle-other-mobile {
		width: 36px;
		height: 36px;
	}

	.mobile-card-view .arb-card-header .toggle-other-mobile svg {
		width: 20px;
		height: 20px;
	}
}
