body[data-theme="dark"] {
  color-scheme: dark;
  --dt-page-bg: #20252a;
  --dt-panel-bg: #14181d;
  --dt-surface-2: #1a2026;
  --dt-row-bg: #171c21;
  --dt-row-alt-bg: #1e252b;
  --dt-border: #323c46;
  --dt-text: #d7dee6;
  --dt-text-muted: #9da8b3;
  --dt-link: #73b7e6;
  --dt-link-hover: #d8a15d;
  --dt-accent-amber: #caa15c;
  --dt-accent-amber-hover: #e0c17d;
  --dt-input-bg: #101419;
  --dt-input-border: #3b4651;
  --dt-button-bg: #252e37;
  --dt-success: #72b56d;
  --dt-warning: #d8b15f;
  --dt-danger: #d47770;
  --dt-status: #7fabdf;
  --tp-reply-icon-latest-color: #98A9B7;
  --tp-reply-icon-newest-color: #D8B15F;
  --tp-reply-icon-nav-color: #C99152;
  --tp-lock-body-color: #B8C5CF;
  --tp-lock-body-outline: #D2DCE5;
  --tp-lock-body-highlight: rgba(230, 236, 242, 0.34);
  --tp-lock-shackle-color: #C4D0DA;
  --tp-lock-keyhole-color: #202A33;
  --tp-topic-title-link-color: #76BFE9;
  --tp-topic-title-link-visited-color: #829BAD;
  --tp-forum-title-link-color: var(--dt-link);
  --tp-search-topic-title-link-color: #72B8E2;
  --tp-search-topic-title-link-visited-color: #829BAD;
  --tp-search-topic-cell-bg: #1c2228;
  background: var(--dt-page-bg);
  color: var(--dt-text);
}

body[data-theme="dark"],
body[data-theme="dark"] th,
body[data-theme="dark"] td,
body[data-theme="dark"] font {
  color: var(--dt-text);
}

body[data-theme="dark"] #body_container,
body[data-theme="dark"] #page_container,
body[data-theme="dark"] #page_content,
body[data-theme="dark"] .bodyline,
body[data-theme="dark"] .tablefill,
body[data-theme="dark"] .table-wrap,
body[data-theme="dark"] table.message td,
body[data-theme="dark"] table.info_msg,
body[data-theme="dark"] table.info_msg .msg {
  background: var(--dt-panel-bg);
  color: var(--dt-text);
  border-color: var(--dt-border);
}

body[data-theme="dark"] hr,
body[data-theme="dark"] .hr1,
body[data-theme="dark"] .border,
body[data-theme="dark"] table.forumline,
body[data-theme="dark"] .forumline td,
body[data-theme="dark"] .forumline th,
body[data-theme="dark"] .bordered,
body[data-theme="dark"] .bordered td,
body[data-theme="dark"] .bordered th {
  border-color: var(--dt-border);
}
body[data-theme="dark"] table.forumline {
  background: var(--dt-surface-2);
}


body[data-theme="dark"] .row1,
body[data-theme="dark"] .row1 td,
body[data-theme="dark"] .prow1,
body[data-theme="dark"] .p-body tr {
  background: var(--dt-row-bg);
}

body[data-theme="dark"] .row2,
body[data-theme="dark"] .row2 td,
body[data-theme="dark"] .row4,
body[data-theme="dark"] .row4 td,
body[data-theme="dark"] .row6,
body[data-theme="dark"] .row6 td,
body[data-theme="dark"] .prow2 {
  background: var(--dt-row-alt-bg);
}

body[data-theme="dark"] .row3,
body[data-theme="dark"] .row3 td,
body[data-theme="dark"] .row5,
body[data-theme="dark"] .row5 td,
body[data-theme="dark"] .prow3 {
  background: var(--dt-surface-2);
}

body[data-theme="dark"] .row7,
body[data-theme="dark"] .row7 td,
body[data-theme="dark"] .new-pm {
  background: rgba(216, 177, 95, 0.14);
}

body[data-theme="dark"] .p-body tr:hover,
body[data-theme="dark"] .spaceRow {
  background: #232a31;
}

body[data-theme="dark"] .forumline th,
body[data-theme="dark"] .thHead,
body[data-theme="dark"] .cat,
body[data-theme="dark"] td.cat,
body[data-theme="dark"] td.catTitle,
body[data-theme="dark"] td.catHead,
body[data-theme="dark"] td.catBottom,
body[data-theme="dark"] .topmenu {
  background: #1d242a;
  color: var(--dt-text);
}

body[data-theme="dark"] .forumline th,
body[data-theme="dark"] .thHead {
  background: #202832;
  color: var(--dt-text);
}

body[data-theme="dark"] .catTitle,
body[data-theme="dark"] .topicSep,
body[data-theme="dark"] .topicAuthor,
body[data-theme="dark"] a.topicAuthor,
body[data-theme="dark"] a.topicAuthor:visited {
  color: var(--dt-text);
}

body[data-theme="dark"] .maintitle,
body[data-theme="dark"] .pagetitle,
body[data-theme="dark"] .pagetitle1,
body[data-theme="dark"] .nav,
body[data-theme="dark"] .gen,
body[data-theme="dark"] .gen td,
body[data-theme="dark"] .med,
body[data-theme="dark"] .med td,
body[data-theme="dark"] .genmed,
body[data-theme="dark"] .small,
body[data-theme="dark"] .small td,
body[data-theme="dark"] .gensmall,
body[data-theme="dark"] .nick,
body[data-theme="dark"] .nick a,
body[data-theme="dark"] .topictitle,
body[data-theme="dark"] a.topictitle,
body[data-theme="dark"] .torTopic,
body[data-theme="dark"] a.torTopic,
body[data-theme="dark"] .available,
body[data-theme="dark"] .down,
body[data-theme="dark"] .rate,
body[data-theme="dark"] .up,
body[data-theme="dark"] .seed2 {
  color: var(--dt-text) !important;
}

body[data-theme="dark"] .nav em,
body[data-theme="dark"] .small,
body[data-theme="dark"] .gensmall,
body[data-theme="dark"] .new-pm-link {
  color: var(--dt-text-muted) !important;
}

body[data-theme="dark"] .highlight {
  color: #ead08f;
  background: rgba(216, 161, 93, 0.15);
}

body[data-theme="dark"] .availablenum,
body[data-theme="dark"] .availablenum td,
body[data-theme="dark"] .upnum,
body[data-theme="dark"] .vipnum,
body[data-theme="dark"] .seedmed,
body[data-theme="dark"] .seedmed2,
body[data-theme="dark"] .topicSticky {
  color: var(--dt-success) !important;
}

body[data-theme="dark"] .leechmed,
body[data-theme="dark"] .leechmed td {
  color: var(--dt-danger) !important;
}

body[data-theme="dark"] .ratenum,
body[data-theme="dark"] .ratenum td,
body[data-theme="dark"] .topicPoll {
  color: var(--dt-status) !important;
}

body[data-theme="dark"] .topicAnnounce {
  color: var(--dt-accent-amber) !important;
}

body[data-theme="dark"] a:link,
body[data-theme="dark"] a:visited,
body[data-theme="dark"] a.gen,
body[data-theme="dark"] a.med,
body[data-theme="dark"] a.genmed,
body[data-theme="dark"] a.small,
body[data-theme="dark"] a.gensmall,
body[data-theme="dark"] .nav a,
body[data-theme="dark"] .maintitle a,
body[data-theme="dark"] .pagetitle a,
body[data-theme="dark"] a.topictitle:visited,
body[data-theme="dark"] a.torTopic:visited,
body[data-theme="dark"] a.tLink:visited,
body[data-theme="dark"] .topmenu a:link,
body[data-theme="dark"] .topmenu a:visited {
  color: var(--dt-link);
}

body[data-theme="dark"] a:hover,
body[data-theme="dark"] a:active,
body[data-theme="dark"] a:focus,
body[data-theme="dark"] .navmenu ul a:hover,
body[data-theme="dark"] .newsmenu a:hover,
body[data-theme="dark"] .mainmenu a:hover,
body[data-theme="dark"] .prvtemenu a:hover,
body[data-theme="dark"] [class*="btn-"]:hover,
body[data-theme="dark"] .topmenu a:hover {
  color: var(--dt-link-hover) !important;
}

body[data-theme="dark"] a.tp-topic-title-link {
  color: var(--tp-topic-title-link-color) !important;
}

body[data-theme="dark"] a.tp-forum-title-link,
body[data-theme="dark"] a.tp-forum-title-link:visited {
  color: var(--tp-forum-title-link-color) !important;
}

body[data-theme="dark"] a.tp-topic-title-link:visited {
  color: var(--tp-topic-title-link-visited-color) !important;
}

body[data-theme="dark"] a.tp-topic-title-link:hover,
body[data-theme="dark"] a.tp-topic-title-link:active,
body[data-theme="dark"] a.tp-topic-title-link:focus,
body[data-theme="dark"] a.tp-forum-title-link:hover,
body[data-theme="dark"] a.tp-forum-title-link:active,
body[data-theme="dark"] a.tp-forum-title-link:focus {
  color: var(--dt-link-hover) !important;
}

body[data-theme="dark"] td.tp-search-topic-cell {
  background: var(--tp-search-topic-cell-bg) !important;
}

body[data-theme="dark"] a.tp-topic-title-link-search {
  color: var(--tp-search-topic-title-link-color) !important;
}

