:root {
  --bg0: #07080d;
  --bg1: #0d1018;
  --card: rgba(20, 24, 35, 0.72);
  --stroke: rgba(148, 163, 184, 0.14);
  --text: #e8edf7;
  --muted: #94a3b8;
  --accent: #f59e0b;
  --accent2: #38bdf8;
  --danger: #f87171;
  --ok: #4ade80;
  --radius: 16px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(245, 158, 11, 0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(56, 189, 248, 0.1), transparent 50%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0.01em;
}

a {
  color: var(--accent2);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 20px 64px;
}
.wrap:has(.profile-shell) {
  max-width: 1540px;
}

/* —— Kopfzeile (csstats-ähnlich) —— */
.site-header {
  border-top: 2px solid #5a1824;
  background: linear-gradient(180deg, #0c0d12 0%, #08090e 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.site-header__inner {
  max-width: 1540px;
  margin: 0 auto;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px 24px;
}
.site-header__tools {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  width: 100%;
}
.site-nav-auth {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.82rem;
}
.site-nav-auth__in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  min-height: 38px;
  border-radius: 9px;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: #0b1220;
  background: linear-gradient(135deg, #94a3b8, #64748b);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}
.site-nav-auth__in:hover {
  filter: brightness(1.08);
  text-decoration: none;
}
.site-nav-auth__me {
  font-weight: 650;
  color: var(--accent2);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav-auth__me:hover {
  text-decoration: underline;
}
.site-nav-auth__out {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav-auth__out:hover {
  color: var(--text);
  text-decoration: underline;
}
.site-nav-auth__admin {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  min-height: 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.78rem;
  color: #f8fafc;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(99, 102, 241, 0.98));
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.25);
}
.site-nav-auth__admin:hover {
  filter: brightness(1.07);
  text-decoration: none;
}

/* —— Admin-Status (?tool=admin) —— */
.admin-tool__head {
  margin-bottom: 20px;
}
.admin-tool__title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.admin-tool__lead {
  margin: 0;
  max-width: 72ch;
}
.admin-tool__grid {
  margin-bottom: 8px;
}
.admin-tool__card h3 {
  margin-top: 0;
}
.admin-tool__kv {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 8px 14px;
  margin: 0;
  font-size: 0.86rem;
}
.admin-tool__kv dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.admin-tool__kv dd {
  margin: 0;
  color: var(--text);
  word-break: break-word;
}
.admin-tool__msg {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}
.admin-tool__pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 750;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.admin-tool__pill--ok {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.admin-tool__pill--bad {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.35);
}
.admin-tool__pill--after-path {
  margin-left: 8px;
  vertical-align: middle;
}
.admin-tool__foot {
  margin: 14px 0 0;
}
.admin-tool__table-wrap {
  overflow-x: auto;
  margin: 10px 0 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-tool__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.admin-tool__table th,
.admin-tool__table td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  word-break: break-word;
}
.admin-tool__table th {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.admin-tool__table tr:last-child td {
  border-bottom: none;
}
.admin-tool__err-list {
  margin: 8px 0 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  color: #fca5a5;
}

@media (max-width: 720px) {
  .site-header__inner {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .site-logo {
    justify-self: center;
  }
  .site-header__tools {
    flex-direction: column;
    align-items: stretch;
  }
  .site-search-form {
    justify-self: stretch !important;
    max-width: none !important;
  }
  .site-nav-auth {
    justify-content: center;
  }
}
.site-logo {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
}
.site-logo:hover {
  text-decoration: none;
}
.site-logo__a {
  color: #f1f5f9;
}
.site-logo__b {
  margin-left: 1px;
  font-style: italic;
  font-weight: 800;
  color: #7dd3fc;
  text-shadow: 0 0 24px rgba(125, 211, 252, 0.25);
}
.site-logo__c {
  margin-left: 2px;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.92em;
}
.site-search-form {
  flex: 1 1 auto;
  justify-self: center;
  width: 100%;
  max-width: min(720px, 100%);
  min-width: 0;
}
.site-search {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  border-radius: 11px;
  border: 1px solid rgba(55, 60, 72, 0.95);
  background: #161922;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.site-search:focus-within {
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 3px rgba(56, 189, 248, 0.14);
}
.site-search__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px 0 14px;
  color: #94a3b8;
  pointer-events: none;
}
.site-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.88rem;
  padding: 13px 10px 13px 0;
  outline: none;
}
.site-search__input::placeholder {
  color: #64748b;
  font-size: 0.82rem;
}
.site-search__btn {
  flex: 0 0 auto;
  margin: 4px;
  padding: 0 16px;
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 750;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #061018;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.22);
  transition: filter 0.15s ease, transform 0.12s ease;
}
.site-search__btn:hover {
  filter: brightness(1.06);
}
.site-search__btn:active {
  transform: scale(0.98);
}

.site-tagline {
  margin: 0 0 22px;
  padding: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
  max-width: 85ch;
}
/* —— Startseite: zuletzt geladene Profile —— */
.home-recent {
  margin-top: 8px;
}
.home-recent__head {
  margin-bottom: 22px;
}
.home-recent__title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #f1f5f9;
}
.home-recent__sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 62ch;
}
.home-recent__tools {
  margin: 10px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.home-recent__tools a {
  color: var(--accent2);
  font-weight: 650;
}
.home-recent-empty {
  border-radius: var(--radius);
  border: 1px dashed rgba(148, 163, 184, 0.28);
  background: rgba(15, 18, 28, 0.45);
  padding: 28px 22px;
  text-align: center;
}
.home-recent-empty__text {
  margin: 0;
  font-size: 0.92rem;
  color: #a8b3c9;
  line-height: 1.55;
  max-width: 48ch;
  margin-inline: auto;
}
.home-recent__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px 16px;
}
.home-recent-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px 12px;
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--card);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}
.home-recent-card:hover {
  text-decoration: none;
  border-color: rgba(125, 211, 252, 0.35);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(56, 189, 248, 0.12);
  transform: translateY(-1px);
}
.home-recent-card__media {
  flex-shrink: 0;
}
.home-recent-card__img {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.home-recent-card__img--ph {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(148, 163, 184, 0.08));
}
.home-recent-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.home-recent-card__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-recent-card__meta {
  font-size: 0.72rem;
  color: #7b8aa6;
  letter-spacing: 0.02em;
}
.home-recent-card__id {
  font-size: 0.68rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-recent-card__chev {
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: color 0.15s ease, transform 0.15s ease;
}
.home-recent-card:hover .home-recent-card__chev {
  color: var(--accent2);
  transform: translateX(2px);
}

/* —— Startseite: Profimatches (csapi.de) —— */
.home-pro {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.home-pro__head {
  margin-bottom: 20px;
}
.home-pro__title {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f1f5f9;
}
.home-pro__sub {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 75ch;
}
.home-pro__sub a {
  color: var(--accent2);
}
.home-pro-empty {
  border-radius: var(--radius);
  border: 1px dashed rgba(148, 163, 184, 0.22);
  background: rgba(12, 14, 22, 0.5);
  padding: 22px 18px;
}
.home-pro-empty__text {
  margin: 0;
  font-size: 0.88rem;
  color: #a8b3c9;
  line-height: 1.5;
}

/* —— Demo-Upload / Parse —— */
.demo-tool {
  margin-top: 8px;
}
.demo-tool__head {
  margin-bottom: 22px;
}
.demo-tool__title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.demo-tool__lead {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 78ch;
}
.demo-tool__back {
  margin: 0;
  font-size: 0.86rem;
}
.demo-tool__form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--card);
  max-width: 560px;
}
.demo-tool__label {
  font-weight: 700;
  font-size: 0.86rem;
}
.demo-tool__file {
  font-size: 0.82rem;
  color: var(--text);
}
.demo-tool__submit {
  margin-top: 4px;
}
.demo-tool__form--secondary {
  margin-top: 18px;
}
.demo-tool__h2--inline {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
}
.demo-tool__hint {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 70ch;
}
.demo-tool__limit {
  width: 5.5rem;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: var(--bg);
  color: var(--text);
  font-size: 0.88rem;
}
.demo-tool__status {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: #cbd5e1;
}
.demo-tool__pre {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(6, 8, 12, 0.85);
  color: #a8b3c9;
  font-size: 0.72rem;
  overflow: auto;
  max-height: 42vh;
}
.demo-tool__h2 {
  margin: 28px 0 10px;
  font-size: 1rem;
  font-weight: 800;
}
.demo-tool__index {
  margin: 0;
  padding-left: 18px;
  color: #94a3b8;
  font-size: 0.78rem;
  line-height: 1.55;
  max-width: 90ch;
}
.demo-tool__id {
  color: #7dd3fc;
}
.home-pro__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.home-pro-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(18, 22, 34, 0.75);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}
.home-pro-card:hover {
  text-decoration: none;
  border-color: rgba(245, 158, 11, 0.28);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}
