:root {
  --bg: #030406;
  --bg-2: #05070a;
  --panel: rgba(255, 255, 255, 0.028);
  --panel-2: rgba(255, 255, 255, 0.04);
  --panel-3: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);

  --text: #f3f5f8;
  --muted: #97a0ad;
  --muted-2: #6f7885;

  --accent: #6f8cff;
  --accent-soft: rgba(111, 140, 255, 0.16);

  --tx-bg: rgba(34, 197, 94, 0.053);
  --tx-border: rgba(34, 197, 94, 0.18);
  --tx-text: #d9ffe6;

  --cid-bg: rgba(56, 191, 248, 0.037);
  --cid-border: rgba(56, 189, 248, 0.18);
  --cid-text: #dff6ff;

  --discord-bg: rgba(124, 139, 255, 0.059);
  --discord-border: rgba(124, 140, 255, 0.2);
  --discord-text: #e5e9ff;

  --license-bg: rgba(245, 159, 11, 0.075);
  --license-border: rgba(245, 158, 11, 0.18);
  --license-text: #fff0d8;

  --blur: blur(18px);
  --shadow-sm: 0 6px 16px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(111, 140, 255, 0.08), transparent 22%),
    radial-gradient(circle at bottom right, rgba(70, 110, 255, 0.05), transparent 18%),
    linear-gradient(180deg, #020305 0%, #04060a 48%, #020305 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.2;
  mask-image: radial-gradient(circle at center, black 36%, transparent 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

/* layout */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  padding: 18px;
  overflow: hidden;
  position: relative;
}

/* topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.topbar-kicker {
  color: var(--muted-2);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 6px;
}

.topbar h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.topbar-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.primary-button {
  height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.025);
  color: #f5f7fb;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: 0.16s ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  border-color: rgba(111, 140, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(111, 140, 255, 0.14), rgba(111, 140, 255, 0.05)),
    rgba(255, 255, 255, 0.025);
}

/* sidebar */
.sidebar {
  width: 255px;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.34);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  padding: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.025);
}

.sidebar-brand {
  padding: 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.sidebar-brand-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.sidebar-brand-sub {
  color: var(--muted);
  margin-top: 4px;
  font-size: 12px;
}

.sidebar-block {
  flex: 1;
  overflow: hidden;
}

.sidebar-title {
  color: #1a9ea3;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 8px 0 8px;
  padding-left: 2px;
}

.rightbar {
  width: 360px;
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.34);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  padding: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.025);
}

.rightbar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.rightbar-clear-btn {
  height: 30px;
  padding: 0 10px;
  font-size: 11px;
}

.rightbar-search-box {
  margin-bottom: 12px;
}

.rightbar-search-box input {
  width: 100%;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.028);
  color: white;
  padding: 0 12px;
  outline: none;
  font-size: 12px;
  transition: 0.16s ease;
}

.rightbar-search-box input::placeholder {
  color: #707986;
}

.rightbar-search-box input:focus {
  border-color: rgba(111, 140, 255, 0.34);
  box-shadow: 0 0 0 3px rgba(111, 140, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.rightbar-results {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
}

.rightbar-results::-webkit-scrollbar {
  width: 6px;
}

.rightbar-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}



.sidebar-categories::-webkit-scrollbar,
.log-column-body::-webkit-scrollbar,
.columns-wrap::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.sidebar-categories::-webkit-scrollbar-thumb,
.log-column-body::-webkit-scrollbar-thumb,
.columns-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 5px 0 6px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-action-button {
  width: 100%;
  justify-content: flex-start;
}

.sidebar-categories {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  max-height: calc(100vh - 220px);
  padding-right: 2px;
}

.sidebar-category {
  width: 100%;
  text-align: left;
  padding: 3px 2px;
  border: 0;
  background: transparent;
  color: #7d8694;
  cursor: pointer;
  transition: color 0.16s ease, opacity 0.16s ease;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}

.sidebar-category:hover {
  color: #c9d1db;
  transform: none;
}

.sidebar-category.active {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #ffffff;
}

.sidebar-user {
  margin-top: 12px;
  padding: 13px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-user-name {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 13px;
}

.sidebar-logout {
  color: var(--muted);
  font-size: 12px;
}

.sidebar-logout:hover {
  color: white;
}

.sidebar-brand {
  width: 100%;
  padding: 14px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.refresh-brand-button {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  color: inherit;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.refresh-brand-button:hover {
  transform: translateY(-1px);
  border-color: rgba(111, 140, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.02);
}

.refresh-brand-button:active {
  transform: translateY(0);
}

.sidebar-brand-content {
  min-width: 0;
}

.sidebar-brand-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.sidebar-brand-sub {
  color: var(--muted);
  margin-top: 4px;
  font-size: 12px;
}

.sidebar-brand-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-left: 12px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(circle at center, rgba(111, 140, 255, 0.14), transparent 70%);
  overflow: hidden;
}

.sidebar-brand-icon svg {
  width: 20px;
  height: 20px;
}

/* login */
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 26px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.012);
  border: 1px solid var(--border);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-md);
}

.login-label {
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #6576ff, #4e5df0);
  color: white;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(78, 93, 240, 0.22);
}

/* filters */
.filters-panel {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.012);
  border: 1px solid var(--border);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm);
}

.filters-panel input,
.filters-panel select {
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.028);
  color: white;
  padding: 0 11px;
  outline: none;
  font-size: 12px;
  transition: 0.16s ease;
}

.filters-panel input::placeholder {
  color: #707986;
}

.filters-panel input:focus,
.filters-panel select:focus {
  border-color: rgba(111, 140, 255, 0.34);
  box-shadow: 0 0 0 3px rgba(111, 140, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.columns-wrap {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 400px;
  justify-content: start;
  align-content: start;
  gap: 12px;
  overflow-x: auto;
  height: calc(100vh - 165px);
  padding-bottom: 4px;
}

.log-column {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm);
    max-width: 500px;
}

.log-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.01);
}