body[data-theme="dark"] a.tp-topic-title-link-search:visited {
  color: var(--tp-search-topic-title-link-visited-color) !important;
}

body[data-theme="dark"] a.tp-topic-title-link-search:hover,
body[data-theme="dark"] a.tp-topic-title-link-search:active,
body[data-theme="dark"] a.tp-topic-title-link-search:focus {
  color: var(--dt-link-hover) !important;
}

body[data-theme="dark"] .tp-reply-icon-nav {
  width: 18px;
  height: 9px;
  margin: 0;
  vertical-align: middle;
  background:
    linear-gradient(currentColor, currentColor) 3px 4px / 9px 1px no-repeat;
}

body[data-theme="dark"] .tp-reply-icon-nav::before {
  right: 1px;
  top: 1px;
  width: 5px;
  height: 5px;
  border-top-width: 2px;
  border-right-width: 2px;
}

body[data-theme="dark"] .navmenu ul,
body[data-theme="dark"] .newsmenu ul,
body[data-theme="dark"] .mainmenu ul,
body[data-theme="dark"] .prvtemenu ul {
  background: var(--dt-panel-bg);
  color: var(--dt-text);
  border-color: var(--dt-border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

body[data-theme="dark"] .navmenu li ul li,
body[data-theme="dark"] .newsmenu li ul li,
body[data-theme="dark"] .mainmenu li ul li,
body[data-theme="dark"] .prvtemenu li ul li {
  border-bottom-color: var(--dt-border);
}

body[data-theme="dark"] .navmenu ul a,
body[data-theme="dark"] .newsmenu a,
body[data-theme="dark"] .mainmenu a,
body[data-theme="dark"] .prvtemenu a,
body[data-theme="dark"] .navbutton2,
body[data-theme="dark"] .navbutton3,
body[data-theme="dark"] .prvtebutton1 {
  background: var(--dt-surface-2);
  color: var(--dt-text);
  border-color: var(--dt-border);
}

body[data-theme="dark"] .navmenu ul a:hover,
body[data-theme="dark"] .newsmenu a:hover,
body[data-theme="dark"] .mainmenu a:hover,
body[data-theme="dark"] .prvtemenu a:hover,
body[data-theme="dark"] .navbutton2:hover,
body[data-theme="dark"] .navbutton3:hover,
body[data-theme="dark"] .prvtebutton1:hover {
  background: #252d35;
}

body[data-theme="dark"] .navbutton1 {
  background: linear-gradient(180deg, #783838 0%, #552323 100%);
  border-color: #874949;
}

body[data-theme="dark"] .navbutton1:hover {
  background: linear-gradient(180deg, #8c4545 0%, #642929 100%);
}

body[data-theme="dark"] .submenu-arrow,
body[data-theme="dark"] .navmenu span.new,
body[data-theme="dark"] .newsmenu span.new,
body[data-theme="dark"] .mainmenu span.new,
body[data-theme="dark"] .prvtemenu span.new {
  color: var(--dt-warning);
}

body[data-theme="dark"] .mainmenu ul a.menu-hot,
body[data-theme="dark"] .newsmenu ul a.menu-hot {
  color: var(--dt-danger);
}

body[data-theme="dark"] input,
body[data-theme="dark"] textarea,
body[data-theme="dark"] select,
body[data-theme="dark"] input.button,
body[data-theme="dark"] .buttons input,
body[data-theme="dark"] input.mainoption,
body[data-theme="dark"] input.main,
body[data-theme="dark"] input.liteoption,
body[data-theme="dark"] input.lite,
body[data-theme="dark"] .iconDL {
  background: var(--dt-input-bg);
  color: var(--dt-text);
  border-color: var(--dt-input-border);
}

body[data-theme="dark"] select option {
  background: var(--dt-input-bg) !important;
  color: var(--dt-text);
}

body[data-theme="dark"] select option:checked,
body[data-theme="dark"] select option:hover {
  background: var(--dt-surface-2) !important;
}

body[data-theme="dark"] select option:disabled,
body[data-theme="dark"] select option.em {
  background: #252d35 !important;
  color: var(--dt-text-muted) !important;
}

body[data-theme="dark"] select.text_color option {
  background: var(--dt-input-bg) !important;
}

body[data-theme="dark"] select.text_color option:first-child {
  color: var(--dt-text) !important;
}

body[data-theme="dark"] input[type="submit"],
body[data-theme="dark"] input[type="button"],
body[data-theme="dark"] input[type="reset"],
body[data-theme="dark"] #vkshare,
body[data-theme="dark"] #update-torrent,
body[data-theme="dark"] .btn-edit,
body[data-theme="dark"] .btn-quote,
body[data-theme="dark"] .btn-ip,
body[data-theme="dark"] .btn-delete,
body[data-theme="dark"] .btn-mod,
body[data-theme="dark"] .btn-warn,
body[data-theme="dark"] .btn-profile,
body[data-theme="dark"] .btn-pm {
  background: linear-gradient(to bottom, #303a44, var(--dt-button-bg));
  color: var(--dt-text) !important;
  border-color: #47535f;
  text-shadow: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] input[type="submit"]:hover,
body[data-theme="dark"] input[type="button"]:hover,
body[data-theme="dark"] input[type="reset"]:hover,
body[data-theme="dark"] #vkshare:hover,
body[data-theme="dark"] #update-torrent:hover,
body[data-theme="dark"] [class*="btn-"]:hover {
  background: linear-gradient(to bottom, #3a4651, #2b3540);
  border-color: #56636f;
}

body[data-theme="dark"] input[type="submit"]:active,
body[data-theme="dark"] input[type="button"]:active,
body[data-theme="dark"] input[type="reset"]:active,
body[data-theme="dark"] #vkshare:active,
body[data-theme="dark"] #update-torrent:active,
body[data-theme="dark"] [class*="btn-"]:active {
  background: linear-gradient(to bottom, #29323b, #222a32);
  border-color: #434f5a;
}

body[data-theme="dark"] .cat_title,
body[data-theme="dark"] h3.cat_title,
body[data-theme="dark"] #board_stats h3.cat_title {
  background: linear-gradient(180deg, #242c34 0%, #1c232a 100%);
  border-top-color: #3e4a55;
  border-bottom-color: #303942;
  color: var(--dt-text);
}

body[data-theme="dark"] .cat_title a,
body[data-theme="dark"] .cat_title a:visited {
  color: var(--dt-text) !important;
}

body[data-theme="dark"] .new-topic-btn,
body[data-theme="dark"] .new-topic-btn:visited {
  background: linear-gradient(to bottom, #3a4651, #2b3540);
  color: var(--dt-text) !important;
  border-color: #5c6b78;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-shadow: none;
}

body[data-theme="dark"] .new-topic-btn:hover {
  background: linear-gradient(to bottom, #465563, #34414d);
  color: var(--dt-link-hover) !important;
  border-color: #6f7f8d;
}

body[data-theme="dark"] .new-topic-btn:active {
  background: linear-gradient(to bottom, #29323b, #222a32);
  border-color: #434f5a;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.32);
}

body[data-theme="dark"] .f_tbl_wrap,
body[data-theme="dark"] #board_stats_wrap,
body[data-theme="dark"] .cat_footer {
  background: var(--dt-panel-bg);
  border-top-color: #303942;
}

body[data-theme="dark"] .forums td.row1,
body[data-theme="dark"] .forums td.row2,
body[data-theme="dark"] td.f_titles {
  border-color: var(--dt-border) !important;
}

body[data-theme="dark"] .forum_desc,
body[data-theme="dark"] .moderators,
body[data-theme="dark"] .moderators a,
body[data-theme="dark"] .moderators a:visited,
body[data-theme="dark"] .forums em,
body[data-theme="dark"] .subforums,
body[data-theme="dark"] .subforums a,
body[data-theme="dark"] .subforums a:visited,
body[data-theme="dark"] .last_post_time,
body[data-theme="dark"] .last_author,
body[data-theme="dark"] .f_stat_inline,
body[data-theme="dark"] .f_stat_topics,
body[data-theme="dark"] .f_stat_posts {
  color: var(--dt-text-muted) !important;
}

body[data-theme="dark"] .last_author a,
body[data-theme="dark"] .last_author a:visited,
body[data-theme="dark"] .moderators a:hover,
body[data-theme="dark"] .subforums a:hover {
  color: var(--dt-link) !important;
}

@supports ((clip-path: polygon(34.1% 14.4%, 40% 3%, 60% 3%, 65.9% 14.4%, 68% 15.4%, 80.5% 12.9%, 92.9% 28.5%, 87.7% 40.2%, 88.3% 42.5%, 98% 50.7%, 93.6% 70.2%, 81.2% 73.4%, 79.8% 75.2%, 79.4% 88%, 61.4% 96.6%, 51.2% 89%, 48.8% 89%, 38.6% 96.6%, 20.6% 88%, 20.2% 75.2%, 18.8% 73.4%, 6.4% 70.2%, 2% 50.7%, 11.7% 42.5%, 12.3% 40.2%, 7.1% 28.5%, 19.5% 12.9%, 32% 15.4%)) or (-webkit-clip-path: polygon(34.1% 14.4%, 40% 3%, 60% 3%, 65.9% 14.4%, 68% 15.4%, 80.5% 12.9%, 92.9% 28.5%, 87.7% 40.2%, 88.3% 42.5%, 98% 50.7%, 93.6% 70.2%, 81.2% 73.4%, 79.8% 75.2%, 79.4% 88%, 61.4% 96.6%, 51.2% 89%, 48.8% 89%, 38.6% 96.6%, 20.6% 88%, 20.2% 75.2%, 18.8% 73.4%, 6.4% 70.2%, 2% 50.7%, 11.7% 42.5%, 12.3% 40.2%, 7.1% 28.5%, 19.5% 12.9%, 32% 15.4%))) {
  body[data-theme="dark"] #forums_list_wrap .forum-status-icon,
  body[data-theme="dark"] .forumline.forum .forum-status-icon {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 32px;
    margin: 1px auto;
    vertical-align: middle;
    -webkit-clip-path: polygon(
      34.1% 14.4%,
      40.0% 3.0%,
      60.0% 3.0%,
      65.9% 14.4%,
      68.0% 15.4%,
      80.5% 12.9%,
      92.9% 28.5%,
      87.7% 40.2%,
      88.3% 42.5%,
      98.0% 50.7%,
      93.6% 70.2%,
      81.2% 73.4%,
      79.8% 75.2%,
      79.4% 88.0%,
      61.4% 96.6%,
      51.2% 89.0%,
      48.8% 89.0%,
      38.6% 96.6%,
      20.6% 88.0%,
      20.2% 75.2%,
      18.8% 73.4%,
      6.4% 70.2%,
      2.0% 50.7%,
      11.7% 42.5%,
      12.3% 40.2%,
      7.1% 28.5%,
      19.5% 12.9%,
      32.0% 15.4%
    );
    clip-path: polygon(
      34.1% 14.4%,
      40.0% 3.0%,
      60.0% 3.0%,
      65.9% 14.4%,
      68.0% 15.4%,
      80.5% 12.9%,
      92.9% 28.5%,
      87.7% 40.2%,
      88.3% 42.5%,
      98.0% 50.7%,
      93.6% 70.2%,
      81.2% 73.4%,
      79.8% 75.2%,
      79.4% 88.0%,
      61.4% 96.6%,
      51.2% 89.0%,
      48.8% 89.0%,
      38.6% 96.6%,
      20.6% 88.0%,
      20.2% 75.2%,
      18.8% 73.4%,
      6.4% 70.2%,
      2.0% 50.7%,
      11.7% 42.5%,
      12.3% 40.2%,
      7.1% 28.5%,
      19.5% 12.9%,
      32.0% 15.4%
    );
    background:
      radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.72) 0, rgba(255, 255, 255, 0.24) 18%, transparent 35%),
      radial-gradient(circle at 66% 70%, rgba(0, 0, 0, 0.28) 0, transparent 42%),
      repeating-conic-gradient(from -8deg, rgba(255, 255, 255, 0.12) 0 9deg, rgba(0, 0, 0, 0.08) 9deg 18deg),
      linear-gradient(135deg, #98a3ac 0%, #727d87 34%, #51606a 58%, #2a333d 100%);
    box-shadow:
      inset 1px 1px 2px rgba(255, 255, 255, 0.34),
      inset -2px -3px 4px rgba(0, 0, 0, 0.4),
      0 1px 2px rgba(0, 0, 0, 0.46);
  }

  body[data-theme="dark"] #forums_list_wrap .forum-status-icon img,
  body[data-theme="dark"] .forumline.forum .forum-status-icon img {
    display: none;
  }

  body[data-theme="dark"] #forums_list_wrap .forum-status-icon::before,
  body[data-theme="dark"] .forumline.forum .forum-status-icon::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 7px;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(221, 228, 234, 0.42);
    border-radius: 50%;
    background:
      radial-gradient(circle at 50% 50%, #121921 0 3.6px, transparent 4.15px),
      radial-gradient(circle at 35% 28%, #f1f4f6 0, #b1bac1 27%, #6c7780 53%, #2c3640 100%);
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.44),
      inset 0 -2px 3px rgba(0, 0, 0, 0.48),
      0 0 0 1px rgba(12, 18, 24, 0.34);
  }

  body[data-theme="dark"] #forums_list_wrap .forum-status-new,
  body[data-theme="dark"] .forumline.forum .forum-status-new {
    background:
      radial-gradient(circle at 29% 22%, rgba(255, 255, 255, 0.94) 0, rgba(233, 241, 247, 0.42) 21%, transparent 37%),
      radial-gradient(circle at 66% 70%, rgba(0, 0, 0, 0.18) 0, transparent 42%),
      repeating-conic-gradient(from -8deg, rgba(255, 255, 255, 0.24) 0 9deg, rgba(0, 0, 0, 0.04) 9deg 18deg),
      linear-gradient(135deg, #dee8ee 0%, #b3c7d4 30%, #7a9bb0 58%, #3b617b 100%);
    box-shadow:
      inset 1px 1px 2px rgba(255, 255, 255, 0.54),
      inset -2px -3px 4px rgba(0, 0, 0, 0.28),
      0 0 12px rgba(85, 154, 212, 0.5),
      0 0 0 1px rgba(142, 190, 224, 0.4),
      0 1px 2px rgba(0, 0, 0, 0.46);
  }

  body[data-theme="dark"] #forums_list_wrap .forum-status-new::before,
  body[data-theme="dark"] .forumline.forum .forum-status-new::before {
    border-color: rgba(229, 240, 248, 0.74);
    background:
      radial-gradient(circle at 50% 50%, #0f151c 0 3.45px, transparent 4px),
      radial-gradient(circle at 35% 28%, #ffffff 0, #e2ebf2 24%, #a1b8c8 52%, #446981 100%);
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.4),
      inset 0 -1px 2px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(88, 142, 179, 0.18);
  }

  body[data-theme="dark"] #forums_list_wrap .forum-status-read,
  body[data-theme="dark"] .forumline.forum .forum-status-read {
    background:
      radial-gradient(circle at 31% 23%, rgba(255, 255, 255, 0.4) 0, rgba(255, 255, 255, 0.11) 18%, transparent 35%),
      radial-gradient(circle at 66% 70%, rgba(0, 0, 0, 0.24) 0, transparent 39%),
      repeating-conic-gradient(from -8deg, rgba(255, 255, 255, 0.06) 0 9deg, rgba(0, 0, 0, 0.07) 9deg 18deg),
      linear-gradient(135deg, #7c868f 0%, #5b6670 34%, #3c4751 58%, #1e262f 100%);
    box-shadow:
      inset 1px 1px 2px rgba(255, 255, 255, 0.16),
      inset -2px -2px 3px rgba(0, 0, 0, 0.26),
      0 1px 2px rgba(0, 0, 0, 0.38);
  }

  body[data-theme="dark"] #forums_list_wrap .forum-status-read::before,
  body[data-theme="dark"] .forumline.forum .forum-status-read::before {
    border-color: rgba(184, 194, 202, 0.32);
    background:
      radial-gradient(circle at 50% 50%, #0f151c 0 3.4px, transparent 3.95px),
      radial-gradient(circle at 35% 28%, #cfd7dd 0, #939ea7 24%, #5d6871 53%, #252d36 100%);
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.22),
      inset 0 -1px 2px rgba(0, 0, 0, 0.34),
      0 0 0 1px rgba(12, 18, 24, 0.26);
  }

  body[data-theme="dark"] #forums_list_wrap .forum-status-locked,
  body[data-theme="dark"] .forumline.forum .forum-status-locked {
    background:
      radial-gradient(circle at 31% 23%, rgba(255, 255, 255, 0.34) 0, rgba(255, 255, 255, 0.09) 18%, transparent 35%),
      radial-gradient(circle at 66% 70%, rgba(0, 0, 0, 0.24) 0, transparent 39%),
      repeating-conic-gradient(from -8deg, rgba(255, 255, 255, 0.05) 0 9deg, rgba(0, 0, 0, 0.08) 9deg 18deg),
      linear-gradient(135deg, #747f88 0%, #58626c 34%, #39444d 58%, #1d252d 100%);
    box-shadow:
      inset 1px 1px 2px rgba(255, 255, 255, 0.14),
      inset -2px -2px 3px rgba(0, 0, 0, 0.28),
      0 1px 2px rgba(0, 0, 0, 0.4);
    filter: saturate(0.74) brightness(0.94);
  }

  body[data-theme="dark"] #forums_list_wrap .forum-status-locked::before,
  body[data-theme="dark"] .forumline.forum .forum-status-locked::before {
    border-color: rgba(174, 184, 192, 0.28);
    background:
      radial-gradient(circle at 50% 50%, #0f151c 0 3.4px, transparent 3.95px),
      radial-gradient(circle at 35% 28%, #c7cfd6 0, #8b969f 24%, #59636c 53%, #242d35 100%);
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.18),
      inset 0 -1px 2px rgba(0, 0, 0, 0.34),
      0 0 0 1px rgba(12, 18, 24, 0.24);
  }

  body[data-theme="dark"] #forums_list_wrap .forum-status-locked::after,
  body[data-theme="dark"] .forumline.forum .forum-status-locked::after {
    content: none;
  }

  body[data-theme="dark"] #forums_list_wrap .forum-status-link::after,
  body[data-theme="dark"] .forumline.forum .forum-status-link::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 12px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #aac8e4;
    border-right: 2px solid #aac8e4;
    transform: rotate(45deg);
  }
}

body[data-theme="dark"] .menu-sub,
body[data-theme="dark"] .menu-sub table,
body[data-theme="dark"] .menu-sub td,
body[data-theme="dark"] .menu-sub th,
body[data-theme="dark"] .menu-sub legend,
body[data-theme="dark"] .menu-sub label,
body[data-theme="dark"] #only-new-options,
body[data-theme="dark"] #show-only {
  background: var(--dt-panel-bg);
  color: var(--dt-text);
  border-color: var(--dt-border);
}

body[data-theme="dark"] .menu-sub {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

body[data-theme="dark"] .menu-sub th {
  background: #202832;
}

body[data-theme="dark"] #show-only {
  border: 1px solid var(--dt-border);
}

body[data-theme="dark"] .news-main-container-table,
body[data-theme="dark"] .news-main-container-table > tbody > tr > td,
body[data-theme="dark"] .news-block-left,
body[data-theme="dark"] .news-block-right,
body[data-theme="dark"] #latest_news,
body[data-theme="dark"] #latest_news table,
body[data-theme="dark"] #latest_news td {
  background: var(--dt-panel-bg);
  color: var(--dt-text);
  border-color: var(--dt-border);
}

body[data-theme="dark"] .news-main-container-table > tbody > tr > td + td {
  border-left: 1px solid var(--dt-border);
  padding-left: 14px;
}

body[data-theme="dark"] #latest_news h3 {
  color: var(--dt-text);
}

body[data-theme="dark"] .news_title {
  border-top-color: var(--dt-border);
  color: var(--dt-text);
}

body[data-theme="dark"] #latest_news a,
body[data-theme="dark"] #latest_news a:visited {
  color: var(--dt-text);
}

body[data-theme="dark"] #latest_news a:hover {
  color: var(--dt-accent-amber-hover);
}

body[data-theme="dark"] #latest_news .new a {
  color: #bc5555;
}

body[data-theme="dark"] .rss-sel-page,
body[data-theme="dark"] .rss-sel-box,
body[data-theme="dark"] .rss-sel-body,
body[data-theme="dark"] .rss-sel-result {
  background: var(--dt-panel-bg) !important;
  color: var(--dt-text);
}

body[data-theme="dark"] .rss-sel-pane,
body[data-theme="dark"] .rss-sel-link-block {
  background: var(--dt-surface-2);
  color: var(--dt-text);
  border-color: var(--dt-border);
}

body[data-theme="dark"] .rss-sel-pane legend,
body[data-theme="dark"] .rss-sel-result-title,
body[data-theme="dark"] .rss-sel-label,
body[data-theme="dark"] .rss-sel-help-title {
  color: var(--dt-text);
}

body[data-theme="dark"] .rss-sel-select-wrap {
  background: var(--dt-input-bg);
  border-color: var(--dt-border);
}

body[data-theme="dark"] .rss-sel-select,
body[data-theme="dark"] .rss-sel-select option,
body[data-theme="dark"] #fs-sel-cat,
body[data-theme="dark"] #fs-sel-cat option,
body[data-theme="dark"] #fs-qs-input,
body[data-theme="dark"] .rss-sel-result input[type="text"] {
  background: var(--dt-input-bg);
  color: var(--dt-text);
  border-color: var(--dt-input-border);
}

body[data-theme="dark"] .rss-sel-select option:checked,
body[data-theme="dark"] .rss-sel-select option:hover {
  background: #31577d;
  color: #e9f1f7;
}

body[data-theme="dark"] .rss-sel-fields-row-separated .rss-sel-label,
body[data-theme="dark"] .rss-sel-fields-row-separated .rss-sel-control {
  border-top-color: var(--dt-border);
}

body[data-theme="dark"] .rss-sel-hint,
body[data-theme="dark"] .rss-sel-note,
body[data-theme="dark"] .rss-sel-copy-status {
  color: var(--dt-text-muted);
}

body[data-theme="dark"] .rss-sel-help {
  background: #182028;
  color: var(--dt-text-muted);
  border-color: var(--dt-border);
}

body[data-theme="dark"] .rss-sel-help b {
  color: var(--dt-text);
}

body[data-theme="dark"] .rss-sel-token-warning {
  background: rgba(216, 177, 95, 0.12);
  color: #d8c487;
  border-color: #77603a;
}

body[data-theme="dark"] .rss-sel-button,
body[data-theme="dark"] .rss-sel-button:visited {
  background: linear-gradient(to bottom, #303a44, var(--dt-button-bg));
  color: var(--dt-text) !important;
  border-color: #47535f;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
  text-shadow: none;
}

body[data-theme="dark"] .rss-sel-button:hover,
body[data-theme="dark"] .rss-sel-button:focus {
  background: linear-gradient(to bottom, #3a4651, #2b3540);
  color: var(--dt-link-hover) !important;
  border-color: #56636f;
}

body[data-theme="dark"] .news_date {
  background: #1e252b;
  border-color: #3b4651;
  color: var(--dt-text-muted);
}

body[data-theme="dark"] .news_date.new,
body[data-theme="dark"] .news_date.promo {
  background: #763838;
  border-color: #8d5050;
  color: #ead9d5;
}

body[data-theme="dark"] .ticker-wrapper.has-js {
  --tp-ticker-dark-bg: var(--dt-panel-bg);
  background: var(--tp-ticker-dark-bg);
  border-color: var(--dt-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.36);
}

body[data-theme="dark"] .ticker,
body[data-theme="dark"] .ticker-title,
body[data-theme="dark"] .ticker-content,
body[data-theme="dark"] .ticker-swipe,
body[data-theme="dark"] .ticker-swipe span {
  background-color: var(--tp-ticker-dark-bg);
}

body[data-theme="dark"] .ticker-title {
  color: var(--dt-accent-amber);
}

body[data-theme="dark"] .ticker-content,
body[data-theme="dark"] .ticker-content a,
body[data-theme="dark"] .ticker-content a:visited {
  color: var(--dt-link);
}

body[data-theme="dark"] .ticker-content a:hover,
body[data-theme="dark"] .ticker-content a:focus {
  color: var(--dt-link-hover);
}

body[data-theme="dark"] .ticker-swipe span {
  border-bottom-color: rgba(115, 183, 230, 0.32);
}

body[data-theme="dark"] .ticker-controls li {
  background: var(--dt-surface-2);
  border-color: #4d7d9d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .ticker-controls li:hover,
body[data-theme="dark"] .ticker-controls li:focus-within,
body[data-theme="dark"] .ticker-controls li.over,
body[data-theme="dark"] .ticker-controls li.down {
  background: #23303a;
  border-color: #6aa8cc;
}

body[data-theme="dark"] .ticker-controls li a:focus {
  outline: 2px solid var(--dt-link-hover);
  outline-offset: 3px;
}

body[data-theme="dark"] .ticker-controls li.jnt-prev:after {
  border-right-color: var(--dt-text);
}

body[data-theme="dark"] .ticker-controls li.jnt-next:after,
body[data-theme="dark"] .ticker-controls li.jnt-play-pause.paused:after {
  border-left-color: var(--dt-text);
}

body[data-theme="dark"] .ticker-controls li.jnt-play-pause:before,
body[data-theme="dark"] .ticker-controls li.jnt-play-pause:after {
  background: var(--dt-text);
}

body[data-theme="dark"] .ticker-controls li.jnt-play-pause.paused:after {
  background: transparent;
}

body[data-theme="dark"] .ticker-controls li:hover::after,
body[data-theme="dark"] .ticker-controls li:hover::before {
  filter: none;
}

body[data-theme="dark"] #header-user-menu {
  background: var(--dt-panel-bg);
  border-color: var(--dt-border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .header-user-icon-link {
  background: var(--dt-surface-2);
  color: var(--dt-text);
  border-color: #3b4651;
}

body[data-theme="dark"] .header-user-icon-link:hover {
  background: #252d35;
  color: var(--dt-text);
}

body[data-theme="dark"] .header-user-icon-link.has-new-pm {
  background: #763838;
  color: #f2e1dd;
  border-color: #8d5050;
}

body[data-theme="dark"] .header-user-icon-link.has-new-pm:hover {
  background: #8a4545;
  color: #fff0ec;
  border-color: #a45c5c;
}

body[data-theme="dark"] .header-user-icon-link.has-new-pm .header-pm-cnt {
  color: #fff0ec;
}

body[data-theme="dark"] .header-user-separator {
  background: #333e48;
}

body[data-theme="dark"] .subscription-mode-box {
  background: var(--dt-panel-bg);
  border-color: var(--dt-border);
}

body[data-theme="dark"] .subscription-mode-box legend {
  color: var(--dt-text);
}

body[data-theme="dark"] label.subscription-mode-option span {
  background: var(--dt-input-bg);
  color: var(--dt-text);
  border-color: var(--dt-input-border);
}

body[data-theme="dark"] label.subscription-mode-option:hover span {
  background: #252d35;
  border-color: #4d5965;
}

body[data-theme="dark"] label.subscription-mode-option input[type="radio"] {
  accent-color: var(--dt-link);
}

body[data-theme="dark"] label.subscription-mode-option input[type="radio"]:checked + span {
  background: #1f2d39;
  color: var(--dt-text);
  border-color: var(--dt-link);
}

body[data-theme="dark"] .subscription-mode-notice {
  background: var(--dt-surface-2);
  color: var(--dt-text);
  border-color: var(--dt-border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
}

body[data-theme="dark"] .stat-label {
  color: var(--dt-text-muted);
}

body[data-theme="dark"] .stat-value,
body[data-theme="dark"] .stat-value a,
body[data-theme="dark"] .stat-value a:visited {
  color: var(--dt-text);
}

body[data-theme="dark"] .stat-value#u-ratio,
body[data-theme="dark"] .stat-value.vip,
body[data-theme="dark"] .stat-value.vip a {
  color: var(--dt-status);
}

body[data-theme="dark"] .stat-value#u-downloaded {
  color: #c9938d;
}

body[data-theme="dark"] .stat-value#u-uploaded,
body[data-theme="dark"] .stat-value#u-available {
  color: var(--dt-success);
}

body[data-theme="dark"] .lenta-category-filter {
  background: var(--dt-surface-2);
  border-color: var(--dt-border);
}

body[data-theme="dark"] .cat-checkbox,
body[data-theme="dark"] .cat-checkbox-subfilter {
  background: #1e252b;
  border-color: #3b4651;
  color: var(--dt-text-muted);
  box-shadow: none;
}

body[data-theme="dark"] .cat-checkbox:hover,
body[data-theme="dark"] .cat-checkbox-subfilter:hover {
  background: #252d35;
  border-color: #4d5965;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .cat-checkbox .checkbox-custom {
  background: var(--dt-input-bg);
  border-color: var(--dt-input-border);
}

body[data-theme="dark"] .cat-checkbox .cat-checkbox-label {
  color: var(--dt-text-muted);
}

body[data-theme="dark"] .cat-checkbox input[type="checkbox"]:checked ~ .checkbox-custom {
  background: #1f2d39;
  border-color: var(--dt-link);
}

body[data-theme="dark"] .cat-checkbox input[type="checkbox"]:checked ~ .checkbox-custom::after {
  border-color: var(--dt-link);
}

body[data-theme="dark"] .cat-checkbox input[type="checkbox"]:checked ~ .cat-checkbox-label {
  color: var(--dt-text);
}

body[data-theme="dark"] .cat-checkbox:hover .checkbox-custom {
  border-color: var(--dt-link);
}

body[data-theme="dark"] .cat-submenu-indicator {
  border-top-color: #8f9daa;
}

body[data-theme="dark"] .cat-filter-group-with-submenu:hover .cat-submenu-indicator,
body[data-theme="dark"] .cat-filter-group-with-submenu:focus-within .cat-submenu-indicator {
  border-top-color: var(--dt-link);
}

body[data-theme="dark"] #fs {
  background: var(--dt-input-bg);
  color: var(--dt-text);
  border-color: var(--dt-input-border);
}

body[data-theme="dark"] #fs:focus {
  border-color: var(--dt-link);
  outline-color: var(--dt-link);
}

body[data-theme="dark"] #fs optgroup,
body[data-theme="dark"] #fs-sel-cat option.cat-title {
  background: #202832;
  color: var(--dt-text);
}

body[data-theme="dark"] #fs option {
  background: var(--dt-panel-bg);
  color: var(--dt-text);
}

body[data-theme="dark"] #fs option.custom-selected,
body[data-theme="dark"] #fs option:checked {
  background: #31577d !important;
  color: #e9f1f7 !important;
}

body[data-theme="dark"] #fs-nav-list {
  border-color: var(--dt-border);
  background: var(--dt-panel-bg);
  color: var(--dt-text);
}

body[data-theme="dark"] #fs-nav .b {
  color: var(--dt-link);
}

body[data-theme="dark"] #fs-nav .b:hover {
  background: #31577d;
  color: #e9f1f7;
}

body[data-theme="dark"] .cat input[type="text"],
body[data-theme="dark"] #search-text,
body[data-theme="dark"] input.hint,
body[data-theme="dark"] input.found,
body[data-theme="dark"] input.error {
  background: var(--dt-input-bg);
  border-color: var(--dt-input-border);
  color: var(--dt-text);
}

body[data-theme="dark"] input.hint,
body[data-theme="dark"] #search-text.hint {
  color: var(--dt-text-muted);
}

body[data-theme="dark"] input.error,
body[data-theme="dark"] #search-text.error {
  color: var(--dt-danger);
  border-color: #7f4a4a;
}

body[data-theme="dark"] input.found,
body[data-theme="dark"] #search-text.found {
  color: var(--dt-text);
  border-color: #4a6f50;
}