.home-pro-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
}
.home-pro-card__event {
  font-weight: 700;
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.35;
  flex: 1 1 140px;
}
.home-pro-card__date {
  font-size: 0.72rem;
  color: #7b8aa6;
  flex: 0 0 auto;
}
.home-pro-card__scoreline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px 10px;
}
.home-pro-card__team {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-pro-card__team:first-child {
  text-align: left;
}
.home-pro-card__team:last-child {
  text-align: right;
}
.home-pro-card__team.is-winner {
  color: #fde68a;
}
.home-pro-card__nums {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: 0.04em;
}
.home-pro-card__maps {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.45;
  word-break: break-word;
}
.home-pro-card__foot {
  font-size: 0.68rem;
  color: #5c6578;
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.profile-csapi__lead a {
  color: var(--accent2);
}
.profile-csapi-scroll {
  overflow-x: auto;
  margin-top: 10px;
  -webkit-overflow-scrolling: touch;
}
.profile-csapi-table {
  min-width: 640px;
}
.profile-csapi-th-api {
  width: 72px;
}

.site-tagline .mono {
  font-size: 0.8em;
}

.alert {
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
  color: #fecaca;
  padding: 12px 14px;
  border-radius: 12px;
  margin: 0 0 18px;
}

.profile-fetch-diag {
  margin: 0 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.45);
  padding: 0 2px 8px 10px;
}
.profile-fetch-diag__summary {
  cursor: pointer;
  padding: 8px 0 6px;
  font-size: 0.88rem;
  color: rgba(226, 232, 240, 0.88);
  list-style-position: outside;
}
.profile-fetch-diag__pre {
  margin: 0 0 4px;
  max-height: 320px;
  overflow: auto;
  padding: 10px 12px;
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(203, 213, 225, 0.95);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
}

.hero {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px 22px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--card);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.hero img {
  width: 112px;
  height: 112px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: cover;
}
.hero-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-title {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: baseline;
}
.hero-title h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  letter-spacing: -0.02em;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 0.82rem;
}
.pill strong {
  color: var(--text);
  font-weight: 650;
}
.mono {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: #cbd5e1;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(10, 12, 18, 0.35);
  color: var(--text);
  font-weight: 650;
  font-size: 0.9rem;
}
a.btn,
button.btn {
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
button.btn {
  font: inherit;
  font-family: var(--font);
  appearance: none;
  -webkit-appearance: none;
}
.btn.primary {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.12);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.col-12 {
  grid-column: span 12;
}
.col-6 {
  grid-column: span 6;
}
.col-4 {
  grid-column: span 4;
}
@media (max-width: 980px) {
  .col-6,
  .col-4 {
    grid-column: span 12;
  }
  .hero {
    grid-template-columns: 96px 1fr;
  }
  .hero img {
    width: 96px;
    height: 96px;
  }
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--card);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
}
.card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card h3 span.tag {
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--stroke);
  padding: 4px 8px;
  border-radius: 999px;
}

.kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
@media (max-width: 720px) {
  .kv {
    grid-template-columns: 1fr;
  }
}
.kv div {
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(10, 12, 18, 0.35);
  border-radius: 12px;
  padding: 10px 10px;
}
.kv dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.kv dd {
  margin: 6px 0 0;
  font-weight: 650;
  line-height: 1.35;
  word-break: break-word;
}

.note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
}
.table th,
.table td {
  text-align: left;
  padding: 10px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  vertical-align: top;
  font-size: 0.88rem;
}
.table th {
  color: var(--muted);
  font-weight: 650;
  width: 34%;
}
.table tr:last-child td,
.table tr:last-child th {
  border-bottom: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 980px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .stats {
    grid-template-columns: 1fr;
  }
}
.stat {
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(10, 12, 18, 0.35);
  border-radius: 12px;
  padding: 10px 10px;
}
.stat .k {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}
.stat .v {
  margin-top: 6px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 0.78rem;
  color: var(--muted);
}
.badge.ok {
  border-color: rgba(74, 222, 128, 0.35);
  color: #bbf7d0;
  background: rgba(74, 222, 128, 0.08);
}
.badge.bad {
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
  background: rgba(248, 113, 113, 0.08);
}

.footer {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 16px;
}
@media (max-width: 860px) {
  .charts {
    grid-template-columns: 1fr;
  }
}
.chart-box {
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(10, 12, 18, 0.35);
  border-radius: 14px;
  padding: 12px 12px 8px;
}
.chart-box h4 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  color: var(--text);
  font-weight: 700;
}
.chart-wrap {
  position: relative;
  height: 260px;
}
.chart-wrap.chart-wrap--donut {
  height: 280px;
  max-width: 360px;
  margin: 0 auto;
}

/* --- Leetify-ähnliches Detail-Dashboard (Steam-Daten) --- */
.dash-board {
  margin: 0 0 18px;
  padding: 14px 14px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(56, 189, 248, 0.16);
  background: linear-gradient(180deg, rgba(12, 16, 28, 0.55), rgba(10, 12, 18, 0.35));
}
.dash-head {
  margin-bottom: 12px;
}
.dash-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.dash-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
  max-width: 90ch;
}
.dash-cols {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .dash-cols {
    grid-template-columns: 1fr;
  }
}
.dash-panel {
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(10, 12, 18, 0.45);
  padding: 12px 12px 10px;
}
.dash-panel-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.dash-kpi {
  font-size: 0.95rem;
  color: var(--accent2);
  font-variant-numeric: tabular-nums;
}
.dash-kpi--muted {
  color: var(--muted);
}
.dash-tag {
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--stroke);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 650;
}

.clutch-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 720px) {
  .clutch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.clutch-cell {
  text-align: center;
  padding: 8px 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(7, 8, 13, 0.35);
}
.clutch-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 750;
  margin-bottom: 8px;
}
.clutch-ring-wrap {
  display: flex;
  justify-content: center;
  margin: 2px 0 8px;
}
.clutch-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  position: relative;
  background: rgba(255, 255, 255, 0.06);
}
.clutch-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    rgba(56, 189, 248, 0.95) calc(var(--pct) * 1%),
    rgba(248, 113, 113, 0.55) 0
  );
}
.clutch-ring::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #0b0d12;
  z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.clutch-ring--empty::before {
  background: rgba(148, 163, 184, 0.18);
}
.clutch-pct {
  font-weight: 850;
  letter-spacing: -0.02em;
  font-size: 0.98rem;
}
.clutch-wl {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.bar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) auto;
  gap: 10px;
  align-items: center;
}
.bar-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.1);
  overflow: hidden;
}
.bar-track > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.25), rgba(56, 189, 248, 0.95));
}
.bar-track--hs > i {
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.25), rgba(129, 140, 248, 0.95));
}
.bar-val {
  font-size: 0.86rem;
  font-weight: 800;
  color: #dbeafe;
  font-variant-numeric: tabular-nums;
  min-width: 52px;
  text-align: right;
}

/* Waffen-Zeilen (Icons + Micro-Bars, Leetify-nah) */
.wpn-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wpn-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(7, 8, 13, 0.35);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.wpn-row:hover {
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(12, 16, 26, 0.5);
}
.wpn-ico-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: #f1f5f9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.wpn-ico-wrap--hs {
  background: linear-gradient(145deg, rgba(30, 27, 75, 0.55), rgba(15, 23, 42, 0.95));
  border-color: rgba(129, 140, 248, 0.18);
}
.wpn-ico-wrap .weapon-ico {
  display: block;
  width: 26px;
  height: 26px;
  opacity: 0.96;
}
.wpn-row__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.wpn-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.wpn-row__label {
  font-size: 0.86rem;
  font-weight: 750;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wpn-row__num {
  font-size: 0.9rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #e0f2fe;
  letter-spacing: -0.02em;
}
.wpn-row__pct {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.wpn-donut {
  --p: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(rgba(56, 189, 248, 0.95) calc(var(--p) * 1%), rgba(51, 65, 85, 0.42) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent 56%, #000 58%);
  mask: radial-gradient(farthest-side, transparent 56%, #000 58%);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12);
}
.wpn-rows--hs .wpn-donut {
  background: conic-gradient(rgba(129, 140, 248, 0.95) calc(var(--p) * 1%), rgba(51, 65, 85, 0.42) 0);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.12);
}
.wpn-row__sub {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}
.wpn-microbar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.wpn-microbar > i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.92));
}
.wpn-microbar--hs > i {
  background: linear-gradient(90deg, rgba(129, 140, 248, 0.2), rgba(167, 139, 250, 0.92));
}

