* {
  box-sizing: border-box;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

:root {
  --content-max: 1800px;
}

html {
  font-size: clamp(12px, 0.26vw + 9px, 13.5px);
}

body {
  margin: 0;
  background: #0b0b0b;
  color: #f5f5f5;
  min-height: 100vh;
}

.layout {
  min-height: 100vh;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(12, 12, 12, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f8fafc;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-menu {
  position: relative;
}

.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px;
  min-width: 160px;
  display: grid;
  gap: 6px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.dropdown-item {
  width: 100%;
  text-align: left;
  background: #161616;
  color: #f5f5f5;
  white-space: nowrap;
}

.dropdown-item:hover {
  transform: translateY(-1px);
}

.admin-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-tabs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding-bottom: 10px;
}

.tab-button {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-weight: 600;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.tab-button.active {
  color: #f8fafc;
  border-color: #38bdf8;
}

.admin-panel-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: start;
}

.user-list-pane {
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 12px;
  height: calc(100vh - 220px);
  overflow: hidden;
  align-content: start;
}

.user-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
  justify-content: flex-start;
}

.user-list-item {
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  color: #f8fafc;
  display: inline-flex;
  gap: 4px;
  text-align: left;
  cursor: pointer;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.user-list-item.active {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.user-detail {
  display: grid;
  gap: 12px;
}

.subnav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  padding-bottom: 10px;
}

.subnav .tab-button {
  font-size: 0.95rem;
}

.sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.session-card {
  background: #0b1120;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 8px;
}

.session-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  background: transparent;
  border: none;
  color: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 6, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 24px;
}

.modal {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  width: min(640px, 94vw);
  max-height: 80vh;
  overflow: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-body {
  display: grid;
  gap: 8px;
}

.code-block {
  max-height: 320px;
  overflow: auto;
  background: #101010;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

.session-body {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.configs-list {
  display: grid;
  gap: 10px;
}

.config-row {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s, border-color 0.15s;
}
.config-row:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.13);
}

.config-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
  gap: 16px;
}

.config-body {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.config-text {
  width: 100%;
  min-height: 160px;
  background: #101010;
  color: #e5e5e5;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.players-list {
  display: grid;
  gap: 10px;
}

.player-row {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 10px;
  background: #0b1120;
  border: 1px solid #1f2937;
}

.invites-list {
  display: grid;
  gap: 10px;
}

.invite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s, border-color 0.15s;
}
.invite-row:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.13);
}
.invite-row .invite-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  color: #e5e5e5;
  letter-spacing: 0.04em;
}
.invite-row .invite-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font-size: 0.8rem;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.profile-banner {
  width: 100%;
  height: 116px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(24, 24, 24, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  position: relative;
  overflow: visible;
}

.profile-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #0b1120;
  border: 2px solid rgba(56, 189, 248, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #38bdf8;
  font-weight: 700;
  font-size: 1.4rem;
  transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.profile-avatar[style*="cursor: pointer"]:hover,
.profile-avatar[style*="cursor:pointer"]:hover {
  border-color: rgba(56, 189, 248, 1);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
  opacity: 0.85;
}

.profile-avatar-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  z-index: 1;
}

.profile-badge-strip {
  display: flex;
  align-items: flex-end;
  gap: clamp(4px, calc(14px - (var(--badge-count, 1) * 0.4px)), 12px);
  flex-wrap: nowrap;
  overflow: visible;
  max-width: calc(100% - 90px);
  padding-bottom: 2px;
}

.profile-badge-icon {
  width: clamp(32px, calc(56px - (var(--badge-count, 1) * 1.8px)), 48px);
  height: clamp(32px, calc(56px - (var(--badge-count, 1) * 1.8px)), 48px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 70%),
              linear-gradient(135deg, var(--badge-color, #f5f5f5), var(--badge-color-dark, #a3a3a3));
  border: clamp(2px, calc(3px - (var(--badge-count, 1) * 0.08px)), 2.5px) solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  font-size: clamp(0.8rem, calc(1.6rem - (var(--badge-count, 1) * 0.08rem)), 1.4rem);
  line-height: 1;
  cursor: default;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.profile-badge-icon:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.profile-badge-icon > span {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  color: rgba(255, 255, 255, 0.95);
  position: relative;
  z-index: 1;
}

.profile-badge-icon::after {
  content: attr(data-badge-title);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  background: rgba(8, 8, 8, 0.97);
  color: var(--badge-color, #f5f5f5);
  border: 1px solid var(--badge-color, #f5f5f5);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.78rem;
  line-height: 1.4;
  max-width: 240px;
  min-width: 100px;
  width: max-content;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.profile-badge-icon:hover::after {
  opacity: 1;
  visibility: visible;
}

.profile-badge-icon-img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)) brightness(1.1);
  position: relative;
  z-index: 1;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card {
  gap: 12px;
}

.profile-page-stack {
  display: grid;
  gap: 14px;
}

.profile-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.4s ease;
}

.profile-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.55) 0%,
    rgba(8, 8, 8, 0.72) 40%,
    rgba(8, 8, 8, 0.90) 100%
  );
}

.profile-page .page {
  position: relative;
  z-index: 1;
}

.profile-hero-card.no-banner-strip .profile-banner {
  display: none;
}

.profile-content-wrap {
  width: 100%;
}

.profile-main-layout {
  display: grid;
  grid-template-columns: minmax(280px, 370px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.profile-stats-column {
  display: grid;
  gap: 12px;
}

.profile-hero-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 18, 0.92);
}

.profile-page .profile-hero-card {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-upload-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  z-index: 2;
}

.profile-upload-btn:hover {
  transform: scale(1.08);
  background: rgba(0, 0, 0, 0.82);
}

.stats-hover-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  justify-self: start;
}