.log-column-header h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.log-column-header span {
  color: var(--muted);
  font-size: 11px;
}

.log-column-body {
  overflow-y: auto;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.empty-state {
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  border: 1px dashed rgba(255, 255, 255, 0.05);
}

.log-card-info {
  border-radius: 4px;
  border-left: 3px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  border-right: 1px solid rgba(255, 255, 255, 0.045);
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.008);
  padding: 11px;
  box-shadow: var(--shadow-sm);
  transition: 0.16s ease;
}

.log-card-info:hover {
  transform: translateY(-1px);
  border-top-color: rgba(255, 255, 255, 0.08);
  border-right-color: rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.016)),
    rgba(255, 255, 255, 0.01);
}

.log-card-info.color-default {
  border-left-color: rgba(255, 255, 255, 0.12);
}

.log-card-info.color-red {
  border-left-color: #ff6b6b;
}

.log-card-info.color-green {
  border-left-color: #7ee787;
}

.log-card-info.color-blue {
  border-left-color: #79c1ff;
}

.log-card-info.color-purple {
  border-left-color: #d2a8ff;
}

.log-card-info.color-yellow {
  border-left-color: #f2cb60;
}

.log-card-info.color-orange {
  border-left-color: #ffa557;
}

.log-card-info.color-default {
  border-left-color: rgba(255, 255, 255, 0.12);
}

.log-card-info.color-red {
  border-left-color: #ff6b6b;
}

.log-card-info.color-green {
  border-left-color: #7ee787;
}

.log-card-info.color-blue {
  border-left-color: #79c1ff;
}

.log-card-info.color-purple {
  border-left-color: #d2a8ff;
}

.log-card-info.color-yellow {
  border-left-color: #f2cb60;
}

.log-card-info.color-orange {
  border-left-color: #ffa557;
}

.log-card {
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.008);
  border: 1px solid rgba(255, 255, 255, 0.045);
  padding: 7px;
  box-shadow: var(--shadow-sm);
  transition: 0.16s ease;

}

.log-card-info:hover {
  transform: translateY(-1px);
  border-top-color: rgba(255, 255, 255, 0.08);
  border-right-color: rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.016)),
    rgba(255, 255, 255, 0.01);
}
.log-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.log-card-id {
  color: #aab2be7b;
}

.log-card-date {
  color: #818b98;
}

.log-card-title {
  margin-top: 4px;
  margin-bottom: 3px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.96);
}



.log-card-message {
  color: #2da8b1c7;
  font-size: 12.5px;
  line-height: 1.32;
  margin: 0 0 8px;
  word-break: break-word;
}

.log-card-message.color-default {
  color: #ddedee6b;
}

.log-card-message.color-red {
  color: #ff6b6bad;
}

.log-card-message.color-green {
  color: #7ee7879b;
}

.log-card-message.color-blue {
  color: #79c1ff9f;
}

.log-card-message.color-purple {
  color: #d2a8ffa7;
}

.log-card-message.color-yellow {
  color: #f2cb60b5;
}

.log-card-message.color-orange {
  color: #ffa557b0;
}

.log-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.meta-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 15px;
  padding: 0 5px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  font-size: 10px;
  white-space: nowrap;
  max-width: 100%;
  min-width: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  text-align: left;
  opacity: 0.55;
  filter: saturate(0.7);
  transition: opacity 0.18s ease, filter 0.18s ease, transform 0.14s ease;
}

.log-card-info:hover .meta-row {
  opacity: 1;
  filter: saturate(1);
}

.meta-row:hover {
  opacity: 1;
  filter: saturate(1.1);
}

.meta-row:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.meta-row:active {
  transform: translateY(0);
}

.meta-row.copied {
  border-color: rgba(255, 255, 255, 0.22);
  filter: brightness(1.15);
}

.meta-label {
  display: none;
}

.meta-value {
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.meta-row-player {
  background: var(--tx-bg);
  border-color: var(--tx-border);
  color: var(--tx-text);
}

.meta-row-citizen {
  background: var(--cid-bg);
  border-color: var(--cid-border);
  color: var(--cid-text);
}

.meta-row-discord {
  background: var(--discord-bg);
  border-color: var(--discord-border);
  color: var(--discord-text);
}

.meta-row-license {
  background: var(--license-bg);
  border-color: var(--license-border);
  color: var(--license-text);
}



/* responsive */
@media (max-width: 1200px) {
  .filters-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topbar h1 {
    font-size: 28px;
  }
}

@media (max-width: 860px) {
  .app-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .columns-wrap {
    height: auto;
    grid-auto-columns: minmax(280px, 90vw);
  }

  .filters-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .main-content {
    padding: 12px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar h1 {
    font-size: 24px;
  }

  .filters-panel {
    grid-template-columns: 1fr;
  }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.dashboard-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px;
}

.dashboard-card.large {
  grid-column: span 2;
}

.dashboard-title {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 8px;
}

.dashboard-value {
  font-size: 26px;
  font-weight: 700;
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
}

.bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bar-fill {
  width: 100%;
  background: #4f46e5;
  border-radius: 4px;
}

.bar-label {
  font-size: 10px;
  opacity: 0.6;
}

.list-row {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.bar-bg {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
}

.bar-inner {
  height: 100%;
  background: #22c55e;
  border-radius: 4px;
}

.feed {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feed-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.online-users-grid {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.online-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}

.online-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.12);
}

.online-user-meta {
  min-width: 0;
}

.online-user-name {
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.online-user-sub {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
  word-break: break-word;
}