/* --- Match-Analyse --- */
.match-wrap h3 {
  margin-top: 0;
}
.match-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 8px;
}
@media (max-width: 980px) {
  .match-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.match-kpi {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 8, 13, 0.35);
  padding: 10px 10px;
}
.match-kpi .k {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}
.match-kpi .v {
  display: block;
  margin-top: 6px;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.match-subhd {
  margin: 16px 0 8px;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.match-agg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0 6px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(10, 12, 18, 0.4);
}
.match-agg-ring-wrap {
  flex: 0 0 auto;
  padding: 4px;
}
.match-raw {
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  padding: 8px 10px;
  background: rgba(10, 12, 18, 0.35);
}
.match-raw summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--accent2);
}
.match-raw-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
@media (max-width: 720px) {
  .match-raw-grid {
    grid-template-columns: 1fr;
  }
}
.match-raw-h {
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.match-raw-ul {
  margin: 0;
  padding-left: 16px;
  color: #cbd5e1;
  font-size: 0.76rem;
  line-height: 1.35;
  max-height: 220px;
  overflow: auto;
}

/* --- Lade-Log (Player Reputation / Datenquellen) --- */
.profile-fetch-log {
  position: relative;
  z-index: 2;
  margin-bottom: 14px;
  padding: 14px 16px 16px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(8, 10, 16, 0.92);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.profile-fetch-log__h {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: #f1f5f9;
}
.profile-fetch-log__sub {
  margin: 0 0 12px;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.45;
}
.profile-fetch-log__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile-fetch-log__item {
  margin: 0;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 0.8rem;
  line-height: 1.4;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
}
.profile-fetch-log__label {
  font-weight: 750;
  color: #e2e8f0;
}
.profile-fetch-log__state {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.profile-fetch-log__item--ok .profile-fetch-log__state {
  color: #052e1a;
  background: linear-gradient(135deg, #4ade80, #22c55e);
}
.profile-fetch-log__item--warn .profile-fetch-log__state {
  color: #1a1504;
  background: linear-gradient(135deg, #fde047, #fbbf24);
}
.profile-fetch-log__item--err .profile-fetch-log__state {
  color: #fff;
  background: linear-gradient(135deg, #f87171, #dc2626);
}
.profile-fetch-log__state--pending {
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}
.profile-fetch-log__item--pending {
  border-style: dashed;
  opacity: 0.92;
}
.profile-fetch-log__detail {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: #7b8aa6;
  font-weight: 500;
}
.profile-skel-rep-wrap .profile-skel-rep-body {
  opacity: 0.38;
  filter: saturate(0.65);
  transition: opacity 0.2s ease;
}

/* --- Player Reputation (Steam-heuristisch) --- */
.rep-wrap h3 {
  margin-top: 0;
}
.rep-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.rep-head__main {
  flex: 1;
  min-width: 0;
}
.rep-head__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 14px;
}
.rep-head__title-row h3 {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.rep-head-info.rep-port-info {
  flex-shrink: 0;
  margin-top: 2px;
}
.rep-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  padding: 8px 12px;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--text);
  background: rgba(10, 12, 18, 0.45);
}
.rep-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px) {
  .rep-grid {
    grid-template-columns: 1fr;
  }
  .rep-aside {
    justify-items: start;
  }
}
.rep-aside {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 10px 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 8, 13, 0.35);
}
.rep-gauge {
  --p: 0;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(rgba(74, 222, 128, 0.95) calc(var(--p) * 1%), rgba(148, 163, 184, 0.22) 0);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}
.rep-gauge-inner {
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: #0b0d12;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.rep-gauge-k {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.rep-gauge-s {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 750;
}
.rep-gauge--ok {
  background: conic-gradient(rgba(74, 222, 128, 0.95) calc(var(--p) * 1%), rgba(148, 163, 184, 0.22) 0);
}
.rep-gauge--warn {
  background: conic-gradient(rgba(245, 158, 11, 0.92) calc(var(--p) * 1%), rgba(148, 163, 184, 0.22) 0);
}
.rep-gauge--bad {
  background: conic-gradient(rgba(248, 113, 113, 0.92) calc(var(--p) * 1%), rgba(148, 163, 184, 0.22) 0);
}
.rep-gauge--muted {
  background: conic-gradient(rgba(56, 189, 248, 0.55) calc(var(--p) * 1%), rgba(148, 163, 184, 0.22) 0);
}
.rep-trust-title {
  margin-top: 6px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.rep-trust-inline {
  margin: 4px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.rep-port-trail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.rep-status-dot {
  width: 30px;
  height: 16px;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.rep-status-dot--ok {
  background: linear-gradient(180deg, rgba(110, 231, 183, 0.95), rgba(34, 197, 94, 0.75));
}
.rep-status-dot--warn {
  background: linear-gradient(180deg, rgba(253, 224, 171, 0.95), rgba(245, 158, 11, 0.78));
}
.rep-status-dot--bad {
  background: linear-gradient(180deg, rgba(254, 202, 202, 0.95), rgba(239, 68, 68, 0.78));
}
.rep-port-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  margin: 0;
  padding: 0 6px;
  border: 0;
  border-radius: 8px;
  cursor: help;
  font-size: 0.85rem;
  font-weight: 900;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  transition: color 0.15s ease, background 0.15s ease;
}
.rep-port-info:hover,
.rep-port-info:focus-visible {
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.12);
  outline: none;
}
.rep-port-info__q {
  line-height: 1;
}
.rep-port-info__pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 25;
  width: min(300px, 78vw);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  color: #e8edf7;
  background: #12151f;
  border: 1px solid rgba(125, 211, 252, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, visibility 0.16s ease;
}
.rep-port-info:hover .rep-port-info__pop,
.rep-port-info:focus-visible .rep-port-info__pop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.rep-ports {
  width: 100%;
  margin-top: 8px;
  display: grid;
  gap: 8px;
}
.rep-port {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(10, 12, 18, 0.35);
  font-size: 0.82rem;
}
.rep-port .k {
  color: var(--muted);
  font-weight: 750;
}
.rep-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rep-band {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(10, 12, 18, 0.45);
}
.rep-band__intro {
  flex: 1;
  min-width: 0;
}
.rep-band-t-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.rep-band-t-row .rep-band-t {
  margin: 0;
  flex: 1;
  min-width: 0;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.rep-band-info.rep-port-info {
  flex-shrink: 0;
  margin-top: -1px;
}
.rep-port-info__pop--stack {
  width: min(320px, 88vw);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.rep-band-pop__line {
  display: block;
  font-weight: 600;
  line-height: 1.45;
}
.rep-band-pop__line--mono {
  font-size: 0.74rem;
  font-weight: 650;
  color: #cbd5e1;
}
.rep-band-legend {
  margin: 10px 0 0;
  padding: 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 550;
}
.rep-band-legend strong {
  color: #e2e8f0;
  font-weight: 750;
}
.rep-band-legend__sw {
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
  margin-left: 1px;
  border-radius: 3px;
}
.rep-band-legend__sw--green {
  width: 14px;
  height: 7px;
  background: rgba(34, 197, 94, 0.42);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.22);
}
.rep-band-legend__sw--violet {
  width: 3px;
  height: 11px;
  margin-right: 6px;
  border-radius: 1px;
  background: #c084fc;
  box-shadow: 0 0 6px rgba(192, 132, 252, 0.45);
}
.rep-band-legend__sw--red {
  width: 14px;
  height: 7px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, transparent, rgba(90, 18, 28, 0.85));
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.12);
}
.rep-band-legend__sep {
  margin: 0 5px;
  opacity: 0.45;
}
.rep-band-s {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  max-width: 80ch;
}
.rep-band-m {
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 0.78rem;
}
.rep-band-tag {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 12px;
}
.rep-band-tag--low {
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
}
.rep-band-tag--mid {
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}
.rep-band-tag--ok {
  color: #bbf7d0;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
}
.rep-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 720px) {
  .rep-metric-grid {
    grid-template-columns: 1fr;
  }
}
.rep-metric {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(7, 8, 13, 0.35);
  padding: 10px 34px 12px 10px;
}
.rep-metric--viz {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rep-metric-viz-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding-right: 2px;
}
.rep-metric-viz-val {
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #4ade80;
  text-shadow: 0 0 22px rgba(74, 222, 128, 0.22);
}
.rep-metric-viz-label {
  flex: 1 1 8rem;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}
.rep-metric-bar {
  margin-top: 0;
}
.rep-metric-bar__track {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: rgba(12, 14, 22, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  /* Äußere Pille; innen liegende Segmente bleiben eckig → fließender Übergang */
  overflow: hidden;
}
/* Roter Bereich ab Datenbank-Ø (left/width per Metrik inline) */
.rep-metric-bar__risk {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 0;
  border-radius: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(90, 20, 26, 0.35) 0%,
    rgba(69, 10, 10, 0.55) 38%,
    rgba(55, 10, 14, 0.9) 72%,
    rgba(40, 6, 10, 0.97) 100%
  );
  box-shadow: inset 1px 0 0 rgba(248, 113, 113, 0.1);
}
.rep-metric-bar__good {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  border-radius: 0;
  background: rgba(34, 197, 94, 0.26);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.12);
  pointer-events: auto;
  max-width: 100%;
}
.rep-metric-bar__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.95), rgba(74, 222, 128, 0.88));
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.35);
  max-width: 100%;
  pointer-events: none;
}
/* Zwischen Ist-Wert (Ende grüner Fill) und Datenbank-Ø */
.rep-metric-bar__to-avg {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  border-radius: 0;
  pointer-events: none;
  background: rgba(74, 222, 128, 0.22);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.1);
}
.rep-metric-bar__avg {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  border-radius: 0;
  background: #c084fc;
  box-shadow: 0 0 6px rgba(192, 132, 252, 0.65);
  pointer-events: auto;
  z-index: 4;
}
.rep-metric-info {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  cursor: help;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  transition: color 0.15s ease, background 0.15s ease;
}
.rep-metric-info:hover,
.rep-metric-info:focus-visible {
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.12);
  outline: none;
}
.rep-metric-info__ic {
  display: block;
  flex-shrink: 0;
}
.rep-metric-info__pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: min(280px, 70vw);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  color: #e8edf7;
  background: #12151f;
  border: 1px solid rgba(125, 211, 252, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, visibility 0.16s ease;
}
.rep-metric-info:hover .rep-metric-info__pop,
.rep-metric-info:focus-visible .rep-metric-info__pop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.rep-ban {
  margin-top: 8px;
  padding: 14px 16px 16px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.14);
  background: linear-gradient(145deg, rgba(16, 20, 32, 0.88) 0%, rgba(8, 10, 16, 0.72) 100%);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.rep-ban__head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.rep-ban-hd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.rep-ban-hd .tag {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(7, 9, 14, 0.5);
}
.rep-ban-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 640px) {
  .rep-ban-list {
    grid-template-columns: 1fr;
  }
}
.rep-ban-i {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rep-ban-badge {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e8edf7;
  background: rgba(7, 9, 14, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.14);
  cursor: help;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    color 0.18s ease;
}
.rep-ban-badge:hover {
  transform: translateY(-1px);
}
.rep-ban-badge:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.55);
  outline-offset: 2px;
}
.rep-ban-badge--ok {
  color: #a7f3d0;
  border-color: rgba(74, 222, 128, 0.38);
  background: linear-gradient(165deg, rgba(20, 83, 45, 0.22) 0%, rgba(7, 9, 14, 0.75) 100%);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.08), 0 10px 32px rgba(34, 197, 94, 0.12);
}
.rep-ban-badge--ok:hover {
  border-color: rgba(110, 231, 183, 0.55);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.12), 0 14px 36px rgba(34, 197, 94, 0.16);
}
.rep-ban-badge--warn {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.38);
  background: linear-gradient(165deg, rgba(120, 53, 15, 0.2) 0%, rgba(7, 9, 14, 0.75) 100%);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.08), 0 10px 32px rgba(245, 158, 11, 0.1);
}
.rep-ban-badge--warn:hover {
  border-color: rgba(252, 211, 77, 0.5);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.12), 0 14px 36px rgba(245, 158, 11, 0.14);
}
.rep-ban-badge--bad {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.45);
  background: linear-gradient(165deg, rgba(127, 29, 29, 0.28) 0%, rgba(7, 9, 14, 0.78) 100%);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.1), 0 10px 32px rgba(220, 38, 38, 0.14);
}
.rep-ban-badge--bad:hover {
  border-color: rgba(252, 165, 165, 0.55);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.14), 0 14px 36px rgba(220, 38, 38, 0.18);
}
.rep-anom {
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.06);
  padding: 10px 12px;
}
.rep-anom--secondary {
  margin-top: 12px;
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(148, 163, 184, 0.06);
}
.rep-anom-hd {
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.rep-anom-list {
  margin: 0;
  padding-left: 18px;
  color: #e8edf7;
  line-height: 1.45;
  font-size: 0.86rem;
}
.rep-anom-i {
  margin: 6px 0;
}
.rep-anom-bad strong {
  color: #fecaca;
}
.rep-anom-warn strong {
  color: #fde68a;
}
.rep-anom-info strong {
  color: #bae6fd;
}

/* —— Profil-Shell (Sidebar + Tabs, csrep-nah) —— */
.profile-async-mount {
  margin-top: 0;
}
.profile-async-mount--pending {
  min-height: 42vh;
}
.profile-shell--skeleton {
  pointer-events: none;
}
.profile-skel-shimmer {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.08), rgba(148, 163, 184, 0.2), rgba(148, 163, 184, 0.08));
  background-size: 200% 100%;
  animation: profile-skel-shimmer 1.15s ease-in-out infinite;
}
.profile-shell--skeleton .profile-level-badge--skel {
  color: transparent;
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.35), rgba(185, 28, 28, 0.45));
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.profile-shell--skeleton .profile-skel-block {
  display: block;
  border-radius: 8px;
  min-height: 10px;
}
.profile-shell--skeleton .profile-skel-block--name {
  width: 88%;
  min-height: 18px;
  border-radius: 9px;
}
.profile-shell--skeleton .profile-skel-block--joined {
  width: 62%;
  min-height: 11px;
  margin-top: 7px;
}
.profile-shell--skeleton .profile-state--skel,
.profile-shell--skeleton .profile-vis-pill--skel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  color: transparent;
}
.profile-shell--skeleton .profile-state--skel {
  margin-right: 6px;
}
.profile-shell--skeleton .profile-avatar-tile__img--skel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.profile-shell--skeleton .profile-dock__btn--skel {
  color: transparent;
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.profile-shell--skeleton .profile-tile--skel .profile-skel-wisp {
  display: block;
  border-radius: 6px;
  min-height: 9px;
  opacity: 0.55;
}
.profile-shell--skeleton .profile-tile--skel .profile-skel-wisp--wide {
  min-height: 14px;
  width: 72%;
}
.profile-shell--skeleton .profile-tile--skew .profile-skel-wisp--skew-k {
  width: 58%;
  min-height: 8px;
}
.profile-shell--skeleton .profile-tile--skew .profile-skel-wisp--skew-v {
  width: 46%;
  min-height: 16px;
  margin-top: 4px;
}
.profile-shell--skeleton .profile-badge-cell--skel {
  justify-content: center;
  gap: 5px;
}
.profile-shell--skeleton .profile-badge-cell--skel .profile-skel-wisp--badge-l {
  width: 78%;
  min-height: 8px;
}
.profile-shell--skeleton .profile-badge-cell--skel .profile-skel-wisp--badge-s {
  width: 42%;
  min-height: 10px;
}
.profile-shell--skeleton .profile-kpi-strip__v.profile-skel-wisp--kpi-v {
  min-height: 14px;
  width: 52%;
  margin-top: 2px;
}
.profile-shell--skeleton .profile-kpi-strip__l.profile-skel-wisp--kpi-l {
  min-height: 7px;
  width: 48%;
  margin-top: 3px;
  opacity: 0.5;
}
.profile-shell--skeleton .profile-skel-trust-num {
  display: block;
  width: 36px;
  height: 18px;
  margin: 4px auto 0;
  border-radius: 6px;
}
.profile-shell--skeleton .profile-skel-block--mono {
  width: 92%;
  margin-left: auto;
  margin-right: auto;
  min-height: 11px;
}
.profile-shell--skeleton .profile-skel-block--wr {
  width: 48%;
  margin: 8px auto 0;
  min-height: 10px;
}
.profile-shell--skeleton .profile-cache--skel {
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.75);
  font-weight: 600;
}
.profile-shell--skeleton .profile-btn-skel {
  display: flex;
  min-height: 42px;
  border-radius: 11px;
  pointer-events: none;
}
.profile-shell--skeleton .profile-tab--skel {
  cursor: default;
  color: rgba(148, 163, 184, 0.55);
  background: rgba(10, 12, 18, 0.35);
  border: 1px solid transparent;
}
.profile-shell--skeleton .profile-tab--skel.is-active {
  color: rgba(6, 17, 12, 0.92);
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.55), rgba(34, 211, 238, 0.42));
  box-shadow: 0 6px 18px rgba(0, 255, 136, 0.12);
}
.profile-shell--skeleton .profile-tab--skel:not(.is-active) {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.06), rgba(148, 163, 184, 0.16), rgba(148, 163, 184, 0.06));
  background-size: 200% 100%;
  animation: profile-skel-shimmer 1.15s ease-in-out infinite;
}
.profile-shell--skeleton .profile-skel-rep-wrap .profile-skel-block--h3 {
  width: min(420px, 88%);
  min-height: 22px;
  border-radius: 10px;
}
.profile-shell--skeleton .profile-skel-rep-pill {
  color: transparent;
  min-width: 64px;
  border-color: rgba(148, 163, 184, 0.12);
  background: rgba(10, 12, 18, 0.55);
}
.profile-shell--skeleton .profile-skel-rep-gauge {
  width: 132px;
  height: 132px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(rgba(74, 222, 128, 0.65) 0 58%, rgba(148, 163, 184, 0.18) 0);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.38);
}
.profile-shell--skeleton .profile-skel-rep-gauge__inner {
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: #0b0d12;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.profile-shell--skeleton .profile-skel-block--gauge-cap {
  width: 72%;
  margin: 10px auto 0;
  min-height: 9px;
}
.profile-shell--skeleton .profile-skel-rep-ports {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}
.profile-shell--skeleton .profile-skel-rep-port-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(7, 8, 13, 0.28);
}
.profile-shell--skeleton .profile-skel-wisp--port-k {
  flex: 1;
  min-height: 9px;
  max-width: 72%;
}
.profile-shell--skeleton .profile-skel-wisp--port-dot {
  flex: 0 0 16px;
  height: 16px;
  border-radius: 50%;
}
.profile-shell--skeleton .profile-skel-rep-main {
  padding: 8px 4px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(7, 8, 13, 0.28);
}
.profile-shell--skeleton .profile-skel-block--lead {
  width: 94%;
  min-height: 13px;
  margin-bottom: 12px;
}
.profile-shell--skeleton .profile-skel-block--line {
  width: 100%;
  min-height: 10px;
  margin-top: 9px;
}
.profile-shell--skeleton .profile-skel-block--line--short {
  width: 72%;
}
.profile-shell--skeleton .profile-skel-block--line--med {
  width: 86%;
}
.profile-shell--skeleton .profile-skel-cards-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.profile-shell--skeleton .profile-skel-mini-card {
  flex: 1;
  min-height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
}
.profile-shell--skeleton .profile-skel-lower-card {
  min-height: 96px;
  padding: 16px 18px;
}
.profile-shell--skeleton .profile-skel-block--h4 {
  width: 38%;
  min-height: 14px;
  margin-bottom: 12px;
}
.profile-shell--skeleton .profile-skel-block--fcount {
  width: 44%;
  margin: 0 auto 10px;
  min-height: 10px;
}
.profile-shell--skeleton .profile-friend--skel {
  text-decoration: none;
  cursor: default;
  pointer-events: none;
}
.profile-shell--skeleton .profile-friend-av--skel {
  opacity: 0.45;
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.profile-shell--skeleton .profile-skel-block--fname {
  width: 70%;
  min-height: 11px;
}
.profile-shell--skeleton .profile-skel-block--fsub {
  width: 52%;
  min-height: 9px;
  margin-top: 5px;
}
.profile-shell--skeleton .profile-friend-steam--skel {
  opacity: 0.35;
  text-decoration: none;
  cursor: default;
}
.profile-shell--skeleton .profile-skel-block,
.profile-shell--skeleton .profile-state--skel,
.profile-shell--skeleton .profile-vis-pill--skel,
.profile-shell--skeleton .profile-avatar-tile__img--skel,
.profile-shell--skeleton .profile-dock__btn--skel,
.profile-shell--skeleton .profile-tile--skel .profile-skel-wisp,
.profile-shell--skeleton .profile-badge-cell--skel .profile-skel-wisp,
.profile-shell--skeleton .profile-kpi-strip__v.profile-skel-wisp,
.profile-shell--skeleton .profile-kpi-strip__l.profile-skel-wisp,
.profile-shell--skeleton .profile-skel-trust-num,
.profile-shell--skeleton .profile-btn-skel,
.profile-shell--skeleton .profile-skel-rep-wrap .profile-skel-block--h3,
.profile-shell--skeleton .profile-skel-rep-pill,
.profile-shell--skeleton .profile-skel-rep-port-row .profile-skel-wisp,
.profile-shell--skeleton .profile-skel-rep-main .profile-skel-block,
.profile-shell--skeleton .profile-skel-mini-card,
.profile-shell--skeleton .profile-skel-lower-card .profile-skel-block,
.profile-shell--skeleton .profile-skel-block--fcount,
.profile-shell--skeleton .profile-friend--skel .profile-skel-block {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.08), rgba(148, 163, 184, 0.2), rgba(148, 163, 184, 0.08));
  background-size: 200% 100%;
  animation: profile-skel-shimmer 1.15s ease-in-out infinite;
}
.profile-async-hint {
  margin: 14px 0 0;
}
.profile-skel-wait {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(148, 163, 184, 0.95);
  padding: 4px 0 12px;
}
.profile-request-timings {
  margin: 16px 0 0;
  padding: 10px 12px;
  max-width: 52rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.35);
  font-size: 0.88rem;
}
.profile-request-timings__summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  list-style-position: outside;
}
.profile-request-timings__list {
  margin: 8px 0 0;
  padding-left: 1.15rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.88);
}
.profile-request-timings__sub {
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.92em;
}
.profile-request-timings__note {
  margin: 10px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.9);
}
.profile-request-timings__h4 {
  margin: 12px 0 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.92);
}
.profile-request-timings__sub-block {
  margin: 6px 0 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgba(148, 163, 184, 0.95);
}
@keyframes profile-skel-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
.profile-shell {
  display: grid;
  grid-template-columns: minmax(248px, 286px) minmax(0, 1fr) minmax(252px, 340px);
  grid-template-rows: auto 1fr;
  gap: 18px 22px;
  align-items: start;
  margin-top: 10px;
}
.profile-shell > .profile-tabs {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
}
.profile-shell > .profile-side {
  grid-column: 1;
  grid-row: 1 / -1;
}
.profile-shell > .profile-main {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}
.profile-shell > .profile-friends {
  grid-column: 3;
  grid-row: 1 / -1;
}
@media (max-width: 1180px) {
  .profile-shell {
    display: flex;
    flex-direction: column;
    gap: 14px 18px;
    align-items: stretch;
  }
  .profile-shell > .profile-tabs,
  .profile-shell > .profile-side,
  .profile-shell > .profile-main,
  .profile-shell > .profile-friends {
    grid-column: unset;
    grid-row: unset;
    width: 100%;
    max-width: none;
  }
  .profile-side,
  .profile-friends {
    position: static;
    height: auto;
    max-height: none;
  }
}
.profile-side {
  position: sticky;
  top: 18px;
  padding: 18px 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--card);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.profile-side--card .profile-side__stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* —— Profilkarte (Referenz: vertikaler Gaming-Header + Dock + Kacheln) —— */
