﻿.hero-card {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: linear-gradient(145deg, rgba(144, 84, 255, 0.2), rgba(5, 197, 255, 0.08) 45%, rgba(31, 29, 36, 0.96));
  box-shadow: var(--shadow-soft);
}

.stat-chip {
  border-radius: var(--radius-md);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  padding: 0.75rem 0.9rem;
}

.index-forum-explorer {
  background:
    radial-gradient(420px 220px at 6% 0%, rgba(187, 255, 0, 0.09), transparent 65%),
    radial-gradient(380px 220px at 95% 0%, rgba(5, 197, 255, 0.13), transparent 62%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
}

.category-tab-row {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.category-tab-row::-webkit-scrollbar {
  height: 8px;
}

.category-tab-row::-webkit-scrollbar-thumb {
  background: rgba(160, 164, 184, 0.3);
  border-radius: 999px;
}

.category-tab {
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--color-text);
  padding: 0.5rem 0.75rem;
  min-width: 178px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.2s ease;
}

.category-tab small {
  color: var(--color-text-muted);
}

.category-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(5, 197, 255, 0.5);
}

.category-tab.active {
  border-color: rgba(187, 255, 0, 0.55);
  background: linear-gradient(140deg, rgba(187, 255, 0, 0.12), rgba(5, 197, 255, 0.08));
}

.category-detail-shell {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.015);
  padding: 0.95rem;
}

.category-subforum-grid {
  display: grid;
  gap: 0.55rem;
}

.subforum-tile {
  border: 1px solid var(--color-border);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.012);
  padding: 0.7rem 0.75rem;
  display: block;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.subforum-tile:hover {
  border-color: rgba(187, 255, 0, 0.45);
  transform: translateY(-1px);
}

.category-thread-list {
  border: 1px solid var(--color-border);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.01);
  padding: 0.7rem 0.75rem;
}

.category-thread-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  padding: 0.55rem;
}

.category-thread-row + .category-thread-row {
  border-top: 1px dashed rgba(160, 164, 184, 0.2);
}

.category-thread-row:hover {
  border-color: rgba(5, 197, 255, 0.35);
  background: rgba(5, 197, 255, 0.05);
}

.home-health-chart-wrap {
  position: relative;
  height: 220px;
}

.home-health-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.poll-option-row {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.018);
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.5rem;
}

.poll-option-row.is-selected {
  border-color: rgba(187, 255, 0, 0.45);
  background: rgba(187, 255, 0, 0.08);
}

.poll-option-progress {
  margin-top: 0.38rem;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.poll-option-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(187, 255, 0, 0.9), rgba(5, 197, 255, 0.78));
}

.poll-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.012);
  padding: 0.75rem;
}

.poll-card-finished {
  opacity: 0.96;
}

.online-now-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.online-now-item {
  width: 92px;
  text-align: center;
  display: grid;
  gap: 0.3rem;
  justify-items: center;
  color: var(--color-text);
}

.online-now-avatar {
  width: 48px;
  height: 48px;
  font-size: 0.95rem;
}

.online-now-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stat-chip strong {
  color: var(--color-text);
}

.profile-hero {
  position: relative;
  overflow: hidden;
}

.profile-hero-cover {
  min-height: 178px;
  background:
    radial-gradient(420px 220px at 8% 10%, rgba(187, 255, 0, 0.18), transparent 60%),
    radial-gradient(460px 260px at 96% 0%, rgba(5, 197, 255, 0.22), transparent 52%),
    linear-gradient(130deg, #1f1d24 0%, #282732 42%, #9054ff 100%);
}

.profile-hero .card-body {
  margin-top: -72px;
}

.profile-avatar-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.profile-kpi {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  padding: 0.65rem 0.75rem;
}

.profile-kpi strong {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.profile-hero-v2 {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(420px 220px at 8% 10%, rgba(187, 255, 0, 0.18), transparent 62%),
    radial-gradient(520px 260px at 100% 0%, rgba(144, 84, 255, 0.5), transparent 58%),
    linear-gradient(120deg, rgba(19, 20, 30, 0.96), rgba(31, 29, 36, 0.96));
  box-shadow: var(--shadow-soft);
}

.profile-hero-v2-inner {
  padding: 1.1rem 1rem 0.95rem;
}

.profile-media-wrap {
  width: 176px;
  min-height: 164px;
  border: 1px solid var(--color-border);
  border-radius: 0.62rem;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, #44485d, #2a2c3a);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.profile-media-wrap::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  right: 10px;
  bottom: 10px;
  background: #ff4000;
  box-shadow: 0 0 0 3px rgba(19, 20, 30, 0.9);
}

.profile-media-wrap.is-online::after {
  background: #23d37b;
}

.profile-media-wrap.is-offline::after {
  background: #ff4000;
}

.profile-avatar-plate {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(145deg, #9054ff, #05c5ff);
  color: #fff;
  font-weight: 700;
  font-size: 1.9rem;
  display: grid;
  place-items: center;
}

.profile-identity-title {
  font-size: 2rem;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.profile-verify-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: rgba(5, 197, 255, 0.2);
  color: #66dfff;
  border: 1px solid rgba(5, 197, 255, 0.5);
}

.profile-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--color-text-muted);
}

.profile-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.profile-mini-metric {
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.8rem 0.95rem;
}

.profile-mini-metric .value {
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
}

.profile-mini-metric .label {
  color: var(--color-text-muted);
}

.profile-header-tabs {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 1rem;
  padding-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.profile-header-tab {
  color: var(--color-text-muted);
  font-weight: 600;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid transparent;
}

.profile-header-tab.active {
  color: var(--color-text);
  border-bottom-color: var(--color-info);
}

.profile-completion-title {
  color: var(--color-text-muted);
  font-weight: 600;
}

.profile-tabs-shell {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  padding: 0.5rem;
}

.profile-content-tabs {
  display: flex;
  gap: 0.45rem;
}

.profile-content-tabs .nav-link {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-muted);
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  transition: all 0.18s ease;
}

.profile-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.35rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 0.74rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
}