.stats-hover-trigger {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.stats-hover-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  width: min(760px, 86vw);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.stats-hover-trigger:hover + .stats-hover-panel,
.stats-hover-trigger:focus + .stats-hover-panel,
.stats-hover-trigger:focus-visible + .stats-hover-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.avatar-upload-btn {
  top: auto;
  bottom: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-width: 2px;
  font-size: 0.85rem;
}

.profile-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e5e5e5;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag.admin {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

.tag.staff {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.tag.public {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.tag.owned {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

.tag.premium {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
}

.logs-list {
  display: grid;
  gap: 12px;
}
.log-group {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 10px;
}
.log-group-toggle {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 10px;
}

.log-group-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.log-group-title {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
}

.console-log-container {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
}

.log-entry {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.log-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.log-initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  font-weight: 700;
}

.log-title {
  display: grid;
  gap: 2px;
}

.log-event {
  font-weight: 600;
  color: #e2e8f0;
}

.log-level {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.log-level-info {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.log-level-warn {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.log-level-error {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

.log-code {
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 10px 12px;
  color: #94a3b8;
  font-size: 0.85rem;
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.logs-terminal {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px;
  max-height: 600px;
  overflow-y: auto;
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1.5;
}

.logs-terminal-line {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.logs-terminal-line:last-child {
  border-bottom: none;
}

.log-timestamp {
  color: #64748b;
  font-size: 0.8rem;
  white-space: nowrap;
}

.log-event-type {
  color: #38bdf8;
  font-weight: 600;
  white-space: nowrap;
  min-width: 120px;
}

.log-details {
  color: #94a3b8;
  word-break: break-word;
}

@media (max-width: 900px) {
  .admin-panel-grid {
    grid-template-columns: 1fr;
  }

  .user-list-pane {
    height: auto;
    max-height: 320px;
  }
}

.page {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
  padding: 24px 21px 36px;
  animation: pageFade 0.6s ease-out;
  will-change: opacity;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 48px;
  padding: 56px 8vw;
  align-items: center;
  animation: pageFade 0.6s ease-out;
  width: min(var(--content-max), 100%);
  margin: 0 auto;
}

.auth-panel {
  display: grid;
  gap: 12px;
  max-width: 520px;
}

.auth-brand {
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #94a3b8;
}


.auth-card {
  width: 100%;
  max-width: 420px;
  justify-self: end;
  gap: 10px;
}

@media (min-width: 1600px) {
  .auth-page {
    gap: 64px;
    padding: 72px 6vw;
  }

  .auth-panel {
    max-width: 680px;
  }

  .auth-card {
    max-width: 520px;
  }
}

.auth-card label {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-card input {
  padding: 12px 14px;
}

.auth-card .muted {
  margin-top: 6px;
}

@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
    padding: 36px 8vw;
  }

  .auth-card {
    justify-self: stretch;
  }
}

h1 {
  margin-bottom: 24px;
}

.card {
  background: rgba(18, 18, 18, 0.9);
  padding: 24px;
  border-radius: 12px;
  display: grid;
  gap: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fade-in {
  animation: pageFade 0.6s ease-out;
}

.slide-in {
  animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.route-loading {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 6, 0.35);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 120;
}

.route-loading.active {
  opacity: 1;
  pointer-events: auto;
}

.route-loading-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  animation: routePulse 0.8s ease-in-out infinite;
}

@keyframes routePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.6);
    opacity: 1;
  }
}

label {
  font-size: 0.9rem;
  color: #a3a3a3;
}

input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 12, 0.9);
  color: #f5f5f5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

button {
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: #f5f5f5;
  color: #0b0b0b;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(56, 189, 248, 0.25);
}

button:active {
  transform: translateY(0);
  opacity: 0.9;
}

button.secondary {
  background: rgba(24, 24, 24, 0.9);
  color: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

button.secondary.danger {
  background: #3f1d2b;
  color: #fca5a5;
}

.error {
  color: #fca5a5;
}

.muted {
  color: #a3a3a3;
  font-size: 0.9rem;
}

textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 12, 0.9);
  color: #f5f5f5;
  resize: vertical;
  min-height: 120px;
}

textarea:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(12, 12, 12, 0.7);
}

.ghost-link {
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-weight: 600;
  padding: 6px 8px;
  cursor: pointer;
  text-align: left;
  border-radius: 8px;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ghost-link:hover {
  box-shadow: 0 0 12px rgba(248, 250, 252, 0.7);
}

.nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.forum-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.market-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.market-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.market-toolbar input {
  flex: 1;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.market-card {
  background: #0b1120;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.market-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.market-card-title {
  display: grid;
  gap: 4px;
}

.market-title {
  padding: 0;
  font-size: 1rem;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.stars {
  display: inline-flex;
  gap: 4px;
}

.star {
  background: transparent;
  border: none;
  color: #475569;
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
}

.star.active {
  color: #fbbf24;
}

.market-meta {
  font-size: 0.8rem;
}

.market-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.config-detail {
  display: grid;
  gap: 16px;
}

.config-detail textarea {
  display: none;
}

.config-compact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 12px;
  align-items: start;
}

.config-compact-main {
  display: grid;
  gap: 6px;
}

.config-compact-side {
  display: grid;
  gap: 10px;
  align-content: start;
}

.config-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.config-detail-body,
.config-main,
.config-sidebar {
  display: none;
}

.claims-mini {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(12, 12, 12, 0.5);
}

.claims-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  list-style: none;
  cursor: pointer;
}

.claims-mini-list {
  display: grid;
  gap: 6px;
}

.claims-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
}

.config-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.config-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 0;
  border: none;
}

.config-title-block {
  display: grid;
  gap: 4px;
}

.config-detail-grid {
  display: grid;
  gap: 16px;
}

.config-panel {
  display: grid;
  gap: 12px;
}

.config-detail-meta {
  display: grid;
  gap: 8px;
  text-align: right;
  justify-items: end;
}

.rating-block {
  display: grid;
  gap: 2px;
  justify-items: end;
}


.config-section {
  padding: 0;
}

.section-summary {
  list-style: none;
  cursor: pointer;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.config-section[open] .section-summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.config-section .comment-form,
.config-section .comment-list,
.config-section .claims-list,
.config-section p {
  padding: 0 16px 16px;
}

.config-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.share-box {
  margin-top: 0;
  display: grid;
  gap: 6px;
}

@media (max-width: 980px) {
  .config-compact-grid {
    grid-template-columns: 1fr;
  }

  .config-detail-meta {
    text-align: left;
    justify-items: start;
  }
}

.claims-list {
  display: grid;
  gap: 10px;
}

.claim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0b1120;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 10px 12px;
}

.comment-form {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-row {
  background: #0b1120;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.comment-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.forum-grid {
  display: grid;
  gap: 16px;
}

.forum-section {
  gap: 14px;
}

.forum-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.forum-section-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.forum-section-main {
  display: grid;
  gap: 6px;
}

.forum-section-link {
  display: grid;
  gap: 6px;
  align-items: start;
  width: 100%;
  padding: 0;
}

.forum-section-desc {
  color: #a3a3a3;
  font-size: 0.9rem;
}

.forum-section-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: #cbd5f5;
}

.forum-section-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.forum-sublist {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.forum-subcard {
  background: rgba(12, 12, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 8px;
}

.forum-sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.forum-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.forum-toggle input {
  width: 16px;
  height: 16px;
}

.forum-card {
  gap: 10px;
}

.forum-card-header,
.forum-thread-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.forum-thread-list {
  display: grid;
  gap: 16px;
}

.forum-thread-card {
  gap: 8px;
}

.forum-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.forum-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: #cbd5f5;
}

.forum-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.forum-badges {
  display: flex;
  gap: 8px;
  align-items: center;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  color: #e5e5e5;
}

.badge-locked {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.badge-pinned {
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
}

.forum-posts {
  display: grid;
  gap: 16px;
}

.forum-post-card {
  gap: 12px;
}

.forum-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.forum-post-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  background: #f5f5f5;
  color: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
  z-index: 50;
}

.fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.45);
}

.post-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0b1120;
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 700;
  color: #7dd3fc;
}

.post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shoutbox-shell {
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: none;
}

.shoutbox-scale {
  width: 100%;
}

.shoutbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.9), rgba(12, 12, 12, 0.75));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
}