.profile-hero {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.profile-level-badge {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, #f87171, #b91c1c 72%);
  border: 2px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 6px 18px rgba(185, 28, 28, 0.35);
}
.profile-hero__meta {
  flex: 1;
  min-width: 0;
}
.profile-display-name {
  font-size: 1.12rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  word-break: break-word;
}
.profile-joined {
  margin-top: 5px;
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 600;
}
.profile-state-line {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.profile-state {
  font-size: 0.8rem;
  font-weight: 750;
}
.profile-state--away {
  color: #fde047;
}
.profile-state--on {
  color: #4ade80;
}
.profile-state--off {
  color: #94a3b8;
}
.profile-state--idle {
  color: #cbd5e1;
}
.profile-vis-pill {
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  background: rgba(7, 8, 13, 0.45);
}

.profile-avatar-tile {
  position: relative;
  width: min(220px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(56, 189, 248, 0.06);
  background: #0b0d12;
}
.profile-avatar-tile__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-avatar-tile__dot {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #64748b;
  border: 2px solid #12151f;
  box-sizing: border-box;
}
.profile-avatar-tile__dot.is-on {
  background: #4ade80;
}
.profile-avatar-tile__tenure {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 4px 7px;
  border-radius: 8px;
  color: #fef3c7;
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.95), rgba(120, 53, 15, 0.92));
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.profile-dock {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.profile-dock__btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(10, 12, 18, 0.75);
  color: #cbd5e1;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.profile-dock__btn:hover {
  border-color: rgba(125, 211, 252, 0.35);
  background: rgba(20, 26, 38, 0.95);
  color: #e8edf7;
  text-decoration: none;
  transform: translateY(-1px);
}
.profile-dock__ic {
  opacity: 0.88;
}
.profile-dock__cs2 {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fbbf24;
}
.profile-dock__btn--leetify {
  border-color: rgba(244, 114, 182, 0.25);
}
.profile-dock__leet {
  font-size: 1.05rem;
  font-weight: 900;
  font-style: italic;
  background: linear-gradient(135deg, #fb7185, #f472b6 45%, #e879f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.profile-dock__btn--faceit {
  border-color: rgba(255, 85, 0, 0.35);
  color: #ff6b2d;
}
.profile-dock__ic--faceit {
  opacity: 1;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.profile-tile {
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 8, 13, 0.5);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 64px;
}
.profile-tile--link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.profile-tile--link:hover {
  border-color: rgba(125, 211, 252, 0.28);
  background: rgba(12, 16, 24, 0.65);
  text-decoration: none;
}
.profile-tile__k {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.profile-tile__v {
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}
.profile-tile__sub {
  font-size: 0.78rem;
  font-weight: 650;
  color: #94a3b8;
}
.profile-tile--dim {
  opacity: 0.55;
}
.profile-tile--skew {
  position: relative;
  overflow: hidden;
  border: none;
  background: linear-gradient(118deg, rgba(30, 64, 175, 0.55) 0%, rgba(37, 99, 235, 0.85) 42%, rgba(14, 165, 233, 0.45) 100%);
  transform: skewX(-4deg);
  margin-left: 2px;
}
.profile-tile--skew .profile-tile__skew-k,
.profile-tile--skew .profile-tile__skew-v {
  transform: skewX(4deg);
}
.profile-tile__skew-k {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
}
.profile-tile__tag {
  font-weight: 700;
  opacity: 0.85;
}
.profile-tile__skew-v {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
}
.profile-tile--faceit {
  position: relative;
  padding-left: 22px;
}
.profile-tile__fc-dot {
  position: absolute;
  left: 9px;
  top: 50%;
  margin-top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.55);
}

.profile-cs2space-strip {
  margin-top: 10px;
  padding: 11px 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(8, 47, 73, 0.35);
}
.profile-cs2space-strip__notice {
  margin: 0 0 8px;
  font-size: 0.78rem;
  line-height: 1.45;
}
.profile-cs2space-strip__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: stretch;
}
.profile-cs2space-chip {
  min-width: 0;
  flex: 1 1 calc(50% - 6px);
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(10, 12, 18, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.1);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-cs2space-chip--wide {
  flex: 1 1 100%;
}
.profile-cs2space-chip__k {
  font-size: 0.62rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}
.profile-cs2space-chip__v {
  font-size: 0.92rem;
  font-weight: 800;
  color: #e2e8f0;
  word-break: break-all;
}
.profile-cs2space-chip__sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
}
.profile-cs2space-commends {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 14px;
  margin-top: 4px;
  padding-top: 2px;
}
.profile-cs2space-commend {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 52px;
  flex: 1 1 auto;
}
.profile-cs2space-commend__ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.14);
}
.profile-cs2space-commend__svg {
  display: block;
}
.profile-cs2space-commend--friendly .profile-cs2space-commend__ic {
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.25);
}
.profile-cs2space-commend--teacher .profile-cs2space-commend__ic {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.28);
}
.profile-cs2space-commend--leader .profile-cs2space-commend__ic {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}
.profile-cs2space-commend__n {
  font-size: 1rem;
  font-weight: 850;
  color: #f1f5f9;
  line-height: 1;
  letter-spacing: -0.02em;
}
.profile-cs2space-featured {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.profile-cs2space-featured__img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}
.profile-cs2space-featured__txt {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-cs2space-featured__name {
  font-size: 0.84rem;
  font-weight: 750;
  color: #f1f5f9;
  line-height: 1.35;
}
.profile-cs2space-featured__rarity {
  font-size: 0.72rem;
  color: #94a3b8;
}

.profile-badges-block {
  padding-top: 2px;
}
.profile-badges-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.profile-badges-grid--extra {
  margin-top: 8px;
}
.profile-badge-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(10, 12, 18, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px 4px;
  text-align: center;
  min-height: 0;
}
.profile-badge-cell__label {
  font-size: 0.62rem;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #cbd5e1;
  max-height: 2.35em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  word-break: break-word;
}
.profile-badge-cell__sub {
  font-size: 0.68rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #f1f5f9;
  letter-spacing: 0.02em;
  opacity: 0.92;
}
.profile-badges-more {
  margin-top: 8px;
  border-radius: 10px;
}
.profile-badges-more__sum {
  cursor: pointer;
  list-style: none;
  list-style-type: none;
  font-size: 0.74rem;
  font-weight: 750;
  color: #7dd3fc;
  text-align: center;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px dashed rgba(125, 211, 252, 0.22);
  background: rgba(56, 189, 248, 0.05);
}
.profile-badges-more__sum::-webkit-details-marker {
  display: none;
}
.profile-badges-more[open] .profile-badges-more__sum {
  color: #bae6fd;
  border-style: solid;
}

.profile-kpi-strip {
  display: flex;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 18, 28, 0.65);
  overflow: hidden;
}
.profile-kpi-strip__i {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 6px;
  border-right: 1px solid rgba(148, 163, 184, 0.08);
}
.profile-kpi-strip__i:last-child {
  border-right: 0;
}
.profile-kpi-strip__ic {
  font-size: 0.72rem;
  opacity: 0.45;
  line-height: 1;
}
.profile-kpi-strip__v {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text);
}
.profile-kpi-strip__l {
  font-size: 0.62rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.profile-trust-split {
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.72rem;
  font-weight: 800;
}
.profile-trust-split__pill {
  flex: 0 0 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.profile-trust-split__pill--pos {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.22), rgba(22, 101, 52, 0.35));
  color: #bbf7d0;
}
.profile-trust-split__pill--neg {
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.18), rgba(127, 29, 29, 0.32));
  color: #fecaca;
}
.profile-trust-split__mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(7, 8, 13, 0.65);
  font-size: 1.25rem;
  font-weight: 900;
  color: #e8edf7;
  padding: 8px 4px;
}
.profile-trust-split__mid::before {
  content: "Score";
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.profile-mono {
  margin-top: 12px;
  text-align: center;
  font-size: 0.76rem;
  word-break: break-all;
  color: #94a3b8;
}
.profile-mono--side {
  margin-top: 0;
  font-size: 0.7rem;
}
.profile-wr-note {
  margin: 0;
  text-align: center;
  font-size: 0.74rem;
  color: #94a3b8;
}

/* Legacy .pq — weiterhin für andere Bereiche nutzbar */
.pq {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 0.82rem;
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(7, 8, 13, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.1);
}
.pq-k {
  color: var(--muted);
  font-weight: 600;
}
.pq-v {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.profile-cache {
  margin: 14px 0 0;
  padding: 10px 11px;
  border-radius: 11px;
  border: 1px solid rgba(56, 189, 248, 0.16);
  background: rgba(56, 189, 248, 0.06);
  font-size: 0.72rem;
  line-height: 1.45;
  color: #94a3b8;
  text-align: center;
  font-weight: 600;
}
.profile-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile-actions .btn {
  width: 100%;
  justify-content: center;
}

.profile-friends {
  position: sticky;
  top: 0;
  align-self: start;
  padding: 20px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--card);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
@media (min-width: 1181px) {
  .profile-friends {
    height: 100vh;
    max-height: 100vh;
  }
}
.profile-friends-title {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}
.profile-friends-tag {
  margin: 0 0 12px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
}
.profile-friends-tag__hint {
  display: block;
  margin-top: 6px;
  font-weight: 550;
  line-height: 1.45;
  color: #94a3b8;
}
.profile-friends-search-hint {
  margin: 6px 0 0;
  font-size: 0.68rem;
  line-height: 1.4;
  text-align: center;
}
.profile-friends-count {
  margin: 0 0 10px;
  text-align: center;
  font-size: 0.72rem;
  color: #94a3b8;
}
.profile-friends-search-wrap {
  margin: 0 0 10px;
}
.profile-friends-search {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(55, 60, 72, 0.95);
  background: rgba(10, 12, 18, 0.9);
  color: var(--text);
  font-size: 0.78rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.profile-friends-search::placeholder {
  color: #64748b;
  font-size: 0.74rem;
}
.profile-friends-search:focus {
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.12);
}
.profile-friends-search--skel {
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.06), rgba(148, 163, 184, 0.14), rgba(148, 163, 184, 0.06));
  background-size: 200% 100%;
  animation: profile-skel-shimmer 1.15s ease-in-out infinite;
  border: 1px solid rgba(148, 163, 184, 0.1);
}
.profile-friends-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 211, 252, 0.42) rgba(7, 8, 13, 0.55);
}
.profile-friends-list::-webkit-scrollbar {
  width: 9px;
}
.profile-friends-list::-webkit-scrollbar-track {
  margin: 6px 0;
  background: rgba(7, 8, 13, 0.45);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.08);
}
.profile-friends-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  background-image: linear-gradient(
    180deg,
    rgba(147, 197, 253, 0.55) 0%,
    rgba(56, 189, 248, 0.38) 55%,
    rgba(14, 165, 233, 0.32) 100%
  );
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.12);
}
.profile-friends-list::-webkit-scrollbar-thumb:hover {
  background-image: linear-gradient(
    180deg,
    rgba(186, 230, 253, 0.75) 0%,
    rgba(125, 211, 252, 0.55) 50%,
    rgba(56, 189, 248, 0.48) 100%
  );
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.22);
}
.profile-friends-list::-webkit-scrollbar-thumb:active {
  background-image: linear-gradient(180deg, rgba(125, 211, 252, 0.65), rgba(14, 165, 233, 0.45));
}
.profile-friends-list::-webkit-scrollbar-corner {
  background: transparent;
}
.profile-friends-list > li[hidden] {
  display: none !important;
}
.profile-friends-list > li {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(7, 8, 13, 0.35);
  padding: 4px 6px 4px 4px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.profile-friends-list > li:hover {
  border-color: rgba(125, 211, 252, 0.25);
  background: rgba(12, 16, 24, 0.55);
}
.profile-friend {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 2px;
  text-decoration: none;
  color: inherit;
}
.profile-friend:hover {
  text-decoration: none;
}
.profile-friend-av-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
}
.profile-friend-av {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.profile-friend-av--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(51, 65, 85, 0.45);
  color: #64748b;
  font-weight: 800;
  font-size: 0.95rem;
}
.profile-friend-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #475569;
  border: 2px solid #12151f;
  box-sizing: border-box;
}
.profile-friend-dot.is-on {
  background: #4ade80;
}
.profile-friend-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.profile-friend-name {
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-friend-sub {
  font-size: 0.68rem;
  color: #94a3b8;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-friend-steam {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
}
.profile-friend-steam:hover {
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.12);
  text-decoration: none;
}
.profile-friends-more {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 0.76rem;
}