body[data-theme="dark"] #search-text::placeholder,
body[data-theme="dark"] .search-input-width::placeholder {
  color: var(--dt-text-muted);
  opacity: 1;
}

body[data-theme="dark"] #search-text + input[type="submit"] {
  background: linear-gradient(to bottom, #303a44, var(--dt-button-bg));
  color: var(--dt-text) !important;
  border-color: #47535f;
}

body[data-theme="dark"] #poll.poller {
  background-color: var(--dt-surface-2) !important;
  border-color: var(--dt-border) !important;
  color: var(--dt-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 10px 24px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] #poll.poller table,
body[data-theme="dark"] #poll.poller td,
body[data-theme="dark"] #poll.poller label,
body[data-theme="dark"] #poll.poller p,
body[data-theme="dark"] #poll.poller b {
  color: var(--dt-text);
}

body[data-theme="dark"] #poll.poller .small,
body[data-theme="dark"] #poll.poller .small a,
body[data-theme="dark"] #poll.poller .small a:visited {
  color: var(--dt-text-muted) !important;
}

body[data-theme="dark"] #poll.poller .small a:hover {
  color: var(--dt-link-hover) !important;
}

body[data-theme="dark"] #poll.poller input[type="radio"] {
  accent-color: var(--dt-link);
}