.shoutbox-title {
  color: #e5e7eb;
}

.shoutbox-online-count {
  color: #94a3b8;
}

.shoutbox-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  height: 360px;
}

.shoutbox-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.shoutbox-list {
  flex: 1;
  overflow-y: auto;
  display: block;
  padding-right: 6px;
  height: 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.shoutbox-list::-webkit-scrollbar {
  display: none;
}

@keyframes scrollbarPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4);
  }
  50% {
    box-shadow: 0 0 8px 2px rgba(56, 189, 248, 0.2);
  }
}

@keyframes scrollbarFade {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}

@keyframes mentionPulse {
  from {
    background-color: rgba(56, 189, 248, 0.15);
  }
  to {
    background-color: rgba(56, 189, 248, 0.08);
  }
}

.shout-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: #e2e8f0;
  white-space: nowrap;
  line-height: 1.3;
  padding: 4px 0 4px 12px;
  margin: 0;
}

.shout-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0b1120;
  border: 1px solid rgba(56, 189, 248, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #38bdf8;
  overflow: hidden;
  flex-shrink: 0;
}

.shout-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shout-row.system {
  color: #93c5fd;
}

.shout-time {
  color: #64748b;
  font-size: 0.72rem;
  flex-shrink: 0;
  margin-left: 2px;
}