.profile-main {
  min-width: 0;
}
.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  margin-bottom: 18px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(15, 17, 26, 0.75);
}
.profile-tab {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 11px 10px;
  border-radius: 11px;
  font-weight: 750;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.25;
}
.profile-tab-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.82;
}
.profile-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}
.profile-tab.is-active {
  color: #06110c;
  background: linear-gradient(135deg, #00ff88, #22d3ee);
  box-shadow: 0 10px 28px rgba(0, 255, 136, 0.22);
}
.tab-panel {
  display: none;
}
.tab-panel.is-active {
  display: block;
}
.tab-panel-h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}
.tab-panel-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 85ch;
}

/* —— Inventar-Tab —— */
.inv-hero {
  padding: 22px 22px 26px;
}
.inv-title {
  margin: 0 0 8px;
  font-size: 1.32rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}
.inv-lead {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 78ch;
  font-size: 0.92rem;
}
.inv-debug {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(7, 8, 13, 0.45);
}
.inv-debug__sum {
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 750;
  font-size: 0.84rem;
  color: #7dd3fc;
  list-style: none;
}
.inv-debug__sum::-webkit-details-marker {
  display: none;
}
.inv-debug__pre {
  margin: 0;
  padding: 0 12px 12px;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}
.inv-meta {
  margin: 0 0 12px;
  color: #9fb0cb;
  font-size: 0.82rem;
}
.inv-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 20px;
  margin-bottom: 14px;
}
.inv-head-main {
  flex: 1 1 280px;
  min-width: 0;
}
.inv-head-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.inv-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 18, 28, 0.75);
  color: #e8edf7;
}
.inv-pill--items {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.12);
  color: #bae6fd;
}
.inv-pill--sum {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(22, 163, 74, 0.14);
  color: #4ade80;
  font-variant-numeric: tabular-nums;
}
.inv-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
  margin-top: 4px;
}
.inv-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.inv-field__lab {
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}
.inv-input,
.inv-select {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(7, 8, 13, 0.65);
  color: #e8edf7;
  font-size: 0.86rem;
  padding: 8px 11px;
  min-width: 0;
}
.inv-input {
  width: min(320px, 100%);
}
.inv-input:focus,
.inv-select:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2);
}
.inv-select {
  cursor: pointer;
}
.inv-stattrak {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  padding: 6px 0;
}
.inv-stattrak__cb {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.inv-stattrak__ui {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.inv-stattrak__ui::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  top: 1px;
  left: 2px;
  background: #e2e8f0;
  transition: transform 0.2s ease;
}
.inv-stattrak__cb:checked + .inv-stattrak__ui {
  background: rgba(34, 197, 94, 0.35);
  border-color: rgba(74, 222, 128, 0.55);
}
.inv-stattrak__cb:checked + .inv-stattrak__ui::after {
  transform: translateX(16px);
}
.inv-stattrak__txt {
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
}
.inv-price-note {
  margin: 0 0 14px;
}
.inv-foot-note {
  margin-top: 14px;
}
.inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}
.inv-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(165deg, rgba(26, 29, 40, 0.96), rgba(12, 14, 22, 0.92));
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.inv-card.is-hidden {
  display: none !important;
}
.inv-card-price {
  padding: 10px 12px 2px;
  font-size: 1.05rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: #4ade80;
  line-height: 1.1;
}
.inv-card-unit {
  padding: 0 12px 6px;
  font-size: 0.68rem;
  color: #64748b;
}
.inv-card-link {
  display: block;
  margin-top: auto;
  padding: 8px 12px 11px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.inv-card-link:hover {
  color: #7dd3fc;
}
.inv-card-wear {
  margin-top: 5px;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.25;
}
.inv-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 136, 0.38);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(0, 255, 136, 0.12);
}
.inv-card-img {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 72% 78% at 50% 52%, rgba(139, 92, 246, 0.2), transparent 60%),
    radial-gradient(ellipse 90% 80% at 50% 100%, rgba(0, 255, 136, 0.08), transparent 58%),
    linear-gradient(165deg, #141824, #0a0c12);
  position: relative;
}
.inv-card-img img {
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}
.inv-card-ph {
  font-size: 2rem;
  font-weight: 800;
  color: #334155;
}
.inv-stack {
  position: absolute;
  right: 7px;
  bottom: 7px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e8edf7;
}
.inv-card-body {
  flex: 1 1 auto;
  padding: 11px 12px 13px;
}
.inv-card-name {
  font-size: 0.8rem;
  font-weight: 780;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.inv-card-rarity {
  margin-top: 7px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c4b5fd;
}
.inv-card-hash {
  margin-top: 6px;
  font-size: 0.64rem;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inv-card[data-rarity*="consumer"],
.inv-card[data-rarity*="gebraucht"] {
  border-top: 2px solid #b0c3d9;
}
.inv-card[data-rarity*="industrial"],
.inv-card[data-rarity*="industrie"] {
  border-top: 2px solid #5e98d9;
}
.inv-card[data-rarity*="mil-spec"],
.inv-card[data-rarity*="militär"] {
  border-top: 2px solid #4b69ff;
}
.inv-card[data-rarity*="restricted"],
.inv-card[data-rarity*="eingeschränkt"] {
  border-top: 2px solid #8847ff;
}
.inv-card[data-rarity*="classified"],
.inv-card[data-rarity*="klassifiziert"] {
  border-top: 2px solid #d32ce6;
}
.inv-card[data-rarity*="covert"],
.inv-card[data-rarity*="verdeckt"] {
  border-top: 2px solid #eb4b4b;
}
.inv-card[data-rarity*="contraband"],
.inv-card[data-rarity*="schmuggel"] {
  border-top: 2px solid #e4ae39;
}
.inv-card[data-rarity*="extraordinary"],
.inv-card[data-rarity*="außergewöhnlich"] {
  border-top: 2px solid #ffd700;
}

/* —— Leetify / FACEIT API-Blöcke —— */
.ext-apis-head {
  margin-bottom: 16px;
}
.ext-apis-head h3 {
  margin: 0 0 8px;
}
.ext-apis-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 88ch;
}
.ext-apis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
@media (max-width: 1180px) {
  .ext-apis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .ext-apis-grid {
    grid-template-columns: 1fr;
  }
}
.ext-api-card {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(10, 12, 18, 0.4);
  padding: 16px 16px 14px;
}
.ext-api-card-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 10px;
}
.ext-api-card-hd h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}
.ext-api-attr {
  margin: 0 0 12px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #94a3b8;
}
.ext-api-attr a {
  color: #c4b5fd;
  font-weight: 650;
}
.ext-api-kv {
  margin-bottom: 12px;
}
.ext-api-subh {
  margin: 14px 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}