.profile-content-tabs .nav-link:hover,
.profile-content-tabs .nav-link:focus-visible {
  border-color: rgba(5, 197, 255, 0.35);
  color: var(--color-text);
}

.profile-content-tabs .nav-link.active {
  border-color: rgba(5, 197, 255, 0.55);
  background: linear-gradient(135deg, rgba(5, 197, 255, 0.2), rgba(144, 84, 255, 0.18));
  color: #f2fbff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.profile-content-panes > .tab-pane {
  padding-top: 0.2rem;
}

.profile-tab-intro {
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background:
    linear-gradient(150deg, rgba(5, 197, 255, 0.09), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.01));
  padding: 0.72rem 0.85rem;
}

.profile-tab-intro h6 {
  letter-spacing: 0.02em;
}

.profile-tab-intro p {
  color: var(--color-text-muted);
  font-size: 0.86rem;
}

.profile-tab-card {
  border-color: rgba(170, 175, 200, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    radial-gradient(200px 60px at 0% 0%, rgba(5, 197, 255, 0.08), transparent 72%);
}

.profile-tab-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.profile-tab-kpi {
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    radial-gradient(160px 50px at 10% 0%, rgba(5, 197, 255, 0.12), transparent 70%);
  padding: 0.7rem 0.8rem;
}

.profile-tab-kpi .kpi-label {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-tab-kpi .kpi-value {
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0.2rem;
}

.profile-tab-kpi .kpi-meta {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

.profile-activity-item,
.profile-update-item,
.profile-report-item {
  border-radius: 0.6rem;
  margin-bottom: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.015);
}

.profile-activity-item:last-child,
.profile-update-item:last-child,
.profile-report-item:last-child {
  margin-bottom: 0;
}

.profile-intel-list {
  display: grid;
  gap: 0.45rem;
}

.profile-intel-row {
  border: 1px solid rgba(160, 164, 184, 0.25);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.48rem 0.62rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.profile-feed-list {
  display: grid;
  gap: 0.62rem;
}

.profile-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.profile-feed-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.82rem;
  align-items: flex-start;
}

.profile-feed-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.58rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e8fbff;
  background: linear-gradient(135deg, rgba(5, 197, 255, 0.48), rgba(144, 84, 255, 0.35));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 6px 16px rgba(5, 197, 255, 0.22);
}

.profile-feed-icon.mod {
  background: linear-gradient(135deg, rgba(187, 255, 0, 0.32), rgba(5, 197, 255, 0.28));
  color: #efffcb;
}

.profile-feed-main {
  min-width: 0;
}

.profile-feed-title {
  display: inline-block;
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.25;
  font-size: 1rem;
  text-decoration: none;
}

.profile-feed-title:hover {
  color: #7fe7ff;
}

.profile-feed-meta {
  margin-top: 0.42rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.profile-feed-meta span {
  border: 1px solid rgba(166, 171, 194, 0.33);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #b7bfd6;
  font-size: 0.75rem;
  line-height: 1;
  padding: 0.28rem 0.52rem;
}

.profile-feed-note {
  margin-top: 0.52rem;
  border-left: 2px solid rgba(5, 197, 255, 0.45);
  padding-left: 0.58rem;
  color: #a9b2c9;
  font-size: 0.83rem;
}

.profile-activity-item,
.profile-update-item {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  border: 1px solid rgba(164, 170, 193, 0.24) !important;
  border-radius: 0.75rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    radial-gradient(220px 60px at 0% 0%, rgba(5, 197, 255, 0.08), transparent 72%);
  padding: 0.64rem 0.72rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-activity-item {
  border-left: 3px solid rgba(5, 197, 255, 0.56) !important;
}

.profile-activity-item:hover,
.profile-update-item:hover {
  transform: translateY(-1px);
  border-color: rgba(5, 197, 255, 0.48) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.profile-update-item .thread-pill {
  border-color: rgba(166, 171, 194, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: #d3dbef;
  font-size: 0.75rem;
  padding: 0.18rem 0.45rem;
}

.profile-empty-inline {
  border: 1px dashed rgba(155, 161, 189, 0.34);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.01);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  padding: 0.8rem 0.85rem;
}

.profile-garage-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.profile-garage-summary .item {
  border: 1px solid var(--color-border);
  border-radius: 0.7rem;
  background: linear-gradient(135deg, rgba(5, 197, 255, 0.08), rgba(255, 255, 255, 0.02));
  padding: 0.62rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.profile-garage-summary .item span {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.profile-garage-summary .item strong {
  font-size: 1rem;
}

.profile-credits-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.profile-credits-summary .item {
  border: 1px solid var(--color-border);
  border-radius: 0.72rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    radial-gradient(140px 52px at 0% 0%, rgba(5, 197, 255, 0.11), transparent 72%);
  padding: 0.62rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.profile-credits-summary .item span {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.profile-credits-summary .item strong {
  font-size: 1rem;
}

.profile-credit-status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-credit-status {
  border: 1px solid rgba(160, 164, 184, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.35rem 0.62rem;
}

.profile-credit-status.is-ok {
  border-color: rgba(35, 211, 123, 0.35);
  background: rgba(35, 211, 123, 0.14);
  color: #c8ffe0;
}

.profile-credit-status.is-warn {
  border-color: rgba(255, 202, 76, 0.38);
  background: rgba(255, 202, 76, 0.16);
  color: #ffe8ad;
}

.profile-credit-status.is-info {
  border-color: rgba(5, 197, 255, 0.36);
  background: rgba(5, 197, 255, 0.16);
  color: #d0f7ff;
}

.profile-credit-rule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
}

.profile-credit-rule {
  border: 1px solid rgba(160, 164, 184, 0.28);
  border-radius: 0.68rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.6rem 0.72rem;
}

.profile-credit-rule h6 {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
}

.profile-credit-rule p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.profile-fleet-card {
  border-color: rgba(155, 161, 189, 0.3);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    radial-gradient(140px 60px at 0% 0%, rgba(5, 197, 255, 0.12), transparent 70%);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-fleet-card:hover {
  transform: translateY(-2px);
  border-color: rgba(5, 197, 255, 0.45);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.profile-fleet-main {
  min-width: 0;
}

.profile-fleet-title {
  font-weight: 700;
  line-height: 1.2;
}

.profile-fleet-subtitle {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  margin-top: 0.14rem;
}

.profile-fleet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.profile-fleet-chips span {
  border: 1px solid rgba(160, 164, 184, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--color-text-muted);
  font-size: 0.72rem;
  padding: 0.18rem 0.45rem;
}

.profile-fleet-link {
  color: #7ee8ff;
  font-size: 0.78rem;
  font-weight: 600;
}

.profile-reputation-card {
  background:
    linear-gradient(145deg, rgba(5, 197, 255, 0.08), rgba(144, 84, 255, 0.06)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.profile-badge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.profile-badge-card {
  border: 1px solid rgba(160, 164, 184, 0.28);
  border-radius: 0.62rem;
  padding: 0.5rem 0.6rem;
  background: rgba(255, 255, 255, 0.02);
}

.profile-badge-tier {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.profile-badge-label {
  margin-top: 0.14rem;
  font-weight: 700;
  font-size: 0.88rem;
}

.profile-achievement-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.profile-achievement-top .item {
  border: 1px solid var(--color-border);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.45rem 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-achievement-top .item span {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.profile-achievement-item {
  border: 1px solid rgba(160, 164, 184, 0.3);
  border-radius: 0.65rem;
  padding: 0.55rem 0.65rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
}

.profile-achievement-item.tier-platinum {
  border-color: rgba(5, 197, 255, 0.5);
  background: linear-gradient(145deg, rgba(5, 197, 255, 0.2), rgba(255, 255, 255, 0.02));
}

.profile-achievement-item.tier-gold {
  border-color: rgba(245, 185, 66, 0.45);
  background: linear-gradient(145deg, rgba(245, 185, 66, 0.18), rgba(255, 255, 255, 0.02));
}

.profile-achievement-item.tier-silver {
  border-color: rgba(162, 176, 196, 0.48);
  background: linear-gradient(145deg, rgba(171, 183, 201, 0.16), rgba(255, 255, 255, 0.02));
}

.profile-achievement-item.tier-bronze {
  border-color: rgba(185, 122, 76, 0.5);
  background: linear-gradient(145deg, rgba(185, 122, 76, 0.14), rgba(255, 255, 255, 0.02));
}

.profile-achievement-item.tier-none {
  border-color: rgba(130, 138, 168, 0.3);
}

.profile-badge-card.tier-platinum {
  border-color: rgba(5, 197, 255, 0.55);
  background: linear-gradient(145deg, rgba(5, 197, 255, 0.22), rgba(255, 255, 255, 0.02));
}

.profile-badge-card.tier-gold {
  border-color: rgba(245, 185, 66, 0.52);
  background: linear-gradient(145deg, rgba(245, 185, 66, 0.22), rgba(255, 255, 255, 0.02));
}

.profile-badge-card.tier-silver {
  border-color: rgba(178, 188, 203, 0.52);
  background: linear-gradient(145deg, rgba(178, 188, 203, 0.2), rgba(255, 255, 255, 0.02));
}

.profile-badge-card.tier-bronze {
  border-color: rgba(185, 122, 76, 0.5);
  background: linear-gradient(145deg, rgba(185, 122, 76, 0.18), rgba(255, 255, 255, 0.02));
}

.profile-update-item.is-installed {
  border-left: 3px solid #28c76f !important;
}

.profile-update-item.is-planned {
  border-left: 3px solid #9054ff !important;
}

.profile-update-item.is-progress {
  border-left: 3px solid #05c5ff !important;
}

.profile-update-item.is-other {
  border-left: 3px solid #8f95aa !important;
}

.profile-report-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.profile-report-summary {
  border: 1px solid var(--color-border);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.48rem 0.62rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.profile-report-summary span {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.profile-report-summary.is-open {
  border-color: rgba(143, 149, 170, 0.42);
}

.profile-report-summary.is-investigating {
  border-color: rgba(245, 185, 66, 0.5);
}

.profile-report-summary.is-resolved {
  border-color: rgba(40, 199, 111, 0.5);
}

.profile-report-summary.is-rejected {
  border-color: rgba(255, 90, 101, 0.5);
}

.profile-metric-row {
  background: rgba(255, 255, 255, 0.04);
}

.profile-report-item {
  border-left: 3px solid rgba(145, 148, 170, 0.7) !important;
}

.profile-report-item.report-status-open {
  border-left-color: #8f95aa !important;
}

.profile-report-item.report-status-investigating {
  border-left-color: #f5b942 !important;
}

.profile-report-item.report-status-resolved {
  border-left-color: #28c76f !important;
}

.profile-report-item.report-status-rejected {
  border-left-color: #ff5a65 !important;
}

.profile-insight-chart-wrap {
  position: relative;
  height: 220px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.55rem 0.2rem;
  background:
    linear-gradient(180deg, rgba(5, 197, 255, 0.05), rgba(5, 197, 255, 0.01) 55%, rgba(0, 0, 0, 0)),
    linear-gradient(140deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.profile-insight-chart {
  width: 100% !important;
  height: 100% !important;
}

.profile-insight-kpis {
  display: grid;
  gap: 0.4rem;
}

.profile-insight-item {
  border: 1px solid var(--color-border);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.42rem 0.6rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
}

.profile-insight-dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  display: inline-block;
}

.profile-insight-dot.installed {
  background: #05c5ff;
}

.profile-insight-dot.planned {
  background: #9054ff;
}

.profile-insight-dot.progress {
  background: #bbff00;
}

.profile-insight-dot.other {
  background: #64647a;
}

.car-detail-hero {
  position: relative;
  overflow: hidden;
}

.car-detail-hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -72px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(187, 255, 0, 0.22), transparent 70%);
  pointer-events: none;
}

.car-owner-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.78);
  background: linear-gradient(140deg, #9054ff, #05c5ff);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: 0 0 64px;
}

.car-hero-note {
  max-width: 760px;
  color: var(--color-text-muted);
}

.build-mod-row {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 0.8rem 0.85rem;
}

.build-mod-row + .build-mod-row {
  margin-top: 0.6rem;
}

.build-mod-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.build-mod-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.car-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.6rem;
}

.car-gallery-item {
  border: 1px solid var(--color-border);
  border-radius: 0.6rem;
  padding: 0.42rem;
  background: rgba(255, 255, 255, 0.02);
}

.car-gallery-thumb {
  width: 100%;
  height: 108px;
  object-fit: cover;
  border-radius: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 991.98px) {
  .profile-media-wrap {
    width: 110px;
    min-height: 110px;
  }

  .profile-avatar-plate {
    width: 62px;
    height: 62px;
    font-size: 1.4rem;
  }

  .profile-identity-title {
    font-size: 1.55rem;
  }

  .car-owner-avatar {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .profile-insight-chart-wrap {
    height: 205px;
  }
}

.thread-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-elevated);
  padding: 0.95rem;
  margin-bottom: 0.8rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

#threadsList {
  display: grid;
  gap: 0.7rem;
}

#threadsList .thread-item {
  margin-bottom: 0;
}

.thread-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.thread-item-main {
  flex: 1 1 auto;
  min-width: 0;
}

.thread-item-title {
  font-size: 1.03rem;
  line-height: 1.35;
}

.thread-item-meta {
  gap: 0.45rem 0.5rem;
}

.thread-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.45rem;
}

.thread-item-stats {
  line-height: 1.45;
}

.thread-item-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  align-items: flex-start;
  white-space: nowrap;
}

.threads-list {
  display: grid;
  gap: 0.65rem;
}

.thread-row-card {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.thread-row-card:hover {
  transform: translateY(-1px);
  border-color: rgba(5, 197, 255, 0.45);
}

.thread-row-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.thread-row-main {
  flex: 1 1 auto;
  min-width: 0;
}

.thread-row-title {
  font-size: 1.05rem;
  line-height: 1.3;
}

.thread-row-meta {
  line-height: 1.45;
  white-space: normal;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
}

.thread-row-meta .mx-1 {
  display: none !important;
}

.thread-row-stats {
  flex: 0 0 auto;
  white-space: nowrap;
  align-self: center;
}

.post-hero-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  background:
    radial-gradient(380px 180px at 10% 0%, rgba(187, 255, 0, 0.1), transparent 68%),
    radial-gradient(520px 220px at 100% 0%, rgba(144, 84, 255, 0.26), transparent 60%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
}

.post-hero-title {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.post-hero-lead {
  color: var(--color-text-muted);
  max-width: 980px;
  line-height: 1.58;
}

.post-hero-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.post-hero-signal {
  border: 1px solid rgba(160, 164, 184, 0.28);
  border-radius: 0.56rem;
  background: rgba(255, 255, 255, 0.016);
  padding: 0.45rem 0.55rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.post-hero-signal small {
  color: var(--color-text-muted);
}

.post-hero-signal strong {
  color: var(--color-text);
}

.post-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  color: var(--color-text-muted);
}

.thread-hero-actions {
  display: flex;
  justify-content: flex-end;
  min-width: 56px;
}

.thread-actions-flyout {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.thread-actions-flyout-toggle {
  position: relative;
  z-index: 3;
  white-space: nowrap;
  border-color: rgba(5, 197, 255, 0.35);
  background: linear-gradient(140deg, rgba(5, 197, 255, 0.22), rgba(144, 84, 255, 0.2));
  color: #e9f9ff;
  box-shadow: 0 8px 16px rgba(5, 197, 255, 0.18);
}

.thread-actions-flyout-panel {
  position: absolute;
  right: calc(100% + 0.45rem);
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  transform-origin: right center;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  width: max-content;
  max-width: min(78vw, 860px);
  padding: 0.35rem;
  border: 1px solid rgba(5, 197, 255, 0.28);
  border-radius: 0.72rem;
  background:
    linear-gradient(145deg, rgba(22, 24, 33, 0.96), rgba(18, 20, 30, 0.95)),
    radial-gradient(280px 60px at 100% 50%, rgba(5, 197, 255, 0.15), transparent 72%);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.thread-actions-flyout:hover .thread-actions-flyout-panel,
.thread-actions-flyout:focus-within .thread-actions-flyout-panel,
.thread-actions-flyout.is-open .thread-actions-flyout-panel {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

.post-hero-avatar {
  border: 2px solid rgba(255, 255, 255, 0.65);
}

.post-comments-shell,
.post-composer-shell {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.01));
}

.post-composer-shell .form-control {
  background: var(--color-bg-elevated) !important;
  color: var(--color-text) !important;
  border-color: var(--color-border);
}

.post-composer-shell .form-control::placeholder {
  color: var(--color-text-muted);
}

.post-composer-shell .form-control:focus {
  background: var(--color-bg-elevated) !important;
  color: var(--color-text) !important;
}

html[data-theme="dark"] .post-composer-shell .form-control {
  background: #1f1d24 !important;
}

html[data-theme="dark"] .post-composer-shell .form-control:focus {
  background: #1f1d24 !important;
}

.post-comments-list {
  display: grid;
  gap: 0.75rem;
}

.post-comment-card {
  position: relative;
  border-radius: var(--radius-md);
  border-color: rgba(160, 164, 184, 0.28);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.006));
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.post-comment-card::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 0.8rem;
  bottom: 0.8rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(5, 197, 255, 0.85), rgba(144, 84, 255, 0.75));
  opacity: 0.75;
}

.post-comment-card .post-comment-head,
.post-comment-card .post-comment-body,
.post-comment-card .signature {
  margin-left: 0.6rem;
}

.post-comment-card:hover {
  border-color: rgba(5, 197, 255, 0.42);
  transform: translateY(-1px);
}

.post-action-btn {
  border: 1px solid rgba(160, 164, 184, 0.34);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  border-radius: 999px;
  padding-inline: 0.65rem;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.post-action-btn:hover,
.post-action-btn:focus {
  border-color: rgba(5, 197, 255, 0.45);
  background: rgba(5, 197, 255, 0.11);
  color: #b8f3ff;
}

.post-action-btn.js-del:hover,
.post-action-btn.js-del:focus,
.post-action-btn.js-report:hover,
.post-action-btn.js-report:focus {
  border-color: rgba(255, 64, 0, 0.45);
  background: rgba(255, 64, 0, 0.12);
  color: #ffc4b1;
}

.post-comment-actions {
  flex-wrap: wrap;
  align-items: center;
}

.post-comment-body {
  line-height: 1.65;
}

.post-body-spacer {
  height: 0.45rem;
}

.post-inline-quote {
  border-left: 3px solid rgba(5, 197, 255, 0.7);
  border-radius: 0.4rem;
  margin: 0;
  padding: 0.45rem 0.65rem;
  background: rgba(5, 197, 255, 0.08);
  color: #d6f7ff;
  font-size: 0.94rem;
}

.post-reply-context {
  margin: 0.6rem 0 0 0.6rem;
  border: 1px solid rgba(160, 164, 184, 0.26);
  border-radius: 0.56rem;
  padding: 0.45rem 0.6rem;
  background: rgba(255, 255, 255, 0.016);
  display: grid;
  gap: 0.2rem;
}

.post-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #8de9ff;
  text-decoration: none;
  font-size: 0.85rem;
}

.post-reply-link:hover {
  color: #c4f7ff;
}

.post-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0;
  margin-left: 0.6rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, max-height 0.18s ease, transform 0.18s ease, margin-top 0.18s ease;
}

.post-comment-card:hover .post-reactions,
.post-comment-card:focus-within .post-reactions {
  opacity: 1;
  max-height: 80px;
  margin-top: 0.75rem;
  transform: translateY(0);
}

.post-reactions .reaction-btn {
  background: rgba(255, 255, 255, 0.02);
}

.post-reactions .reaction-btn.danger:hover,
.post-reactions .reaction-btn.danger:focus {
  border-color: rgba(255, 64, 0, 0.46);
  color: #ffc4b1;
}

.post-replying-banner {
  border: 1px solid rgba(5, 197, 255, 0.38);
  border-radius: 0.62rem;
  padding: 0.58rem 0.62rem;
  background: rgba(5, 197, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.post-side-metrics {
  display: grid;
  gap: 0.45rem;
}

.post-side-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 0.58rem;
  padding: 0.45rem 0.55rem;
  background: rgba(255, 255, 255, 0.015);
}

.post-side-metric span {
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.post-side-metric strong {
  color: var(--color-text);
}

.post-related-item {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: 0.62rem;
  padding: 0.52rem 0.58rem;
  background: rgba(255, 255, 255, 0.012);
}

.post-related-item + .post-related-item {
  margin-top: 0.5rem;
}

.post-related-item:hover {
  border-color: rgba(187, 255, 0, 0.45);
}

.thread-item:hover {
  transform: translateY(-2px);
  border-color: rgba(187, 255, 0, 0.45);
}

.thread-post {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-elevated);
  padding: 1rem;
}

.thread-post + .thread-post {
  margin-top: 0.85rem;
}

.signature {
  margin-top: 0.8rem;
  border-top: 1px dashed var(--color-border);
  padding-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.post-signature-wrap {
  display: grid;
  gap: 0.38rem;
  align-items: start;
}

.post-signature-text {
  color: var(--color-text-muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.post-signature-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.post-signature-link {
  border: 1px solid rgba(160, 164, 184, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #9ae8ff;
  font-size: 0.72rem;
  line-height: 1;
  padding: 0.22rem 0.44rem;
  text-decoration: none;
}

.post-signature-link:hover,
.post-signature-link:focus {
  border-color: rgba(5, 197, 255, 0.45);
  background: rgba(5, 197, 255, 0.12);
  color: #d5f7ff;
}

.post-signature-image {
  width: min(100%, 494px);
  max-width: 494px;
  max-height: 104px;
  height: auto;
  border-radius: 0.4rem;
  border: 1px solid rgba(160, 164, 184, 0.34);
  object-fit: contain;
  display: block;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  position: relative;
  padding: 0 0 1.2rem 1.4rem;
  color: var(--color-text);
}

.timeline li::before {
  content: "";
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  left: 0;
  top: 0.35rem;
  background: var(--color-primary);
}

.timeline li::after {
  content: "";
  position: absolute;
  width: 2px;
  left: 0.2rem;
  top: 0.9rem;
  bottom: 0;
  background: rgba(187, 255, 0, 0.25);
}

.timeline li:last-child::after {
  display: none;
}

.auth-wrap {
  max-width: 1040px;
  margin: 2.4rem auto;
}

.auth-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-elevated);
  box-shadow: var(--shadow-soft);
}

.auth-showcase {
  background: linear-gradient(130deg, #1f1d24 0%, #282732 42%, #9054ff 100%);
  color: #fff;
  min-height: 360px;
}

.market-card,
.part-card,
.tune-card,
.car-card,
.vendor-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-elevated);
  padding: 0.95rem;
  height: 100%;
}

.role-toggle {
  min-width: 3rem;
}

@media (max-width: 767.98px) {
  .hero-card {
    padding: 1.05rem;
  }

  .post-hero-title {
    font-size: 1.1rem;
  }

  .post-hero-signals {
    grid-template-columns: 1fr;
  }

  .thread-hero-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 0.45rem;
  }

  .thread-actions-flyout-panel {
    right: 0;
    left: auto;
    top: calc(100% + 0.35rem);
    transform: translateY(8px);
    max-width: min(92vw, 420px);
    justify-content: flex-end;
  }

  .thread-actions-flyout:hover .thread-actions-flyout-panel,
  .thread-actions-flyout:focus-within .thread-actions-flyout-panel,
  .thread-actions-flyout.is-open .thread-actions-flyout-panel {
    transform: translateY(0);
  }

  .post-comment-actions {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 0.34rem !important;
    justify-content: stretch;
    align-items: stretch;
  }

  .post-comment-actions form {
    width: 100%;
    display: block !important;
  }

  .post-comment-actions .post-action-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 0.56rem;
    font-size: 0.73rem;
    padding: 0.32rem 0.46rem;
    line-height: 1.15;
  }

  .post-comment-actions .post-action-btn i {
    margin-right: 0.24rem !important;
    font-size: 0.8rem;
  }

  .post-reactions {
    opacity: 1;
    max-height: 80px;
    margin-top: 0.75rem;
    transform: translateY(0);
  }

  .category-tab {
    min-width: 150px;
  }

  .category-thread-row {
    grid-template-columns: 1fr;
  }

  .thread-row-inner {
    flex-direction: column;
    gap: 0.55rem;
  }

  .thread-row-stats {
    align-self: flex-start;
  }

  .thread-item-head {
    flex-direction: column;
    gap: 0.6rem;
  }

  .thread-item-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .home-health-chart-wrap {
    height: 200px;
  }

  .stat-chip {
    padding: 0.65rem 0.7rem;
  }
}



/* Batch 11: Premium attachment previews (scoped) */
.attachment-preview-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:.65rem;
  margin-top:.6rem;
}

.att-card{
  border:1px solid var(--color-border);
  border-radius:var(--radius-md);
  background:rgba(255,255,255,.012);
  overflow:hidden;
  box-shadow:var(--shadow-soft);
}

.att-head{
  display:flex;
  align-items:center;
  gap:.65rem;
  padding:.6rem .7rem;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.0));
}

.att-icon{
  width:36px;height:36px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(5,197,255,.08);
  position:relative;
}

.att-card.att-image .att-icon{ background:rgba(187,255,0,.08);} 
.att-card.att-video .att-icon{ background:rgba(144,84,255,.10);} 
.att-card.att-code  .att-icon{ background:rgba(5,197,255,.10);} 
.att-card.att-file  .att-icon{ background:rgba(255,255,255,.06);} 

.att-icon::after{
  content:"";
  position:absolute;
  inset:10px;
  border-radius:6px;
  border:1px solid rgba(255,255,255,.18);
}

.att-meta{min-width:0;}
.att-title{
  font-weight:650;
  font-size:.92rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.att-sub{
  font-size:.78rem;
  color:var(--color-text-muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.att-body{ padding:.55rem .65rem; }

.att-thumb{
  width:100%;
  height:140px;
  object-fit:cover;
  border-radius:.65rem;
  border:1px solid rgba(255,255,255,.10);
}

.att-video{
  width:100%;
  border-radius:.65rem;
  border:1px solid rgba(255,255,255,.10);
  background:#000;
}

.att-code{
  margin:0;
  white-space:pre-wrap;
  word-break:break-word;
  font-size:.78rem;
  line-height:1.25;
  color:rgba(255,255,255,.88);
  padding:.55rem .6rem;
  border-radius:.65rem;
  background:rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.08);
  max-height:180px;
  overflow:auto;
}

.att-file{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:1rem;
  border-radius:.65rem;
  border:1px dashed rgba(255,255,255,.14);
  color:var(--color-text-muted);
  background:rgba(255,255,255,.02);
}

/* Composer locked state */
#replyForm.is-locked textarea,
form.is-locked textarea{
  opacity:.6;
}

.chat-message-list {
  display: grid;
  gap: 0.65rem;
  max-height: 68vh;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.chat-message {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.008));
  padding: 0.75rem 0.8rem;
}

.chat-message.is-highlighted {
  border-color: rgba(187, 255, 0, 0.5);
  box-shadow: 0 0 0 1px rgba(187, 255, 0, 0.25) inset;
}

.chat-message.is-announcement {
  border-color: rgba(5, 197, 255, 0.45);
  background: linear-gradient(140deg, rgba(5, 197, 255, 0.12), rgba(144, 84, 255, 0.08));
}

.chat-message.is-sticky {
  border-left: 4px solid rgba(187, 255, 0, 0.66);
}

.chat-message-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  font-size: 0.8rem;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.chat-message-body {
  margin-top: 0.55rem;
  line-height: 1.58;
  white-space: normal;
  word-break: break-word;
}

.hash-tag-link {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.02rem 0.36rem;
  border-radius: 999px;
  border: 1px solid rgba(5, 197, 255, 0.42);
  background: rgba(5, 197, 255, 0.12);
  color: #b8f3ff;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.hash-tag-link:hover,
.hash-tag-link:focus-visible {
  border-color: rgba(187, 255, 0, 0.52);
  background: rgba(187, 255, 0, 0.15);
  color: #ecffc2;
}

.thread-tag-pill.hash-tag-link {
  padding: 0.2rem 0.55rem;
}

.chat-mention {
  display: inline-block;
  padding: 0.02rem 0.32rem;
  border-radius: 999px;
  border: 1px solid rgba(5, 197, 255, 0.4);
  background: rgba(5, 197, 255, 0.12);
  color: #b8f3ff;
  font-weight: 600;
}

.dm-conversation-item {
  border: 1px solid transparent !important;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.dm-conversation-item:hover {
  border-color: rgba(5, 197, 255, 0.35) !important;
  background: rgba(5, 197, 255, 0.07) !important;
  transform: translateY(-1px);
}

.dm-conversation-item.has-unread {
  border-color: rgba(187, 255, 0, 0.4) !important;
  background: rgba(187, 255, 0, 0.08) !important;
}

.dm-conversation-item.active {
  border-color: rgba(5, 197, 255, 0.5) !important;
  background: linear-gradient(140deg, rgba(5, 197, 255, 0.16), rgba(144, 84, 255, 0.12)) !important;
  color: var(--color-text) !important;
}

.bookmark-entry {
  position: relative;
  border-color: rgba(160, 164, 184, 0.28);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.008));
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.bookmark-entry::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  top: 0.7rem;
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: rgba(187, 255, 0, 0.75);
  box-shadow: 0 0 0 4px rgba(187, 255, 0, 0.12);
}

.bookmark-entry:hover {
  border-color: rgba(5, 197, 255, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.cars-catalog-shell {
  display: grid;
  gap: 0.2rem;
}

.cars-hero {
  overflow: hidden;
  background:
    radial-gradient(620px 220px at -5% -40%, rgba(5, 197, 255, 0.2), transparent 60%),
    radial-gradient(520px 240px at 110% 0%, rgba(187, 255, 0, 0.12), transparent 58%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.cars-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 0.45rem;
}

.cars-hero-metric {
  border: 1px solid rgba(160, 164, 184, 0.28);
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.46rem 0.58rem;
}

.cars-hero-metric small {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.72rem;
}

.cars-hero-metric strong {
  font-size: 0.98rem;
}

.cars-filter-card {
  position: sticky;
  top: 1rem;
}

.cars-filter-form {
  display: grid;
  gap: 0.62rem;
}

.cars-filter-group {
  border: 1px solid rgba(160, 164, 184, 0.24);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.018);
  padding: 0.58rem;
}

.cars-filter-group-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #caf4ff;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.cars-filter-switches {
  display: grid;
  gap: 0.4rem;
}

.cars-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(160, 164, 184, 0.24);
  border-radius: 0.55rem;
  padding: 0.34rem 0.45rem;
  background: rgba(255, 255, 255, 0.018);
  color: var(--color-text);
  font-size: 0.78rem;
}

.cars-select-multi {
  min-height: 10.2rem;
}

.cars-filter-hint {
  color: var(--color-text-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.cars-check-grid {
  display: grid;
  gap: 0.38rem;
  max-height: 148px;
  overflow: auto;
  padding-right: 0.2rem;
}

.cars-check-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(160, 164, 184, 0.24);
  border-radius: 0.6rem;
  padding: 0.34rem 0.46rem;
  background: rgba(255, 255, 255, 0.016);
  color: var(--color-text);
  font-size: 0.82rem;
}

.cars-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
}

.car-card {
  overflow: hidden;
  border-color: rgba(160, 164, 184, 0.28);
  background: linear-gradient(152deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.006));
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.car-card:hover {
  border-color: rgba(5, 197, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(2, 10, 20, 0.26);
}

.car-card.is-compare-selected {
  border-color: rgba(187, 255, 0, 0.55);
  box-shadow: 0 0 0 1px rgba(187, 255, 0, 0.22), 0 14px 28px rgba(8, 22, 8, 0.2);
}

.car-card-media {
  height: 154px;
  background: linear-gradient(155deg, rgba(5, 197, 255, 0.14), rgba(144, 84, 255, 0.14));
}

.car-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.car-card-media-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: rgba(225, 233, 245, 0.8);
}

.car-card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  margin-bottom: 0.45rem;
}

.car-card-title {
  font-size: 1.03rem;
  margin-bottom: 0.52rem;
  line-height: 1.25;
}

.car-card-specline {
  display: grid;
  gap: 0.2rem;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  margin-bottom: 0.55rem;
}

.cars-detail-drawer {
  width: min(820px, 100vw);
}

body[data-page="cars"] .cars-detail-drawer {
  background: var(--color-bg-panel);
  color: var(--color-text);
  border-left: 1px solid var(--color-border);
}

body[data-page="cars"] .cars-detail-drawer .offcanvas-header {
  background: linear-gradient(150deg, rgb(5 197 255 / 23%), rgb(144 84 255 / 49%));
  border-bottom: 1px solid var(--color-border);
}

body[data-page="cars"] .cars-detail-drawer .offcanvas-body {
   background: linear-gradient(170deg, rgb(0 0 0 / 70%), rgb(0 0 0 / 78%));
}

body[data-page="cars"] #carsCompareModal .modal-content {
  background: var(--color-bg-panel);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

body[data-page="cars"] #carsCompareModal .modal-header {
  border-bottom-color: var(--color-border);
  background: linear-gradient(150deg, rgba(5, 197, 255, 0.12), rgba(144, 84, 255, 0.08));
}

body[data-page="cars"] #carsCompareModal .modal-body {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.016), rgba(255, 255, 255, 0.006));
}

:root[data-theme="dark"] body[data-page="cars"] .cars-detail-drawer .btn-close,
:root[data-theme="dark"] body[data-page="cars"] #carsCompareModal .btn-close {
  filter: invert(1) grayscale(1);
}

.cars-compare-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.cars-compare-insight {
  border: 1px solid rgba(160, 164, 184, 0.3);
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.5rem 0.58rem;
}

.cars-compare-insight small {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.72rem;
}

.cars-compare-insight strong {
  display: block;
  font-size: 0.86rem;
  margin: 0.05rem 0 0.18rem;
}

.cars-compare-insight span {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.74rem;
  line-height: 1.3;
}

.cars-compare-spec {
  margin-right: 0.35rem;
}

.cars-compare-why {
  color: var(--color-text-muted);
  font-size: 0.76rem;
  cursor: help;
}

.cars-compare-cell {
  display: grid;
  gap: 0.12rem;
}

.cars-compare-cell strong {
  font-size: 0.84rem;
}

.cars-compare-cell small {
  color: var(--color-text-muted);
  font-size: 0.68rem;
  line-height: 1.25;
}

.cars-compare-cell.is-best strong {
  color: #d9fcb9;
}

.cars-compare-cell.is-best small {
  color: #d9fcb9;
}

.cars-detail-sheet {
  display: grid;
  gap: 0.8rem;
}

.cars-detail-head {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0.8rem;
}

.cars-detail-media {
  border: 1px solid rgba(160, 164, 184, 0.32);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  min-height: 158px;
}

.cars-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cars-detail-media-fallback {
  width: 100%;
  height: 100%;
  min-height: 158px;
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  color: rgba(225, 233, 245, 0.8);
}

.cars-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.cars-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.cars-detail-grid > div {
  border: 1px solid rgba(160, 164, 184, 0.26);
  border-radius: 0.62rem;
  padding: 0.4rem 0.5rem;
  background: rgba(255, 255, 255, 0.014);
}

.cars-detail-grid small {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.74rem;
}

.cars-detail-grid strong {
  font-size: 0.9rem;
}

.cars-detail-specs {
  display: grid;
  gap: 0.55rem;
}

.cars-spec-block {
  border: 1px solid rgba(160, 164, 184, 0.25);
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.012);
  padding: 0.54rem 0.62rem;
}

.cars-spec-block h6 {
  margin: 0 0 0.5rem 0;
  color: #cff4ff;
}

.cars-spec-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.22rem 0;
  border-top: 1px dashed rgba(160, 164, 184, 0.2);
}

.cars-spec-row:first-of-type {
  border-top: 0;
}

.cars-spec-row span {
  color: var(--color-text-muted);
}

.cars-spec-row strong {
  font-size: 0.87rem;
}

body[data-page="cars"] {
  --cars-tray-border: rgba(5, 197, 255, 0.34);
  --cars-tray-bg-layer: linear-gradient(150deg, rgba(16, 24, 41, 0.96), rgba(13, 20, 34, 0.94));
  --cars-tray-glow: radial-gradient(320px 120px at 100% 50%, rgba(5, 197, 255, 0.16), transparent 70%);
  --cars-tray-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
  --cars-tray-pill-border: rgba(160, 164, 184, 0.34);
  --cars-tray-pill-bg: rgba(255, 255, 255, 0.03);
  --cars-pager-bg: rgba(255, 255, 255, 0.03);
  --cars-pager-border: var(--color-border);
  --cars-pager-text: var(--color-text);
  --cars-pager-hover-bg: rgba(5, 197, 255, 0.1);
  --cars-pager-hover-border: rgba(5, 197, 255, 0.42);
  --cars-pager-active-bg: linear-gradient(140deg, rgba(5, 197, 255, 0.24), rgba(187, 255, 0, 0.18));
  --cars-pager-active-border: rgba(187, 255, 0, 0.42);
  --cars-pager-active-text: var(--color-text);
  --cars-pager-disabled-bg: rgba(160, 164, 184, 0.08);
  --cars-pager-disabled-text: var(--color-text-muted);
}

:root[data-theme="light"] body[data-page="cars"] {
  --cars-tray-border: rgba(44, 111, 172, 0.34);
  --cars-tray-bg-layer: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.97));
  --cars-tray-glow: radial-gradient(340px 130px at 100% 50%, rgba(5, 197, 255, 0.14), transparent 72%);
  --cars-tray-shadow: 0 14px 26px rgba(24, 38, 59, 0.16);
  --cars-tray-pill-border: rgba(120, 136, 161, 0.38);
  --cars-tray-pill-bg: rgba(255, 255, 255, 0.86);
  --cars-pager-bg: rgba(255, 255, 255, 0.94);
  --cars-pager-hover-bg: rgba(5, 197, 255, 0.14);
  --cars-pager-active-bg: linear-gradient(140deg, rgba(5, 197, 255, 0.22), rgba(115, 194, 66, 0.22));
  --cars-pager-disabled-bg: rgba(160, 164, 184, 0.1);
}