.shout-user {
  font-weight: 700;
  color: #e5e7eb;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.shout-sep {
  color: #64748b;
  flex-shrink: 0;
  margin: 0;
}

.shout-message {
  color: #e5e7eb;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 0;
}

.shoutbox-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.shoutbox-input-wrapper {
  position: relative;
  width: 100%;
}

.shoutbox-input input {
  width: 100%;
  background: rgba(24, 24, 24, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  color: #f8fafc;
  box-sizing: border-box;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.shoutbox-input input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(24, 24, 24, 0.95);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.shoutbox-input input::placeholder {
  color: #64748b;
  font-size: 0.85rem;
}

/* Mention dropdown */
.mention-dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: rgba(12, 12, 12, 0.98);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  margin-bottom: 0;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6), inset 0 -1px 0 rgba(56, 189, 248, 0.15);
  animation: mentionDropdownOpen 0.2s ease-out;
  backdrop-filter: blur(10px);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mention-dropdown::-webkit-scrollbar {
  display: none;
}

@keyframes mentionDropdownOpen {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mention-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  background: transparent;
}

.mention-item:first-child {
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  padding-top: 8px;
}

.mention-item:hover {
  background: rgba(56, 189, 248, 0.12);
  border-left-color: rgba(56, 189, 248, 0.7);
  transform: translateX(2px);
}

.mention-avatar {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(34, 197, 94, 0.3));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #38bdf8;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid rgba(56, 189, 248, 0.3);
  transition: all 0.2s ease;
  overflow: hidden;
}

.mention-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mention-item:hover .mention-avatar {
  border-color: rgba(56, 189, 248, 0.6);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(34, 197, 94, 0.4));
}