.ext-api-table {
  font-size: 0.8rem;
}
.ext-api-table td:first-child {
  max-width: 52%;
  word-break: break-word;
}
.leetify-link {
  font-weight: 750;
  font-size: 0.82rem;
  color: #f84982;
  text-decoration: underline;
}
.leetify-link:hover {
  color: #fb7185;
}
.ext-api-link {
  font-weight: 650;
  font-size: 0.82rem;
}

/* —— Profil-Suche: Vollbild-Ladezustand (Spinner + Skeleton) —— */
body.is-route-loading {
  overflow: hidden;
}

.search-route-loading {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.search-route-loading[hidden] {
  display: none;
}
.search-route-loading__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 13, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.search-route-loading__panel {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(165deg, rgba(18, 21, 31, 0.96) 0%, rgba(10, 12, 18, 0.98) 100%);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(56, 189, 248, 0.06) inset;
  padding: 28px 26px 30px;
}
.search-route-loading__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 26px;
}
.search-route-loading__ring {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.search-route-loading__ring-track {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(148, 163, 184, 0.14);
}
.search-route-loading__ring-dash {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: rgba(56, 189, 248, 0.95);
  border-right-color: rgba(245, 158, 11, 0.45);
  animation: search-route-spin 0.85s linear infinite;
}
.search-route-loading__title {
  margin: 6px 0 0;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--text);
}
.search-route-loading__sub {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
@keyframes search-route-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes search-skel-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.search-route-loading__skel {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr) minmax(220px, 300px);
  gap: 18px 22px;
  align-items: start;
}
@media (max-width: 960px) {
  .search-route-loading__skel {
    grid-template-columns: 1fr;
  }
}
.search-skel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(7, 8, 13, 0.35);
}
.search-skel--side {
  align-items: center;
}
.search-skel--main {
  min-height: 220px;
}
.search-skel--friends {
  min-height: 200px;
}