body[data-theme="dark"] #poll.poller .row6 {
  background: var(--dt-row-alt-bg) !important;
  border-color: var(--dt-border) !important;
}

body[data-theme="dark"] table.topic,
body[data-theme="dark"] .topic .td1,
body[data-theme="dark"] .topic .td2,
body[data-theme="dark"] .topic .td3,
body[data-theme="dark"] .post_head,
body[data-theme="dark"] .post_btn_2 {
  border-color: var(--dt-border);
}

body[data-theme="dark"] .topic .td1,
body[data-theme="dark"] .topic .td3,
body[data-theme="dark"] .poster_info td,
body[data-theme="dark"] .poster_btn {
  background: #14191e !important;
}

body[data-theme="dark"] #topic_main tbody.row2 > tr > td.message.td2 {
  background: #13171a;
}

body[data-theme="dark"] .poster_info,
body[data-theme="dark"] .poster_info p,
body[data-theme="dark"] .poster_info .joined,
body[data-theme="dark"] .poster_info .posts,
body[data-theme="dark"] .poster_info .rank_txt {
  color: var(--dt-text-muted);
}

body[data-theme="dark"] .poster_info .nick,
body[data-theme="dark"] .poster_info .nick a,
body[data-theme="dark"] .poster_info .nick a:visited {
  color: var(--dt-text);
}

