/* Селекторы и действия модерации, финальные правки страницы канала, обложка и статистика. */
/* Порядок подключения важен: каскад зависит от последовательности файлов. */
/* Final hot offer disabled state: single opacity layer only */
.hot-condition-row .price-field.disabled,
.hot-condition-row.locked .price-field.disabled,
.hot-condition-row.status-disabled .price-field.disabled {
  opacity: 1 !important;
}
.hot-condition-row.locked,
.hot-condition-row.status-disabled {
  opacity: .45 !important;
}
.hot-condition-row.locked .hot-picker.disabled .hot-picker-toggle,
.hot-condition-row.status-disabled .hot-picker.disabled .hot-picker-toggle {
  color: #fff !important;
  opacity: 1 !important;
}
.hot-condition-row:not(.locked):not(.status-disabled) .price-field.disabled {
  opacity: .45 !important;
}

/* Moderation selectors and action controls */
.moderation-actions {
  grid-template-rows: 20px 42px;
}
.moderation-actions .moderation-reason-selector {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  width: 357px;
}
.moderation-actions .moderation-reason-selector,
.moderation-actions .moderation-reject,
.moderation-actions .moderation-approve,
.moderation-side-card .moderation-status-selector {
  box-sizing: border-box;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
}
.moderation-actions .moderation-reason-selector .chips {
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  padding: 6px;
  align-items: center;
  overflow: hidden;
}
.moderation-actions .moderation-reason-selector .selected-categories {
  position: relative;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  width: auto;
  max-width: calc(100% - 26px);
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  overflow: hidden;
}
.moderation-actions .moderation-reason-selector .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%);
}
.moderation-actions .moderation-reason-selector .selected-categories:has(.empty-selection)::after {
  display: none;
}
.moderation-actions .moderation-reason-selector .empty-selection {
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}
.moderation-actions .moderation-reason-selector .chip.selected {
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  width: auto;
  max-width: 267px;
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10px;
  line-height: 30px;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}