.search-skel-avatar,
.search-skel-line,
.search-skel-pills i,
.search-skel-block,
.search-skel-btn,
.search-skel-tabs i,
.search-skel-card,
.search-skel-flist i {
  background: linear-gradient(
    100deg,
    rgba(30, 35, 48, 0.55) 0%,
    rgba(71, 85, 105, 0.42) 42%,
    rgba(51, 65, 85, 0.5) 52%,
    rgba(30, 35, 48, 0.55) 100%
  );
  background-size: 220% 100%;
  animation: search-skel-shimmer 1.35s ease-in-out infinite;
}
.search-skel-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  animation-delay: 0.04s;
}
.search-skel-line {
  display: block;
  height: 11px;
  border-radius: 999px;
  width: 100%;
}
.search-skel-line--lg {
  width: 78%;
  height: 14px;
  animation-delay: 0.1s;
}
.search-skel-line--md {
  width: 55%;
  height: 13px;
  margin: 0 auto;
  animation-delay: 0.06s;
}
.search-skel-line--sm {
  width: 52%;
  height: 10px;
  animation-delay: 0.14s;
}
.search-skel-line--xs {
  width: 40%;
  height: 9px;
  margin: 0 auto;
  animation-delay: 0.12s;
}
.search-skel-line--mono {
  width: 92%;
  height: 9px;
  animation-delay: 0.18s;
}
.search-skel-pills {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.search-skel-pills i {
  display: block;
  width: 64px;
  height: 24px;
  border-radius: 999px;
  animation-delay: 0.2s;
}
.search-skel-pills i:last-child {
  width: 88px;
  animation-delay: 0.24s;
}
.search-skel-block {
  height: 34px;
  border-radius: 11px;
  width: 100%;
  animation-delay: 0.28s;
}
.search-skel-block + .search-skel-block {
  animation-delay: 0.32s;
}
.search-skel-btn {
  height: 38px;
  border-radius: 12px;
  width: 100%;
  margin-top: 6px;
  animation-delay: 0.36s;
}
.search-skel-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.search-skel-tabs i {
  flex: 1;
  height: 38px;
  border-radius: 11px;
  animation-delay: 0.08s;
}
.search-skel-tabs i:nth-child(2) {
  animation-delay: 0.12s;
}
.search-skel-tabs i:nth-child(3) {
  animation-delay: 0.16s;
}
.search-skel-card {
  flex: 1 1 auto;
  min-height: 120px;
  border-radius: 14px;
  animation-delay: 0.2s;
}
.search-skel-card--short {
  flex: 0 0 auto;
  min-height: 72px;
  animation-delay: 0.28s;
}
.search-skel-flist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.search-skel-flist i {
  height: 48px;
  border-radius: 12px;
  width: 100%;
}
.search-skel-flist i:nth-child(1) {
  animation-delay: 0.05s;
}
.search-skel-flist i:nth-child(2) {
  animation-delay: 0.1s;
}
.search-skel-flist i:nth-child(3) {
  animation-delay: 0.15s;
}
.search-skel-flist i:nth-child(4) {
  animation-delay: 0.2s;
}
.search-skel-flist i:nth-child(5) {
  animation-delay: 0.25s;
}

@media (prefers-reduced-motion: reduce) {
  .search-route-loading__ring-dash {
    animation: none;
    border-top-color: rgba(56, 189, 248, 0.55);
    border-right-color: rgba(245, 158, 11, 0.35);
    transform: rotate(120deg);
  }
  .search-skel-avatar,
  .search-skel-line,
  .search-skel-pills i,
  .search-skel-block,
  .search-skel-btn,
  .search-skel-tabs i,
  .search-skel-card,
  .search-skel-flist i {
    animation: none;
    background: rgba(51, 65, 85, 0.35);
  }
}