body[data-theme="dark"] .poster_info em {
  color: var(--dt-text);
}

body[data-theme="dark"] .poster_info .avatar,
body[data-theme="dark"] .poster_info .rank_img,
body[data-theme="dark"] .poster_info .flag {
  background: transparent;
}

body[data-theme="dark"] .poster_info .row1,
body[data-theme="dark"] .user-stats-hidden .row1,
body[data-theme="dark"] .user-stats-hidden td {
  background: #1b2127 !important;
  color: var(--dt-text);
  border-color: var(--dt-border);
}

body[data-theme="dark"] .post_body img.poster,
body[data-theme="dark"] img.poster {
  background: transparent !important;
  border: 0 none !important;
  border-radius: 0;
  padding: 0 !important;
}

body[data-theme="dark"] .post_body pre,
body[data-theme="dark"] .post_body .post-pre,
body[data-theme="dark"] .post_wrap pre,
body[data-theme="dark"] .post_wrap .post-pre,
body[data-theme="dark"] .signature pre,
body[data-theme="dark"] .signature .post-pre {
  background: var(--dt-input-bg);
  color: var(--dt-text);
  border: 1px solid var(--dt-border);
  border-radius: 4px;
  padding: 10px 12px;
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body[data-theme="dark"] .post_wrap.new_mess_m .post_body pre,
body[data-theme="dark"] .post_wrap.new_mess_m .post_body .post-pre {
  background: var(--dt-input-bg);
  color: var(--dt-text);
  border-color: rgba(128, 202, 255, 0.28);
}

body[data-theme="dark"] .c-wrap,
body[data-theme="dark"] .q-wrap,
body[data-theme="dark"] .sp-wrap {
  background: transparent;
}

body[data-theme="dark"] .c-body,
body[data-theme="dark"] .q,
body[data-theme="dark"] .sp-wrap,
body[data-theme="dark"] .sp-head,
body[data-theme="dark"] .sp-body {
  border-color: var(--dt-border);
}

body[data-theme="dark"] .c-head,
body[data-theme="dark"] .q-head {
  color: var(--dt-text-muted);
}

body[data-theme="dark"] .c-body {
  background: #151b20;
  color: #8fc887;
  border-left-color: #46764d;
}

body[data-theme="dark"] .q {
  background: #1a2026;
  color: var(--dt-text);
  border-left-color: #4f779e;
  box-shadow: none;
}

body[data-theme="dark"] .q .q {
  background: #202730;
}

body[data-theme="dark"] .q .q .q {
  background: #1a2026;
}

body[data-theme="dark"] .q .q .q .q,
body[data-theme="dark"] .q .q .q .q .q,
body[data-theme="dark"] .q .q .q .q .q .q,
body[data-theme="dark"] .q .q .q .q .q .q .q {
  background: #202730 !important;
  color: var(--dt-text) !important;
}

body[data-theme="dark"] .q .q .q .q .q,
body[data-theme="dark"] .q .q .q .q .q .q .q {
  background: #1a2026 !important;
}

body[data-theme="dark"] td.ModTable {
  background-color: #763838;
}

body[data-theme="dark"] .exclamation {
  color: #ffffff;
}

body[data-theme="dark"] .mod {
  color: var(--dt-text);
}

body[data-theme="dark"] .post_body table td.mod,
body[data-theme="dark"] .post_body table td.ModTable + td {
  border-color: var(--dt-border);
  background: var(--dt-panel-bg);
}

body[data-theme="dark"] .show-more {
  color: var(--dt-text-muted);
  border-top-color: #4f779e;
  background: rgba(27, 33, 39, 0.94);
}

body[data-theme="dark"] .show-more:hover,
body[data-theme="dark"] .q.expanded .show-more:hover {
  color: var(--dt-text);
  background: #28323d;
}

body[data-theme="dark"] .sp-wrap {
  background: #1b2127;
  border-radius: 6px;
}

body[data-theme="dark"] .sp-head {
  background: #242c34;
  color: var(--dt-text);
  margin-left: 0;
}

body[data-theme="dark"] .sp-head:hover {
  background: #2d3741;
  color: var(--dt-link-hover);
}

body[data-theme="dark"] .sp-body {
  background: var(--dt-panel-bg);
  color: var(--dt-text);
  border-top-color: var(--dt-border);
}

body[data-theme="dark"] table.attach,
body[data-theme="dark"] .attachtable,
body[data-theme="dark"] fieldset.attach,
body[data-theme="dark"] .attach th,
body[data-theme="dark"] .attach td,
body[data-theme="dark"] .attachheader,
body[data-theme="dark"] .attachrow {
  background: var(--dt-panel-bg);
  color: var(--dt-text);
  border-color: var(--dt-border);
}

body[data-theme="dark"] table.attach tr.row3 th,
body[data-theme="dark"] .attachheader {
  background: #242c34;
  color: var(--dt-text);
}

body[data-theme="dark"] table.attach th.row7,
body[data-theme="dark"] table.attach .row7 {
  background: linear-gradient(180deg, #3c4650 0%, #313941 100%);
  color: var(--dt-text);
}

body[data-theme="dark"] table.attach .gold-header {
  background: linear-gradient(180deg, #7b6521 0%, #5c4a18 100%) !important;
  color: #fff0c5;
}

body[data-theme="dark"] table.attach tr.row4 td,
body[data-theme="dark"] table.attach tr.row4 th {
  background: #232a31;
  color: var(--dt-text);
}

body[data-theme="dark"] .attach_link,
body[data-theme="dark"] .attach_stats,
body[data-theme="dark"] .attach_comment {
  color: var(--dt-text-muted);
}

body[data-theme="dark"] .attach_comment {
  background: #1c2228;
  border-left-color: #7c6440;
}

body[data-theme="dark"] .download-torrent-btn {
  border-color: #5b6773;
}

body[data-theme="dark"] .download-torrent-btn.disabled,
body[data-theme="dark"] .download-torrent-btn.disabled:hover {
  background: #2a3138;
  color: #8f98a1;
  border-color: #4f5964;
}

body[data-theme="dark"] .thanks-btn {
  border-color: #5b6773;
}

body[data-theme="dark"] .comment-textarea {
  background: var(--dt-input-bg);
  color: var(--dt-text);
  border-color: var(--dt-input-border);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] #tor-fl-wrap,
body[data-theme="dark"] #tor-fl-wrap td,
body[data-theme="dark"] #tor-filelist {
  background: var(--dt-panel-bg);
  color: var(--dt-text);
  border-color: var(--dt-border);
}

body[data-theme="dark"] #tor-filelist i {
  color: var(--dt-text-muted);
}

body[data-theme="dark"] #tor-filelist s {
  color: var(--dt-link);
}

