/*
  K2 Modern Overrides
  Goal: Fix bootstrap-white background + inconsistent typography/colors without rewriting legacy CSS.
*/

:root {
  --k2-bg0: #0f0f14;
  --k2-bg1: #171722;
  --k2-surface: rgba(25, 25, 34, 0.92);
  --k2-surface-2: rgba(35, 35, 48, 0.92);
  --k2-border: rgba(255, 255, 255, 0.10);
  --k2-text: #e7e7ea;
  --k2-muted: rgba(231, 231, 234, 0.72);
  --k2-muted-2: rgba(231, 231, 234, 0.55);
  --k2-accent: #d81b1b;
  --k2-accent-2: #ffb000;
  --k2-font: "IBM Plex Sans", Roboto, "Open Sans", Arial, sans-serif;
  --k2-display: "Space Grotesk", "Roboto Condensed", Roboto, Arial, sans-serif;
  --k2-radius: 14px;
  --k2-radius-sm: 10px;
  --k2-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

html {
  background-color: var(--k2-bg0);
}

body {
  background-color: var(--k2-bg0);
  color: var(--k2-text);
  font-family: var(--k2-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Subtle scene background; doesn't fight page-specific backgrounds. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, rgba(216, 27, 27, 0.08), rgba(49, 162, 166, 0.045) 42%, rgba(255, 176, 0, 0.055));
  opacity: 0.78;
}

/* Make focus states visible again (legacy CSS disables outlines globally). */
:focus-visible {
  outline: 2px solid rgba(255, 176, 0, 0.85) !important;
  outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--k2-display);
  letter-spacing: 0.04em;
}

/* Improve contrast of legacy muted areas. */
.entry-content {
  color: var(--k2-muted);
  border-radius: var(--k2-radius);
  border-color: rgba(0, 0, 0, 0.65);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: var(--k2-text);
}

.main-content-title h1,
.main-content-title h2,
.main-content-title h3 {
  color: var(--k2-text);
}

/* Form controls */
.entry-content input[type="text"],
.entry-content input[type="password"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content input[type="url"],
.entry-content select,
.entry-content textarea,
.entry-content .form-control,
.form-control {
  color: var(--k2-text) !important;
  background-color: rgba(20, 20, 28, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: var(--k2-radius-sm) !important;
}

.entry-content input::placeholder,
.form-control::placeholder {
  color: rgba(231, 231, 234, 0.45);
}

.entry-content select option {
  background: #0f0f14;
  color: var(--k2-text);
}

/* Buttons: legacy CSS forces orange submit buttons with !important in .entry-content.
   Keep orange for generic submits, but respect .btn_red as "danger/primary" action. */
.entry-content input[type="submit"].btn_red,
.entry-content input[type="button"].btn_red,
.entry-content button.btn_red,
.entry-content .btn_red {
  background-color: var(--k2-accent) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 55%),
    radial-gradient(120% 120% at 20% 10%, rgba(255, 176, 0, 0.20), transparent 55%);
  box-shadow: 0 10px 26px rgba(216, 27, 27, 0.22);
  border: 1px solid rgba(0, 0, 0, 0.65) !important;
  color: #fff !important;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.entry-content input[type="submit"].btn_red:hover,
.entry-content input[type="button"].btn_red:hover,
.entry-content button.btn_red:hover,
.entry-content .btn_red:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  transition: transform 120ms ease, filter 120ms ease;
}

/* Tables used in UserCP forms */
table.accountinfo th {
  color: var(--k2-text);
}

table.accountinfo td {
  color: var(--k2-muted);
}

/* Reduce "washed out" look in bright containers */
.container,
.container-fluid {
  color: inherit;
}

/* --------------------------------------------------------------------------
   Site-wide high quality panel layer
   -------------------------------------------------------------------------- */

.content-wrapper {
  padding-top: 18px;
  padding-bottom: 28px;
}

.main-wrapper {
  max-width: 1328px;
}

.main-content {
  min-width: 0;
}

.main-content-title {
  margin: 0 0 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(31, 36, 52, 0.96), rgba(19, 22, 32, 0.98));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.main-content-title h1,
.main-content-title h2,
.main-content-title h3 {
  margin: 0;
  color: #f2f5fb;
  font-size: clamp(22px, 2.1vw, 34px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}

.panel,
.entry-content,
.log-panel,
.forum-panel,
.cms-panel,
.wallet-card,
.wallet-hero-panel,
.ko-card,
.panel-card {
  color: #e8edf7;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(24, 29, 42, 0.96), rgba(15, 18, 27, 0.98)) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
}

.entry-content,
.log-panel,
.forum-panel,
.cms-panel {
  padding: 18px !important;
}

.panel-heading,
.panel .panel-heading {
  color: #f2f5fb !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  background: rgba(255, 255, 255, 0.035) !important;
}

.panel-body {
  color: #d6deeb;
}

.entry-content p,
.panel p,
.log-panel p {
  color: #c7cfdd;
  line-height: 1.55;
}

.entry-content a,
.panel a {
  color: #f2ca66;
}

.entry-content a:hover,
.panel a:hover {
  color: #fff;
}

.btn,
.entry-content input[type="submit"],
.entry-content input[type="button"],
.entry-content button,
.button-small,
.group-button {
  min-height: 38px;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: linear-gradient(180deg, rgba(48, 53, 68, 0.98), rgba(31, 35, 48, 0.98)) !important;
  color: #eef3fb !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.065) !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-shadow: none !important;
}

.btn:hover,
.entry-content input[type="submit"]:hover,
.entry-content input[type="button"]:hover,
.entry-content button:hover,
.button-small:hover,
.group-button:hover {
  color: #fff !important;
  border-color: rgba(242, 202, 102, 0.38) !important;
  transform: translateY(-1px);
}

.btn-primary,
.entry-content input[type="submit"],
.entry-content .btn_red,
.btn_red {
  background: linear-gradient(180deg, #e64b42, #b91818) !important;
  border-color: rgba(255, 113, 103, 0.35) !important;
  color: #fff !important;
}

.btn-default {
  background: linear-gradient(180deg, rgba(47, 52, 66, 0.98), rgba(30, 34, 46, 0.98)) !important;
}

.btn-sm {
  min-height: 32px;
  padding: 6px 12px !important;
}

.form-control,
.entry-content input[type="text"],
.entry-content input[type="password"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content input[type="url"],
.entry-content input[type="number"],
.entry-content input[type="date"],
.entry-content select,
.entry-content textarea,
input.register,
select.register {
  min-height: 40px;
  color: #eef3fb !important;
  background: rgba(10, 13, 20, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 8px 18px rgba(0, 0, 0, 0.13) !important;
}

.form-control:focus,
.entry-content input:focus,
.entry-content select:focus,
.entry-content textarea:focus,
input.register:focus,
select.register:focus {
  border-color: rgba(242, 202, 102, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(242, 202, 102, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

input::placeholder,
textarea::placeholder,
.form-control::placeholder {
  color: #7f8a9f !important;
}

.table-responsive,
.k2-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.main-content table:not(.no-k2-modern),
.entry-content table:not(.no-k2-modern),
.log-panel table:not(.no-k2-modern),
#prizes_table,
.rankTable,
.ranking,
.tb_ranking,
table.accountinfo {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  color: #e7ecf6;
  background: #10141e;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  overflow: hidden;
}

.main-content table:not(.no-k2-modern) thead th,
.entry-content table:not(.no-k2-modern) thead th,
.log-panel table:not(.no-k2-modern) thead th,
#prizes_table thead th,
.rankTable thead th,
.ranking thead th,
.tb_ranking thead th,
table.accountinfo th {
  color: #f5f7fb !important;
  background: #202638 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 11px 12px !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.main-content table:not(.no-k2-modern) td,
.entry-content table:not(.no-k2-modern) td,
.log-panel table:not(.no-k2-modern) td,
#prizes_table td,
.rankTable td,
.ranking td,
.tb_ranking td,
table.accountinfo td {
  color: #dce3ef !important;
  background: rgba(17, 21, 31, 0.96) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.065) !important;
  padding: 10px 12px !important;
  line-height: 1.45;
  vertical-align: middle;
}

.main-content table:not(.no-k2-modern) tbody tr:nth-child(even) td,
.entry-content table:not(.no-k2-modern) tbody tr:nth-child(even) td,
.log-panel table:not(.no-k2-modern) tbody tr:nth-child(even) td,
#prizes_table tbody tr:nth-child(even) td,
.rankTable tbody tr:nth-child(even) td,
.ranking tbody tr:nth-child(even) td,
.tb_ranking tbody tr:nth-child(even) td {
  background: rgba(22, 27, 39, 0.98) !important;
}

.main-content table:not(.no-k2-modern) tbody tr:hover td,
.entry-content table:not(.no-k2-modern) tbody tr:hover td,
.log-panel table:not(.no-k2-modern) tbody tr:hover td,
#prizes_table tbody tr:hover td,
.rankTable tbody tr:hover td,
.ranking tbody tr:hover td,
.tb_ranking tbody tr:hover td {
  background: rgba(34, 41, 58, 0.98) !important;
}

.main-content table img,
.entry-content table img,
.log-panel table img {
  max-width: 48px;
  height: auto;
}

.rank-icon,
.item-icon,
.k2-item-icon {
  border-radius: 10px;
}

.pagination,
.log-pagination {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination li a,
.pagination a,
.log-page-btn {
  border-radius: 999px !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  color: #e9edf7 !important;
}

.pagination li.active a,
.pagination li a:hover,
.pagination a:hover {
  background: linear-gradient(180deg, #e64b42, #b91818) !important;
  color: #fff !important;
}

/* Shared audit cards for every page that consumes Ajax/KoLogAudit.php. */
.k2audit-section {
  color: #e9edf7;
}

.k2audit-section > h4,
.k2audit-section > .log-note {
  display: none;
}

.k2audit-card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.k2audit-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid #6f7d96;
  border-radius: 18px;
  background: #151a27;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  content-visibility: auto;
  contain-intrinsic-size: 180px;
}

.k2audit-card.ok { border-left-color: #43ca7f; }
.k2audit-card.bad { border-left-color: #e35f62; }

.k2audit-card-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #1c2232;
  color: #b7c0d0;
  font-size: 11px;
  font-weight: 800;
}

.k2audit-card-top .fa {
  color: #f2ca66;
}

.k2audit-card-body {
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.k2audit-card-item,
.k2audit-card-info {
  min-width: 0;
}

.k2audit-card-info h5 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

.k2audit-card-actors {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
  color: #cbd3e1;
  font-size: 12px;
}

.k2audit-card-actors span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.k2audit-card-actors b {
  color: #f2ca66;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.k2audit-type-badge,
.k2audit-status,
.k2audit-small-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  color: #dfe6f2;
  font-size: 11px;
  font-weight: 900;
}

.k2audit-type-badge {
  color: #ffe1a0;
  background: rgba(215, 169, 74, 0.13);
  border-color: rgba(215, 169, 74, 0.28);
}

.k2audit-status.ok {
  color: #78e6a8;
  background: rgba(66, 199, 125, 0.14);
  border-color: rgba(66, 199, 125, 0.28);
}

.k2audit-status.bad {
  color: #ff9e9e;
  background: rgba(225, 95, 95, 0.14);
  border-color: rgba(225, 95, 95, 0.28);
}

.k2audit-status.warn {
  color: #f2ca66;
  background: rgba(242, 202, 102, 0.12);
  border-color: rgba(242, 202, 102, 0.28);
}

.k2audit-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  max-width: 100%;
  min-height: 58px;
  padding: 7px 10px 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #f2f5fb;
  box-sizing: border-box;
  vertical-align: middle;
}

.k2audit-item-chip img {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
  background: #080a10;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.k2audit-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.18;
}

.k2audit-item-text strong {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  white-space: normal;
  word-break: break-word;
}

.k2audit-item-text em,
.k2audit-item-text small {
  color: #aeb8ca;
  font-size: 11px;
  font-style: normal;
  margin-top: 3px;
  word-break: break-word;
}

.k2audit-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.k2audit-metric {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  background: #111722;
}

.k2audit-metric > span {
  display: block;
  margin-bottom: 6px;
  color: #9ca8ba;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.k2audit-metric > strong {
  display: block;
  color: #eef3fb;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
  word-break: break-word;
}

.k2audit-rate {
  position: relative;
  height: 24px;
  border-radius: 999px;
  overflow: hidden;
  background: #090d14;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.k2audit-rate i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #d7a94a, #72d48f);
  opacity: 0.86;
}

.k2audit-rate b {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  align-items: center;
  padding-left: 9px;
  color: #fff;
  font-size: 12px;
}

.k2audit-rng {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.k2audit-rng .rng-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 38px;
  overflow: visible;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  background: #0b0f17;
}

.k2audit-rng span {
  color: #8f9bad;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.k2audit-rng b {
  min-width: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  text-align: right;
}

.k2audit-rng.rng-ok .rng-line:last-child b {
  color: #75f0a0;
}

.k2audit-rng.rng-bad .rng-line:first-child b {
  color: #ff8e8e;
}

.k2audit-card.type-log-upgrade .k2audit-metrics {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  justify-content: start;
  max-width: 920px;
}

.k2audit-card.type-log-upgrade .k2audit-metric {
  min-height: 0;
}

.k2audit-card.type-log-upgrade .k2audit-material-list {
  max-width: 100%;
}

.k2audit-card.type-log-upgrade .k2audit-material-list .k2audit-item-chip {
  width: 100%;
  min-width: 170px;
  max-width: 260px;
  min-height: 46px;
}

.k2audit-card.type-log-upgrade .k2audit-material-list .k2audit-item-text strong {
  white-space: normal;
  word-break: normal;
  overflow: visible;
  text-overflow: clip;
}

@media (prefers-reduced-motion: reduce) {
  .k2audit-card,
  .main-content *,
  .entry-content * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.k2audit-upgrade-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.k2audit-upgrade-levels {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.k2audit-upgrade-levels span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #202638;
  color: #dfe6f5;
  font-size: 12px;
  font-weight: 900;
}

.k2audit-upgrade-levels span.is-ok {
  color: #76e4a7;
  background: rgba(66, 199, 125, 0.14);
  border: 1px solid rgba(66, 199, 125, 0.24);
}

.k2audit-upgrade-levels span.is-bad {
  color: #ff9a9a;
  background: rgba(225, 95, 95, 0.14);
  border: 1px solid rgba(225, 95, 95, 0.24);
}

.k2audit-failure-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #ffb1b1;
  background: rgba(225, 95, 95, 0.12);
  border: 1px solid rgba(225, 95, 95, 0.25);
  font-size: 12px;
  font-weight: 900;
}

.k2audit-material-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
}

.k2audit-trade-assets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.k2audit-coin-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 12px;
  color: #ffe3a6;
  background: rgba(205, 157, 65, 0.12);
  border: 1px solid rgba(205, 157, 65, 0.28);
  font-size: 12px;
  font-weight: 900;
}

.k2audit-material-list .k2audit-item-chip {
  width: auto;
  max-width: 230px;
  min-height: 52px;
  padding-right: 8px;
  border-radius: 14px;
}

.k2audit-material-list .k2audit-item-chip img {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
}

.k2audit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.k2audit-badge.yes {
  color: #74e5a5;
  background: rgba(71, 201, 125, 0.12);
}

.k2audit-badge.no {
  color: #aeb7c8;
  background: rgba(255, 255, 255, 0.055);
}

.k2audit-card-foot {
  margin-top: 9px;
  color: #8d99ad;
  font-size: 11px;
}

.k2audit-card-foot code {
  color: #d2dbea;
  background: #0b0f17;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  padding: 3px 6px;
}

.k2audit-trust-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid rgba(215, 169, 74, 0.35);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(215, 169, 74, 0.16), rgba(24, 29, 42, 0.94));
  color: #dbe2ee;
}

.k2audit-trust-note strong {
  flex: 0 0 auto;
  color: #f2ca66;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.k2audit-trust-note span {
  color: #c8d0dd;
  font-size: 12px;
  line-height: 1.5;
}

.log-empty,
.log-loading {
  color: #b9c2d1;
  background: #111620;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
}

@media (max-width: 900px) {
  .content-wrapper {
    padding-top: 10px;
  }

  .main-content-title {
    padding: 14px;
  }

  .entry-content,
  .log-panel,
  .forum-panel,
  .cms-panel {
    padding: 14px !important;
  }

  .k2audit-card-body {
    grid-template-columns: 1fr;
  }

  .k2audit-rng {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .main-content table:not(.no-k2-modern),
  .entry-content table:not(.no-k2-modern),
  .log-panel table:not(.no-k2-modern),
  #prizes_table,
  .rankTable,
  .ranking,
  .tb_ranking,
  table.accountinfo {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .btn,
  .entry-content input[type="submit"],
  .entry-content input[type="button"],
  .entry-content button {
    max-width: 100%;
    white-space: normal;
  }
}