.moderation-actions .moderation-reject,
.moderation-actions .moderation-approve {
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 20px;
}
.moderation-plain-selector .dropdown-panel {
  top: 42px;
  bottom: auto;
}
.moderation-plain-selector .category-options {
  position: relative;
  height: auto;
  max-height: 232px;
  padding: 58px 12px 12px;
}
.moderation-plain-selector .dropdown-search {
  display: flex;
  width: calc(100% - 24px);
}
.moderation-plain-selector .option-list {
  width: 100%;
  max-height: 156px;
}
.moderation-side-card .moderation-status-selector,
.moderation-side-card .moderation-status-selector .chips,
.moderation-side-card .moderation-status-selector .dropdown-panel {
  width: 237px;
}
.moderation-side-card .moderation-status-selector {
  margin: 0;
}
.moderation-side-card .moderation-status-selector .chips {
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  padding: 6px;
  align-items: center;
  overflow: hidden;
}
.moderation-side-card .moderation-status-selector .dropdown-panel {
  top: 42px;
}
.moderation-side-card .moderation-status-selector .selected-categories,
.moderation-side-card .moderation-status-selector .chip {
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  width: auto;
  max-width: 171px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  line-height: 30px;
  overflow: hidden;
}
.moderation-side-card .moderation-status-selector .selected-categories::after {
  display: none;
}
.moderation-side-card .moderation-status-selector .chip {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.my-channel-card.settings-locked .settings-disabled,
.my-channel-card.settings-locked .chips:has(.settings-disabled),
.my-channel-card.settings-locked .price-field:has(.settings-disabled),
.my-channel-card.settings-locked .condition-type-wrap:has(.settings-disabled) {
  opacity: .45;
}
.my-channel-card.settings-locked .my-condition .price-field:has(.settings-disabled) input,
.my-channel-card.settings-locked .my-condition .price-field:has(.settings-disabled) img {
  color: #fff;
  opacity: 1;
}
.my-channel-card.settings-locked .settings-disabled {
  cursor: not-allowed;
}
.condition-type-wrap.open .condition-type-toggle,
.hot-picker.open .hot-picker-toggle {
  border-radius: 10px 10px 0 0;
}
.my-channel-card.settings-locked .settings-hot,
.my-channel-card.settings-locked .settings-hot * {
  opacity: 1;
  cursor: inherit;
}

/* Final channel detail page corrections */
.channel-link-row {
  grid-template-columns: 190px 314px !important;
  gap: 40px !important;
  margin-bottom: 0 !important;
}
.channel-link-row > span {
  color: var(--text-75);
  font: 400 14px/18px var(--font);
  text-align: right;
  white-space: nowrap;
}
.channel-link-row > span b {
  color: #2EB822;
  font-weight: 400;
}
.channel-public-link {
  width: 314px;
  height: 52px;
  display: grid;
  grid-template-columns: 254px 52px;
  gap: 8px;
}
.channel-copy {
  width: 254px !important;
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30,85,249,.12);
  border-radius: 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.channel-copy .copy-default,
.channel-copy .copy-success {
  width: 100%;
  align-items: center;
  justify-content: space-between;
}
.channel-copy .copy-default {
  display: flex;
}
.channel-copy .copy-success {
  display: none !important;
}
.channel-copy .copy-default b {
  color: #1E55F9;
  font: 600 16px/20px var(--font);
}
.channel-copy.copied {
  background: #1E55F9;
}
.channel-copy.copied .copy-default {
  display: none !important;
}
.channel-copy.copied .copy-success {
  display: flex !important;
}
.channel-copy.copied .copy-success b {
  color: #fff;
  font: 600 16px/20px var(--font);
}
.channel-copy img {
  width: 18px;
  height: 18px;
}
.channel-telegram-link {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: #1E55F9;
  border-radius: 10px;
}
.channel-telegram-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.channel-price-card {
  box-shadow: inset 0 0 0 1px #2F2F37;
}
.channel-tgstat-card a {
  width: 290px;
}
.detail-tgstat-link {
  margin-top: 28px !important;
}
.detail-cover {
  background-position: center top !important;
  background-size: 100% auto !important;
  background-repeat: no-repeat !important;
}
.channel-buy-column {
  gap: 0 !important;
}
.channel-buy-column .channel-link-row {
  margin-bottom: 36px !important;
}
.channel-buy-column .channel-price-card {
  margin-bottom: 20px !important;
}
.channel-detail-currency {
  width: 314px;
  height: 52px;
  margin-bottom: 20px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,.75);
  background: #1B1B23;
  border-radius: 12px;
  font: 400 14px/18px var(--font);
}
.channel-detail-currency.is-hidden,
.channel-detail-currency[hidden] {
  display: none;
}
.channel-detail-currency b {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.channel-detail-currency b img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}
.channel-buy-column .channel-tgstat-card {
  margin-top: 20px !important;
  margin-bottom: 20px !important;
}
.channel-sidebar .channel-tgstat-card {
  margin-top: 20px;
  margin-bottom: 0;
}
.channel-calendar-card {
  width: 314px;
  height: auto;
  padding: 16px 0;
  background: #1B1B23;
  border-radius: 12px;
  color: #fff;
}
.channel-calendar-head {
  height: 22px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 100px minmax(0,1fr);
  align-items: center;
  text-align: center;
}
.channel-calendar-head b {
  color: #fff;
  text-transform: capitalize;
  font: 500 18px/22px var(--font);
}
.channel-calendar-head button {
  color: rgba(255,255,255,.12);
  text-transform: capitalize;
  font: 400 12px/15px var(--font);
  transition: color .18s ease;
}
.channel-calendar-head button:hover { color: rgba(255,255,255,.28); }
.channel-calendar-head button:first-child { text-align: center; }
.channel-calendar-head button:last-child { text-align: center; }
.channel-calendar-line {
  width: 100%;
  height: 1px;
  margin-top: 16px;
  background: #2F2F37;
}
.channel-calendar-week {
  margin: 23px 14px 0;
  display: grid;
  grid-template-columns: repeat(7, 36px);
  gap: 6px;
}
.channel-calendar-week span {
  width: 36px;
  height: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  font: 400 12px/15px var(--font);
}
.channel-calendar-grid {
  margin: 14px 14px 0;
  display: grid;
  grid-template-columns: repeat(7, 36px);
  gap: 6px;
}
.channel-calendar-day {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.2);
  border-radius: 50%;
  font: 400 12px/15px var(--font);
}
.channel-calendar-day.active { color: #fff; cursor: pointer; }
.channel-calendar-day.inactive { color: rgba(255,255,255,.2); cursor: default; }
.channel-calendar-day.muted { color: rgba(255,255,255,.2); cursor: default; }
.channel-calendar-day.today::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(30,85,249,.8);
  transform: translate(-50%, -50%);
}
.channel-calendar-day.selected::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  border: 2px solid #1E55F9;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform .22s cubic-bezier(.22,1,.36,1);
}
.channel-calendar-day span { position: relative; z-index: 1; }
.channel-calendar-line.bottom { margin-top: 24px; }
.channel-calendar-slots-title {
  margin-top: 16px;
  min-height: 15px;
  text-align: center;
  color: rgba(255,255,255,.5);
  font: 500 12px/15px var(--font);
}
.channel-calendar-slots-title.inactive {
  min-height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.channel-calendar-slots-title b {
  color: #1D49CE;
  font-weight: 500;
}
.channel-calendar-slots {
  margin: 16px 16px 0;
  display: grid;
  gap: 8px;
}
.channel-calendar-slots.is-hidden {
  display: none;
}
.channel-calendar-slot-row {
  display: grid;
  grid-template-columns: 128px 128px;
  justify-content: center;
  gap: 10px;
}
.channel-calendar-slot-row span {
  width: 128px;
  height: 31px;
  display: grid;
  place-items: center;
  color: #1E55F9;
  background: rgba(30,85,249,.12);
  border-radius: 8px;
  font: 400 14px/18px var(--font);
}
.channel-calendar-slot-row button {
  width: 128px;
  height: 31px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1E55F9;
  border-radius: 8px;
  font: 400 12px/15px var(--font);
}
.channel-calendar-slot-row button.is-selected { color: #fff; }
.channel-calendar-slot-row button .channel-calendar-slot-check { display: inline-flex; width: 15px; height: 15px; align-items: center; justify-content: center; color: #fff; font: 400 15px/15px var(--font); }
.channel-calendar-slot-row.disabled span {
  color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
}
.channel-calendar-slot-row.disabled button {
  color: rgba(255,255,255,.35);
  background: #27272F;
  cursor: default;
}

/* Channel detail avatar final override */
.channel-view .detail-avatar {
  width: 120px;
  height: 120px;
  min-width: 120px;
  min-height: 120px;
  max-width: 120px;
  max-height: 120px;
}
.channel-view .detail-avatar > img,
.channel-view .detail-avatar > span {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}
.card-avatar:has(img),
.my-channel-avatar:has(img),
.detail-avatar:has(img) {
  background: transparent;
}
.channel-card .card-avatar:has(> img) { background: var(--surface); }

/* Channel detail cover and statistics */
.channel-view .detail-cover {
  height: 160px;
}
.channel-view .detail-favorite {
  top: 24px;
  right: 24px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}
.channel-view .detail-favorite img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.channel-view .detail-avatar {
  left: 32px;
  bottom: -60px;
  overflow: visible;
  border: 3px solid #1B1B23;
}
.channel-view .detail-avatar > img,
.channel-view .detail-avatar > span:not(.detail-pro) {
  overflow: hidden;
}
.channel-view .detail-avatar .detail-pro {
  position: absolute;
  left: 50%;
  bottom: -3px;
  z-index: 2;
  box-sizing: border-box;
  width: 49px !important;
  min-width: 49px;
  max-width: 49px;
  height: 22px !important;
  min-height: 22px;
  max-height: 22px;
  flex: 0 0 49px;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle at 30% 20%, #FF7C02 0, #FFC700 100%);
  border: 0;
  box-shadow: 0 0 0 3px #1B1B23;
  border-radius: 11px;
  font: 500 14px/16px var(--font);
  text-transform: uppercase;
  transform: translateX(-50%);
}
.channel-view .detail-avatar > img,
.channel-view .detail-avatar > span:not(.detail-pro) {
  overflow: hidden;
  border-radius: 50%;
  isolation: isolate;
  contain: paint;
  clip-path: circle(50% at 50% 50%);
}
.channel-view .detail-avatar { overflow: visible; }
.channel-view .detail-cover-tags {
  position: absolute;
  left: 170px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.channel-view .detail-cover-tags .card-tag {
  position: static;
}
.channel-view .detail-body {
  padding: 16px 32px 32px;
}
.channel-view .detail-body h1 {
  margin: 0 0 38px 138px;
}
.channel-view .detail-stats {
  width: 628px;
  scroll-margin-top: 92px;
  height: 102px;
  grid-template-columns: repeat(3, 204px);
  grid-template-rows: repeat(2, 45px);
  gap: 4px;
  padding: 4px;
  background: #27272F;
}
.channel-view #channel-about,
.channel-view #channel-statistics,
.channel-view #channel-reviews-anchor { scroll-margin-top: 92px; }
.channel-view .detail-stats > div {
  height: 45px;
  min-height: 45px;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
}
.channel-view .detail-stats > div:nth-child(3),
.channel-view .detail-stats > div:nth-child(6) {
  background: #1B1B23;
  border-color: transparent;
}
.channel-view .detail-stats small {
  font: 400 10px/12px var(--font);
}
.channel-view .detail-stats strong {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
  font: 600 16px/18px var(--font);
}
.channel-view .detail-stats > div:nth-child(3) strong { color: var(--blue); }
.channel-view .detail-stats > div:nth-child(6) strong { color: var(--orange); }
.channel-view .detail-stat-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}
.my-channel-avatar > span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: inherit;
}