.mention-name {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.85rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* Mention tags in messages */
.mention-tag {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mention-tag:hover {
  color: #0ea5e9;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

/* Mention highlight for tagged user */
.shout-row.mentioned {
  background: rgba(56, 189, 248, 0.08);
  border-left: 3px solid rgba(56, 189, 248, 0.4);
  padding-left: 9px;
  margin-left: -3px;
  border-radius: 4px;
  animation: mentionPulse 0.5s ease-out;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
}

.icon-button:hover {
  transform: translateY(-1px);
}

.icon-arrow {
  font-size: 1rem;
}

.shoutbox-online {
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 12px;
  background: rgba(8, 8, 8, 0.85);
}

.shoutbox-online-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
}

.shoutbox-online-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.shoutbox-online-item {
  display: flex;
}

.shoutbox-online-button {
  width: 100%;
  background: transparent;
  border: none;
  color: inherit;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin: -8px -10px;
}

.shoutbox-online-button:hover {
  background: rgba(56, 189, 248, 0.1);
  transform: translateX(4px);
}

.shoutbox-online-button:hover .online-dot {
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
  transform: scale(1.2);
}

.shoutbox-online-button:hover .online-name {
  color: #38bdf8;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
  transition: all 0.2s ease;
}

.online-name {
  font-weight: 600;
  color: #e2e8f0;
  transition: all 0.2s ease;
}

@media (max-width: 900px) {
  .shoutbox-body {
    grid-template-columns: 1fr;
  }

  .shoutbox-chat {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.hwid-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.flag-row {
  flex-wrap: wrap;
  gap: 16px;
}

.flag-user {
  flex: 1 1 220px;
}

.flag-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.flag-toggle input {
  width: 16px;
  height: 16px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pageFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes backgroundGlow {
  0%,
  100% {
    background-color: #0f172a;
  }
  50% {
    background-color: #111b33;
  }
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-btn {
  padding: 8px 12px;
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f5f5f5;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  background: #2a2a3e;
  border-color: rgba(255, 255, 255, 0.4);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 0.9em;
  color: #9ca3af;
}
/* Settings Page Styles */
.settings-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 20px;
  animation: pageFade 0.6s ease-out;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-size: 0.95rem;
  color: #d1d5db;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="file"],
.form-group textarea {
  background: rgba(30, 30, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f5f5f5;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group textarea:focus {
  background: rgba(30, 30, 40, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
  outline: none;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.05);
}

.form-hint {
  font-size: 0.85rem;
  color: #6b7280;
  font-style: italic;
}

form {
  display: grid;
  gap: 16px;
}

form button[type="submit"] {
  padding: 10px 16px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
}

form button[type="submit"]:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

form button[type="submit"]:active {
  transform: translateY(0);
}

/* Admin User Settings Styles */
.admin-user-settings {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.compact-profile {
  padding: 14px !important;
  gap: 0 !important;
}

.compact-profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mini-avatar {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.8rem;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-info h3 {
  margin: 0 0 3px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-info p {
  margin: 2px 0;
  font-size: 0.8rem;
  line-height: 1.3;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.file-input-wrapper {
  position: relative;
}

.file-input-wrapper input[type="file"] {
  display: none;
}

.file-label {
  display: block;
  padding: 6px 10px;
  background: #3b82f6;
  color: white;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.file-label:hover {
  background: #2563eb;
}

.flag-toggle.compact {
  display: flex;
  align-items: center;
  gap: 6px;
}

.flag-toggle.compact input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.flag-toggle.compact span {
  font-size: 0.85rem;
  cursor: pointer;
}

.admin-user-settings .card {
  padding: 14px !important;
}

.admin-user-settings .card h4 {
  margin: 0 0 10px 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-user-settings form {
  display: grid;
  gap: 6px;
}

.admin-user-settings input,
.admin-user-settings button {
  font-size: 0.85rem;
  padding: 6px 10px;
}

.admin-user-settings form button[type="submit"] {
  padding: 6px 10px;
}

/* Broadcast Banner Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes subtleGlow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.5));
  }
}

.broadcast-banner {
  animation: slideUp 0.6s ease-out forwards, subtleGlow 4s ease-in-out infinite;
  background: linear-gradient(135deg, 
    rgba(15, 15, 25, 0.98) 0%,
    rgba(12, 12, 20, 0.95) 50%,
    rgba(10, 10, 18, 0.98) 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.broadcast-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 75%,
    transparent 100%);
  pointer-events: none;
}

.broadcast-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent);
  pointer-events: none;
}

.broadcast-banner > * {
  position: relative;
  z-index: 1;
}

/* ============ FRIEND CHAT SYSTEM ============ */

/* Floating action button */
.friend-chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
  transition: all 0.3s ease;
  z-index: 9999;
}

.friend-chat-fab:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.6);
}

.fab-icon {
  font-size: 28px;
  line-height: 1;
}

.fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

/* Friend chat container */
.friend-chat-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Friend chat window */
.friend-chat-window {
  width: 360px;
  height: 580px;
  background: rgba(10, 10, 10, 0.98);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(56, 189, 248, 0.1);
  backdrop-filter: blur(10px);
}

/* Header */
.friend-chat-header {
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.95), rgba(12, 12, 12, 0.95));
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.friend-chat-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e5e7eb;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-with-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.online-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.online-indicator.online {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.online-indicator.offline {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.chat-unread-badge {
  font-size: 0.75rem;
  background: #ef4444;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.friend-chat-actions {
  display: flex;
  gap: 8px;
}

.friend-chat-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.friend-chat-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.btn-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 8px;
  min-width: 16px;
}

/* Body */
.friend-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.friend-chat-body::-webkit-scrollbar {
  display: none;
}

/* Friends list */
.friends-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.friend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(24, 24, 24, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.friend-item.has-unread {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
}

.friend-item.selected {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
}

.friend-item:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateX(4px);
}

.friend-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.friend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.friend-name {
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.friend-last-message {
  font-size: 0.8rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(34, 197, 94, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #38bdf8;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.friend-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.unread-badge {
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.friend-remove-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.friend-remove-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Chat view */
.chat-view {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  padding-bottom: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chat-messages::-webkit-scrollbar {
  display: none;
}

.chat-message-wrapper {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  animation: messageSlide 0.2s ease-out;
  margin-bottom: 12px;
  width: 100%;
}

.chat-message-wrapper.sent {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

.chat-message-wrapper.received {
  justify-content: flex-start;
  flex-direction: row;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.chat-message-wrapper.sent .message-avatar {
  display: none;
}

.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-avatar span {
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 600;
}

.chat-message {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 12px;
  position: relative;
}

.chat-message-wrapper.received .chat-message {
  padding-left: 20px;
  margin-left: -16px;
  border-top-left-radius: 4px;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message.sent {
  align-self: flex-end;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.chat-message.sent .message-text {
  color: #ffffff;
  font-weight: 500;
}

.chat-message.sent .message-time,
.chat-message.sent .message-status {
  color: rgba(255, 255, 255, 0.85);
}

.chat-message.received {
  align-self: flex-start;
  background: rgba(55, 65, 81, 0.7);
  border: 1px solid rgba(107, 114, 128, 0.4);
  color: #e5e7eb;
}

.chat-message.received .message-text {
  color: #e5e7eb;
}

.chat-message.received .message-time,
.chat-message.received .message-status {
  color: rgba(229, 231, 235, 0.65);
}

.message-text {
  color: #e2e8f0;
  font-size: 0.7rem;
  line-height: 1.4;
  word-wrap: break-word;
  font-weight: 400;
}

.message-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 2px;
  flex-wrap: nowrap;
  font-size: 0.65rem;
}

.message-time {
  font-size: 0.55rem;
  color: #94a3b8;
  opacity: 0.8;
  white-space: nowrap;
}

.message-status {
  font-size: 0.55rem;
  color: #94a3b8;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Message reactions */
.message-with-actions {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
}

.chat-message-wrapper.sent .message-with-actions {
  flex-direction: row-reverse;
}

.chat-message-wrapper.received .message-with-actions {
  flex-direction: row;
}

.chat-message {
  max-width: 280px;
  padding: 10px 14px;
  border-radius: 12px;
  position: relative;
  word-break: break-word;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: pre-wrap;
  line-height: 1.4;
}

.chat-message-wrapper.sent .chat-message {
  border-bottom-right-radius: 4px;
}

.chat-message-wrapper.received .chat-message {
  border-top-left-radius: 4px;
}

.reaction-add-btn {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  min-width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: bold;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  margin-bottom: 2px;
  flex-shrink: 0;
}

.chat-message-wrapper:hover .reaction-add-btn {
  opacity: 1;
  pointer-events: auto;
}

.reaction-add-btn:hover {
  background: rgba(56, 189, 248, 0.3);
  border-color: rgba(56, 189, 248, 0.5);
  transform: scale(1.15);
}

.message-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.message-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  max-width: 100%;
}

.reaction-bubble {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  padding: 3px 7px;
  font-size: 0.7rem;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
  height: fit-content;
}

.reaction-bubble:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.5);
  transform: scale(1.05);
}

.emoji-picker-popup {
  display: flex;
  gap: 2px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 3px;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  animation: popupSlide 0.15s ease-out;
}

@keyframes popupSlide {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.emoji-btn {
  background: transparent;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 3px;
  transition: all 0.2s ease;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  line-height: 1;
}

.emoji-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  transform: scale(1.15);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(24, 24, 24, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  max-width: 200px;
  font-size: 0.75rem;
  color: #94a3b8;
  animation: messageSlide 0.2s ease-out;
  margin: 8px 0 4px 0;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
  animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

/* Chat input */
.chat-input-form {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(56, 189, 248, 0.2);
}

.chat-input {
  flex: 1;
  background: rgba(24, 24, 24, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  padding: 10px 14px;
  color: #f8fafc;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.chat-input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(24, 24, 24, 0.95);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  border: none;
  color: white;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
}

/* Add friend form */
.add-friend-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.add-friend-form label {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.9rem;
}

.add-friend-form input {
  background: rgba(24, 24, 24, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  color: #f8fafc;
  font-size: 0.95rem;
}

.add-friend-form input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

/* Requests list */
.requests-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.request-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(24, 24, 24, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 12px;
}

.request-actions {
  display: flex;
  gap: 8px;
}

.accept-btn,
.decline-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.accept-btn {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.accept-btn:hover {
  background: rgba(34, 197, 94, 0.2);
  transform: scale(1.1);
}

.decline-btn {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.decline-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.1);
}

/* Settings view */
.settings-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-view h3 {
  color: #e2e8f0;
  font-size: 1rem;
  margin: 0;
}

.settings-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.setting-option {
  padding: 12px;
  background: rgba(24, 24, 24, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  color: #e2e8f0;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.setting-option:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
}

.setting-option.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(14, 165, 233, 0.2));
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
}

/* Empty state */
.empty-state {
  text-align: center;
  color: #94a3b8;
  padding: 40px 20px;
  font-size: 0.9rem;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .friend-chat-window {
    width: calc(100vw - 32px);
    height: calc(100vh - 100px);
  }

  .friend-chat-fab {
    bottom: 16px;
    right: 16px;
  }

  .friend-chat-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }
}
/* Player Stats Styling */
.player-stats {
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin: 0;
}

.player-stats-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.player-stats h3 {
  margin-top: 0;
  margin-bottom: 0;
  color: #e2e8f0;
  font-size: 1.2rem;
}

.player-stats-updated {
  color: #94a3b8;
  font-size: 0.82rem;
}

.stats-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stat-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-label {
  font-weight: 700;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

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

.stat-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  gap: 4px;
}

.stat-name {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
}

.player-stats-compact {
  padding: 12px;
}

.player-stats-compact h3 {
  font-size: 1.05rem;
}

.player-stats-compact .player-stats-header {
  margin-bottom: 12px;
}

.player-stats-compact .stats-container {
  gap: 10px;
}

.player-stats-compact .stat-label {
  font-size: 0.8rem;
}

.player-stats-compact .stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(66px, 1fr));
  gap: 7px;
}

.player-stats-compact .stat-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
}

.player-stats-compact .stat-item {
  padding: 7px;
}

.player-stats-compact .stat-name {
  font-size: 0.66rem;
}

.player-stats-compact .stat-value {
  font-size: 1.02rem;
}

@media (max-width: 980px) {
  .profile-main-layout {
    grid-template-columns: 1fr;
  }

  .stats-hover-panel {
    left: 50%;
    transform: translate(-50%, 6px);
    width: min(720px, 92vw);
  }

  .stats-hover-trigger:hover + .stats-hover-panel,
  .stats-hover-trigger:focus + .stats-hover-panel,
  .stats-hover-trigger:focus-visible + .stats-hover-panel {
    transform: translate(-50%, 0);
  }
}

.player-stats .muted {
  margin: 0;
  color: #64748b;
  font-size: 0.85rem;
}