.cars-compare-tray {
  position: fixed;
  right: 1rem;
  left: auto;
  bottom: 1rem;
  z-index: 1220;
  max-width: min(660px, calc(100vw - 2rem));
  border: 1px solid var(--cars-tray-border);
  border-radius: 0.86rem;
  padding: 0.64rem;
  background: var(--cars-tray-bg-layer), var(--cars-tray-glow);
  box-shadow: var(--cars-tray-shadow);
  display: flex;
  gap: 0.74rem;
  align-items: center;
}

.cars-compare-content {
  min-width: 0;
  flex: 1;
}

.cars-compare-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.cars-compare-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid var(--cars-tray-pill-border);
  border-radius: 999px;
  background: var(--cars-tray-pill-bg);
  color: var(--color-text);
  padding: 0.22rem 0.5rem;
  font-size: 0.76rem;
}

.cars-compare-pill i {
  font-size: 0.74rem;
}

body[data-page="cars"] .cars-pagination-wrap {
  display: flex;
  justify-content: center;
}

body[data-page="cars"] .cars-pagination .page-link {
  border: 1px solid var(--cars-pager-border);
  background: var(--cars-pager-bg);
  color: var(--cars-pager-text);
  border-radius: 0.52rem;
  min-width: 2rem;
  text-align: center;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

body[data-page="cars"] .cars-pagination .page-link:hover,
body[data-page="cars"] .cars-pagination .page-link:focus {
  border-color: var(--cars-pager-hover-border);
  background: var(--cars-pager-hover-bg);
  color: var(--cars-pager-text);
  box-shadow: 0 0 0 0.16rem rgba(5, 197, 255, 0.12);
}

body[data-page="cars"] .cars-pagination .page-item.active .page-link {
  border-color: var(--cars-pager-active-border);
  background: var(--cars-pager-active-bg);
  color: var(--cars-pager-active-text);
}

body[data-page="cars"] .cars-pagination .page-item.disabled .page-link {
  border-color: var(--cars-pager-border);
  background: var(--cars-pager-disabled-bg);
  color: var(--cars-pager-disabled-text);
}

.cars-compare-table-wrap {
  border-radius: 0.8rem;
}

.cars-compare-table .cars-compare-category th {
  color: #caf4ff;
  background: rgba(5, 197, 255, 0.11);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.73rem;
}

@media (max-width: 1199.98px) {
  .cars-filter-card {
    position: static;
  }

  .cars-compare-insights {
    grid-template-columns: 1fr;
  }

  .cars-detail-head {
    grid-template-columns: 1fr;
  }

  .cars-detail-media {
    min-height: 220px;
  }

  .cars-compare-tray {
    left: 0.75rem;
    right: 0.75rem;
    max-width: none;
  }

  .profile-tab-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-garage-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-credits-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-badge-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .cars-hero-metrics {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .cars-grid {
    grid-template-columns: 1fr;
  }

  .cars-detail-grid {
    grid-template-columns: 1fr;
  }

  .cars-compare-tray {
    padding: 0.58rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .cars-compare-tray .btn {
    width: 100%;
  }

  .profile-content-tabs {
    gap: 0.4rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.1rem;
  }

  .profile-content-tabs .nav-link {
    white-space: nowrap;
  }

  .profile-section-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .profile-tab-kpis,
  .profile-garage-summary,
  .profile-report-summary-grid,
  .profile-achievement-top,
  .profile-credits-summary,
  .profile-credit-rule-list {
    grid-template-columns: 1fr;
  }

  .profile-feed-item {
    grid-template-columns: 1fr;
  }
}