body[data-theme="dark"] #tor-filelist .b > s {
  color: #d5a78b;
}

body[data-theme="dark"] #tor-filelist .tor-root-dir {
  color: var(--dt-text);
}

body[data-theme="dark"] .fat-seed-btn,
body[data-theme="dark"] .fat-seed-btn:visited {
  color: #d8a878 !important;
}

body[data-theme="dark"] .fat-seed-btn:hover {
  color: #f2c66f !important;
}

body[data-theme="dark"] .ui-tooltip.ui-widget-content {
  background: #11161b;
  color: var(--dt-text);
  border: 1px solid #4b5966;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

body[data-theme="dark"] .ui-tooltip .ui-tooltip-content {
  color: var(--dt-text);
}

body[data-theme="dark"] .ui-tooltip a,
body[data-theme="dark"] .ui-tooltip a:visited {
  color: var(--dt-link);
}

body[data-theme="dark"] .cluetip-jtip #cluetip-outer,
body[data-theme="dark"] .tooltip-container {
  background: var(--dt-panel-bg);
  color: var(--dt-text);
  border-color: var(--dt-border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
}

body[data-theme="dark"] .cluetip-jtip h3#cluetip-title,
body[data-theme="dark"] .tooltip-header {
  background: #2b343d;
  color: var(--dt-text);
  border-bottom-color: #42505d;
}

body[data-theme="dark"] .cluetip-jtip #cluetip-inner,
body[data-theme="dark"] .tooltip-body,
body[data-theme="dark"] .poster-preview {
  background: var(--dt-panel-bg);
  color: var(--dt-text);
}

body[data-theme="dark"] .poster-info {
  color: var(--dt-text-muted);
  border-bottom-color: #35404a;
}

body[data-theme="dark"] .poster-info b,
body[data-theme="dark"] .poster-info .lenta-forum-name {
  color: var(--dt-text);
}

body[data-theme="dark"] .tooltip-container a,
body[data-theme="dark"] .tooltip-container a:visited,
body[data-theme="dark"] .cluetip-jtip a,
body[data-theme="dark"] .cluetip-jtip a:visited {
  color: var(--dt-link);
}

body[data-theme="dark"] .tooltip-container a:hover,
body[data-theme="dark"] .cluetip-jtip a:hover {
  color: var(--dt-link-hover);
}

body[data-theme="dark"] .menu-split::after {
  color: var(--dt-text-muted);
}

body[data-theme="dark"] .header-theme-summary {
  color: var(--dt-link);
}

body[data-theme="dark"] .header-theme-summary:hover {
  color: var(--dt-link-hover);
}

body[data-theme="dark"] .header-theme-options {
  border-color: var(--dt-border);
  background: #1f262d;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

body[data-theme="dark"] .header-theme-option,
body[data-theme="dark"] .header-theme-option:visited {
  color: var(--dt-link);
}

body[data-theme="dark"] .header-theme-option:hover {
  background: #2b3440;
  color: var(--dt-link-hover) !important;
}

body[data-theme="dark"] .header-theme-option.is-active {
  background: #2f3b47;
  color: var(--dt-text);
  font-weight: 700;
}

body[data-theme="dark"] #subscription input.liteoption,
body[data-theme="dark"] #subscription input.liteoption:hover,
body[data-theme="dark"] #subscription input.liteoption:active {
  background: linear-gradient(180deg, #31ecff 0%, #33485e 100%) !important;
  border-color: #5f7f97 !important;
  color: #eef5fb !important;
  text-shadow: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.32);
}

body[data-theme="dark"] #monitor_btn input.liteoption,
body[data-theme="dark"] #monitor_btn input.liteoption:hover,
body[data-theme="dark"] #monitor_btn input.liteoption:active {
  background: linear-gradient(180deg, #7a6732 0%, #5c4b24 100%) !important;
  border-color: #8b7541 !important;
  color: #fff1bf !important;
  text-shadow: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.32);
}

body[data-theme="dark"] .poster_info .friend_m {
  background: linear-gradient(180deg, rgba(48, 78, 58, 0.84) 0%, rgba(35, 61, 45, 0.9) 100%) !important;
  border: 1px solid #54785f;
  border-radius: 6px;
  color: var(--dt-text);
}

body[data-theme="dark"] .poster_info .friend_m a,
body[data-theme="dark"] .poster_info .friend_m .nick,
body[data-theme="dark"] .poster_info .friend_m .rank_txt,
body[data-theme="dark"] .poster_info .friend_m p,
body[data-theme="dark"] .poster_info .friend_m em,
body[data-theme="dark"] .poster_info .friend_m b {
  color: var(--dt-text);
}

body[data-theme="dark"] .poster_info .friend_m .joined,
body[data-theme="dark"] .poster_info .friend_m .posts,
body[data-theme="dark"] .poster_info .friend_m .stat-label {
  color: #d4e5d7;
}

body[data-theme="dark"] .box {
  background: #2a3138 !important;
  color: var(--dt-text) !important;
  border-color: #596673 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .box a,
body[data-theme="dark"] .box a:visited {
  color: var(--dt-link);
}

body[data-theme="dark"] .box a:hover {
  color: var(--dt-link-hover);
}

body[data-theme="dark"] .post_wrap.new_mess_m {
  background: linear-gradient(180deg, rgba(57, 92, 99, 0.38) 0%, rgba(34, 52, 58, 0.46) 100%) !important;
  color: var(--dt-text);
  border: 1px solid rgba(128, 202, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-theme="dark"] .post_wrap.new_mess_m .post_body,
body[data-theme="dark"] .post_wrap.new_mess_m .signature {
  color: var(--dt-text);
}

body[data-theme="dark"] .post_wrap.new_mess_m a,
body[data-theme="dark"] .post_wrap.new_mess_m a:visited {
  color: var(--dt-link);
}

body[data-theme="dark"] .post_wrap.new_mess_m a:hover {
  color: var(--dt-link-hover);
}

body[data-theme="dark"] .colorGroup,
body[data-theme="dark"] a.colorGroup,
body[data-theme="dark"] a.colorGroup:visited {
  color: #b892ff !important;
}

body[data-theme="dark"] a.colorGroup:hover {
  color: #d1b6ff !important;
}

body[data-theme="dark"] #profile-nav2 input.liteoption.sel_prof {
  background: linear-gradient(180deg, #4d5660 0%, #363e47 100%) !important;
  border-color: #67717c !important;
  color: #eef3f8 !important;
  text-shadow: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile {
  background: linear-gradient(180deg, #161b20 0%, #13181d 100%);
  border-color: #4a5560;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile > tbody > tr > td.row1 {
  background: linear-gradient(180deg, #1e252c 0%, #192028 100%);
  border-top-color: #303841;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile > tbody > tr > td.row1.vTop.tCenter {
  background: linear-gradient(180deg, #202830 0%, #1a2128 100%);
  border-right: 1px solid #3b4651;
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile td.catTitle,
body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile td.catBottom,
body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile th.thHead {
  border-color: #45515c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.user_contacts,
body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.user_details {
  background: linear-gradient(180deg, rgba(39, 48, 57, 0.9) 0%, rgba(29, 36, 44, 0.96) 100%);
  border: 1px solid #36424d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.user_contacts th,
body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.user_details th {
  color: #c7d3de;
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.user_contacts td,
body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.user_details td {
  color: #eef3f7;
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile h4.cat {
  background: linear-gradient(180deg, #27303a 0%, #1f2730 100%);
  border-color: #45515c;
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile fieldset {
  border: 1px solid #4f5d69;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(36, 44, 53, 0.96) 0%, rgba(25, 32, 39, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 22px rgba(0, 0, 0, 0.18);
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile fieldset legend {
  color: #f0d79b;
  padding: 0 6px;
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile textarea#user-sig {
  background: #11171d;
  border-color: #5d6b77;
  color: #eef3f7;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.32);
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile a,
body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile + .bottom_info a {
  color: #98d6ff;
  text-decoration: underline;
  text-decoration-color: rgba(152, 214, 255, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile a:hover,
body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile a:focus,
body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile + .bottom_info a:hover,
body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile + .bottom_info a:focus {
  color: #ffd39a !important;
  text-decoration-color: currentColor;
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile .btn-pm {
  text-decoration: none;
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp {
  background: linear-gradient(180deg, #171d23 0%, #11161b 100%);
  border: 1px solid #4b5762;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp th,
body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp td {
  border-right: 1px solid #33404a;
  border-bottom: 1px solid #33404a;
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp tr > *:last-child {
  border-right: 0;
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp tr:last-child > * {
  border-bottom: 0;
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp tr.row3 th {
  background: linear-gradient(180deg, #2c3640 0%, #222b34 100%);
  color: #d8e1ea;
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp tr.row5 th,
body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp tr.row5 td {
  background: #1c242c;
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp tr.row1 th,
body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp tr.row1 td {
  background: #202932;
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp tr.leech th,
body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp tr.leech td,
body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp tr.leech span {
  color: #f29a94 !important;
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp tr.leech th {
  background: linear-gradient(180deg, rgba(124, 45, 45, 0.3) 0%, rgba(62, 29, 29, 0.4) 100%);
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp tr.seed th,
body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp tr.seed td,
body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp tr.seed span {
  color: #8fd59a !important;
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp tr.seed th {
  background: linear-gradient(180deg, rgba(48, 87, 54, 0.32) 0%, rgba(28, 49, 32, 0.42) 100%);
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp tr td.row1 {
  background: #26323c !important;
  box-shadow: inset 0 0 0 1px rgba(143, 213, 154, 0.1);
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp .seedsmall,
body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp .seedmed,
body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp .seed,
body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile #user_bonus .seed,
body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile #user_bonus .editable {
  color: #8fd59a !important;
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp .leechsmall,
body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp .leechmed,
body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp .leech {
  color: #f29a94 !important;
}

body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp tr:not(.seed):not(.leech) td,
body[data-theme="dark"] a[name="editprofile"] + p.nav + table.user_profile table.ratio_cp tr:not(.seed):not(.leech) th {
  color: #dbe4ec;
}

body[data-theme="dark"] .dl_list .leech,
body[data-theme="dark"] .dl_list a.leech,
body[data-theme="dark"] .dl_list a.leech:visited,
body[data-theme="dark"] .dl_list .leechmed,
body[data-theme="dark"] .dl_list .leechmed td,
body[data-theme="dark"] .dl_list a.leechmed,
body[data-theme="dark"] .dl_list a.leechmed:visited,
body[data-theme="dark"] .dl_list .leechsmall,
body[data-theme="dark"] .dl_list a.leechsmall,
body[data-theme="dark"] .dl_list a.leechsmall:visited {
  color: #e74236 !important;
  text-shadow: none;
}

body[data-theme="dark"] #tor-tbl .leech,
body[data-theme="dark"] #tor-tbl a.leech,
body[data-theme="dark"] #tor-tbl a.leech:visited,
body[data-theme="dark"] #tor-tbl .leechmed,
body[data-theme="dark"] #tor-tbl .leechmed td,
body[data-theme="dark"] #tor-tbl td.leechmed,
body[data-theme="dark"] #tor-tbl a.leechmed,
body[data-theme="dark"] #tor-tbl a.leechmed:visited,
body[data-theme="dark"] #tor-tbl .leechsmall,
body[data-theme="dark"] #tor-tbl a.leechsmall,
body[data-theme="dark"] #tor-tbl a.leechsmall:visited {
  color: #e74236 !important;
  text-shadow: none;
}


body[data-theme="dark"] .left-service-banner,
body[data-theme="dark"] .left-service-banner:visited {
  background: linear-gradient(135deg, #222b33 0%, #151a20 100%);
  border-color: #3f5667;
  color: var(--dt-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 6px rgba(0, 0, 0, 0.35);
}

body[data-theme="dark"] .left-service-banner:hover,
body[data-theme="dark"] .left-service-banner:focus {
  background: linear-gradient(135deg, #2a3640 0%, #1a2229 100%);
  border-color: #6ea6ca;
  color: #ffffff !important;
}

body[data-theme="dark"] .left-service-banner:focus {
  outline-color: #6ea6ca;
}

body[data-theme="dark"] .left-service-banner::before {
  background: rgba(128, 202, 255, 0.11);
}

body[data-theme="dark"] .left-service-banner__text {
  color: var(--dt-text-muted);
}

body[data-theme="dark"] .left-service-banner--vip .left-service-banner__text {
  color: #e5c987;
}

body[data-theme="dark"] .left-service-banner--vk .left-service-banner__text,
body[data-theme="dark"] .left-service-banner--discord .left-service-banner__text {
  color: #b8ccf4;
}

body[data-theme="dark"] .left-service-banner--noads .left-service-banner__text {
  color: #f1b1a9;
}

body[data-theme="dark"] .tp-left-service-tooltip-box {
  border: 1px solid #526272;
  background: linear-gradient(180deg, #27313b 0%, #1b222a 100%);
  color: #eef3f7;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* donate.php */
body[data-theme="dark"] .donate-pay-table,
body[data-theme="dark"] .donate-pay-table .donate-pay-cell {
  background: var(--dt-panel-bg);
}

body[data-theme="dark"] .donate-service-alert {
  border-color: #77603a;
  background: linear-gradient(180deg, rgba(74, 57, 24, 0.94) 0%, rgba(52, 38, 15, 0.98) 100%);
  color: #f3d9a4;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
}

body[data-theme="dark"] .donate-service-alert__badge {
  background: rgba(243, 201, 132, 0.16);
  color: #ffd890;
  box-shadow: inset 0 0 0 1px rgba(255, 219, 157, 0.14);
}

body[data-theme="dark"] .donate-service-alert--success {
  border-color: #467857;
  background: linear-gradient(180deg, rgba(26, 62, 39, 0.94) 0%, rgba(19, 47, 31, 0.98) 100%);
  color: #d8f3dd;
}

body[data-theme="dark"] .donate-service-alert--success .donate-service-alert__badge {
  background: #2d8f59;
  color: #ffffff;
}

body[data-theme="dark"] .donate-service-alert--wait,
body[data-theme="dark"] .donate-service-alert--manual {
  color: #f3d9a4;
}

body[data-theme="dark"] .donate-service-alert--manual {
  border-color: #8a6630;
  background: linear-gradient(180deg, rgba(88, 56, 18, 0.94) 0%, rgba(60, 38, 12, 0.98) 100%);
  color: #ffd8ad;
}

body[data-theme="dark"] .donate-service-alert--manual .donate-service-alert__badge {
  background: #b5721e;
  color: #ffffff;
}

body[data-theme="dark"] .donate-service-alert--fail {
  border-color: #8f534f;
  background: linear-gradient(180deg, rgba(85, 34, 30, 0.95) 0%, rgba(58, 22, 19, 0.98) 100%);
  color: #ffd0cb;
}

body[data-theme="dark"] .donate-service-alert--fail .donate-service-alert__badge {
  background: #a84b45;
  color: #ffffff;
}

body[data-theme="dark"] .donate-pay-card {
  background: linear-gradient(180deg, #21272d 0%, #191f24 100%);
  border-color: #43515e;
  color: var(--dt-text);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

body[data-theme="dark"] .donate-pay-title,
body[data-theme="dark"] .donate-pay-text,
body[data-theme="dark"] .donate-pay-label,
body[data-theme="dark"] .donate-pay-method-title,
body[data-theme="dark"] .donate-pay-note,
body[data-theme="dark"] .donate-pay-note a,
body[data-theme="dark"] .donate-pay-note a:visited,
body[data-theme="dark"] .donate-guest-state__text,
body[data-theme="dark"] .donate-service-login-note {
  color: var(--dt-text);
}

body[data-theme="dark"] .donate-pay-text,
body[data-theme="dark"] .donate-pay-label,
body[data-theme="dark"] .donate-pay-method-note,
body[data-theme="dark"] .donate-pay-note,
body[data-theme="dark"] .donate-pay-note--support,
body[data-theme="dark"] .donate-service-login-note {
  color: var(--dt-text-muted);
}

body[data-theme="dark"] .donate-pay-input,
body[data-theme="dark"] .donate-pay-select {
  background: var(--dt-input-bg);
  border-color: var(--dt-input-border);
  color: var(--dt-text);
}

body[data-theme="dark"] .donate-pay-input::placeholder {
  color: #8a95a1;
}

body[data-theme="dark"] .donate-pay-input[readonly] {
  background: #182028;
  border-color: #4f6273;
  color: #f3f7fb;
}

body[data-theme="dark"] .donate-pay-method-label {
  background: #202730;
  border-color: #46515e;
  color: var(--dt-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body[data-theme="dark"] .donate-pay-method-note {
  color: #aab4bf;
}

body[data-theme="dark"] .donate-pay-method:hover .donate-pay-method-label {
  border-color: #5b6a79;
  background: #26303a;
}

body[data-theme="dark"] .donate-pay-method-input:checked + .donate-pay-method-label {
  border-color: #6ea6ca;
  background: linear-gradient(180deg, rgba(45, 76, 104, 0.95) 0%, rgba(34, 58, 79, 0.98) 100%);
  color: #f4fbff;
  box-shadow: 0 10px 24px rgba(7, 18, 28, 0.28), inset 0 0 0 1px rgba(138, 194, 229, 0.18);
}

body[data-theme="dark"] .donate-pay-method-input:checked + .donate-pay-method-label .donate-pay-method-note {
  color: #d2e9f8;
}

body[data-theme="dark"] .donate-pay-method-input:focus + .donate-pay-method-label,
body[data-theme="dark"] .donate-pay-input:focus,
body[data-theme="dark"] .donate-pay-select:focus,
body[data-theme="dark"] .donate-pay-button:focus {
  box-shadow: 0 0 0 2px rgba(128, 202, 255, 0.24);
}

body[data-theme="dark"] .donate-pay-button {
  border-color: #598db3;
  background: linear-gradient(180deg, #3c6480 0%, #2d4d63 100%);
  color: #f5fbff;
  box-shadow: 0 12px 26px rgba(6, 18, 28, 0.35);
}

body[data-theme="dark"] .donate-pay-button:hover {
  background: linear-gradient(180deg, #477394 0%, #33566e 100%);
  border-color: #74b5e1;
  color: #ffffff !important;
  box-shadow: 0 14px 28px rgba(6, 18, 28, 0.42);
}

body[data-theme="dark"] .donate-pay-button:active {
  box-shadow: 0 8px 18px rgba(6, 18, 28, 0.3);
}

body[data-theme="dark"] .donate-pay-note--global {
  color: #d0d7de;
}

body[data-theme="dark"] .donate-pay-note--support {
  background: #1d242b;
  border-color: #42505d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body[data-theme="dark"] .donate-service-login-note {
  background: rgba(44, 55, 66, 0.82);
}

body[data-theme="dark"] .donate-pay-link,
body[data-theme="dark"] .donate-pay-link:visited {
  color: var(--dt-link);
}

body[data-theme="dark"] .donate-pay-link:hover,
body[data-theme="dark"] .donate-pay-link:focus {
  color: var(--dt-link-hover) !important;
}

/* mytop.php */
body[data-theme="dark"] .mytop-page > h2,
body[data-theme="dark"] .mytop-page > h2 a,
body[data-theme="dark"] .mytop-page > h2 a:visited {
  color: var(--dt-text);
}

body[data-theme="dark"] .mytop-page .tzagol {
  background: linear-gradient(180deg, #33404c 0%, #202831 100%);
  color: #f4f7fa;
  opacity: 1 !important;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
}

body[data-theme="dark"] .mytop-page .tzagol h1,
body[data-theme="dark"] .mytop-page .tzagol span,
body[data-theme="dark"] .mytop-page .tzagol a,
body[data-theme="dark"] .mytop-page .tzagol a:visited {
  color: #f4f7fa;
}

body[data-theme="dark"] .mytop-page .krugl,
body[data-theme="dark"] .mytop-page .krugc,
body[data-theme="dark"] .mytop-page .krugr,
body[data-theme="dark"] .mytop-page .kruglt,
body[data-theme="dark"] .mytop-page .krugct,
body[data-theme="dark"] .mytop-page .krugrt {
  background: #20262d !important;
  color: var(--dt-text) !important;
  box-shadow: inset 0 -1px 0 rgba(87, 103, 118, 0.38);
}

body[data-theme="dark"] .mytop-page .krugl,
body[data-theme="dark"] .mytop-page .kruglt {
  background: linear-gradient(180deg, #24303b 0%, #1b232a 100%) !important;
  color: #f6d995 !important;
}

body[data-theme="dark"] .mytop-page .krugc,
body[data-theme="dark"] .mytop-page .krugct {
  background: linear-gradient(180deg, #252d36 0%, #1d232a 100%) !important;
}

body[data-theme="dark"] .mytop-page .krugr,
body[data-theme="dark"] .mytop-page .krugrt {
  background: linear-gradient(180deg, #21272f 0%, #191f25 100%) !important;
}

body[data-theme="dark"] .mytop-page .krugl h1,
body[data-theme="dark"] .mytop-page .kruglt h1 {
  color: #f6d995 !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.32);
}

body[data-theme="dark"] .mytop-page td,
body[data-theme="dark"] .mytop-page b,
body[data-theme="dark"] .mytop-page i,
body[data-theme="dark"] .mytop-page center,
body[data-theme="dark"] .mytop-page h1,
body[data-theme="dark"] .mytop-page h2 {
  color: var(--dt-text);
}

body[data-theme="dark"] .mytop-page a,
body[data-theme="dark"] .mytop-page a:visited {
  color: var(--dt-link);
}

body[data-theme="dark"] .mytop-page a:hover {
  color: var(--dt-link-hover);
}

body[data-theme="dark"] .mytop-page .seed,
body[data-theme="dark"] .mytop-page a.seed,
body[data-theme="dark"] .mytop-page a.seed:visited,
body[data-theme="dark"] .mytop-page font[color],
body[data-theme="dark"] .mytop-page font[color] b {
  color: var(--dt-success) !important;
}

body[data-theme="dark"] .mytop-page img {
  background: transparent;
}

/* vk_post modal */
body[data-theme="dark"] .vk-modal {
  background: rgba(5, 8, 12, 0.78);
}

body[data-theme="dark"] .vk-modal-content {
  background: linear-gradient(180deg, #242b32 0%, #1b2127 100%);
  color: var(--dt-text);
  border: 1px solid #46515d;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

body[data-theme="dark"] .vk-modal-content h3 {
  color: #f2f6fa;
}

body[data-theme="dark"] .vk-hypervisor-toggle {
  color: var(--dt-text-muted);
}

body[data-theme="dark"] .vk-hypervisor-toggle input {
  accent-color: #5ea9da;
}

body[data-theme="dark"] .time-btn {
  border-color: #53606c;
  background: linear-gradient(180deg, #2b343d 0%, #222930 100%);
  color: var(--dt-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-theme="dark"] .time-btn:hover,
body[data-theme="dark"] .time-btn:focus {
  background: linear-gradient(180deg, #36414c 0%, #29323b 100%);
  border-color: #72afd3;
  color: #ffffff;
}

body[data-theme="dark"] .time-btn:active {
  background: linear-gradient(180deg, #26303a 0%, #1d252d 100%);
}

body[data-theme="dark"] #manual-time {
  background: #11161b;
  border: 1px solid #55616d;
  color: var(--dt-text);
}

body[data-theme="dark"] #manual-time::placeholder {
  color: #8d98a3;
}

body[data-theme="dark"] #manual-time:focus {
  border-color: #72afd3;
  box-shadow: 0 0 0 2px rgba(114, 175, 211, 0.22);
  outline: none;
}

body[data-theme="dark"] .vk-modal-actions button {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] #confirm-time {
  background: linear-gradient(180deg, #2f74c8 0%, #1858a6 100%);
  color: #ffffff;
}

body[data-theme="dark"] #confirm-time:hover {
  background: linear-gradient(180deg, #3b86df 0%, #2165b7 100%);
}

body[data-theme="dark"] #cancel-time {
  background: linear-gradient(180deg, #ca4958 0%, #a92f3c 100%);
  color: #ffffff;
}

body[data-theme="dark"] #cancel-time:hover {
  background: linear-gradient(180deg, #dd5d6b 0%, #b83947 100%);
}

body[data-theme="dark"] #logo .logo-image-light {
  display: none;
}

body[data-theme="dark"] #logo .logo-image-dark {
  display: block;
}
