.inventory-body {
  background: var(--bg-warm);
  font-family: var(--font-body);
  color: var(--text-charcoal);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.inventory-hero {
  padding: 100px 0 60px 0;
  border-bottom: 1px solid var(--border-light);
  background: radial-gradient(circle at 80% 20%, rgba(61, 90, 69, 0.04) 0%, transparent 50%), var(--bg-warm);
}

.inventory-progression-card {
  margin-top: 32px;
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  max-width: 540px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.progression-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.level-badge {
  background: var(--accent-moss);
  color: var(--bg-warm);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
}

.rank-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-charcoal);
}

.progression-bar-container {
  height: 8px;
  background: var(--bg-fog);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-light);
}

.progression-bar-fill {
  height: 100%;
  background: var(--accent-moss);
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progression-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.7;
}

.inventory-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1px;
}

.tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-charcoal);
  opacity: 0.5;
  cursor: pointer;
  padding: 12px 16px;
  position: relative;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  opacity: 0.8;
}

.tab-btn.active {
  opacity: 1;
  color: var(--accent-moss);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-moss);
  border-radius: 2px;
}

.collection-filter-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-customize-avatar {
  text-decoration: none;
  border-radius: 100px;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.inventory-item-card {
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  box-shadow: 0 4px 14px rgba(28, 30, 29, 0.03);
}

.inventory-item-card:hover {
  border-color: var(--accent-moss);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(28, 30, 29, 0.08);
}

.inventory-preview-area {
  height: 120px;
  position: relative;
  background: var(--bg-fog);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-light);
}

.inventory-preview-area svg {
  width: 90px;
  height: 90px;
  display: block;
}

.inventory-preview-area .preview-banner-wrapper {
  width: 100%;
  height: 100%;
}

.inventory-card-details {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inventory-item-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-charcoal);
  margin: 0;
}

.inventory-item-cat {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.5;
}

.inventory-item-rarity {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 4px;
  display: inline-block;
  align-self: flex-start;
  padding: 1px 6px;
  border-radius: 4px;
}

.progression-road-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 80px;
  position: relative;
}

.progression-road-timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--border-light);
  z-index: 1;
}

.road-milestone-segment {
  display: flex;
  gap: 24px;
  position: relative;
  z-index: 2;
  align-items: flex-start;
}

.road-indicator-node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-warm);
  border: 3px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-charcoal);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.road-milestone-segment.achieved .road-indicator-node {
  border-color: var(--accent-moss);
  background: var(--accent-moss);
  color: var(--bg-warm);
}

.road-milestone-content {
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.road-milestone-content:hover {
  box-shadow: 0 16px 34px rgba(28, 30, 29, 0.06);
}

.road-milestone-segment.achieved .road-milestone-content {
  background: radial-gradient(circle at 100% 0%, rgba(61, 90, 69, 0.02) 0%, transparent 40%), var(--bg-warm);
}

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

.road-milestone-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-charcoal);
  margin: 0;
}

.road-milestone-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

.road-milestone-segment.achieved .road-milestone-status {
  background: rgba(61, 90, 69, 0.1);
  color: var(--accent-moss);
}

.road-milestone-segment.locked .road-milestone-status {
  background: var(--bg-fog);
  color: var(--text-charcoal);
  opacity: 0.6;
}

.road-unlocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.road-unlock-card {
  background: var(--bg-fog);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.road-unlock-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(28, 30, 29, 0.06);
  border-color: rgba(35, 56, 43, 0.18);
}

.road-unlock-card .road-unlock-preview {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.road-unlock-card .road-unlock-preview svg {
  width: 100%;
  height: 100%;
}

.road-unlock-card .road-unlock-preview.banner-preview {
  width: 60px;
  height: 30px;
  border-radius: 4px;
}

.road-unlock-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.road-unlock-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-charcoal);
}

.road-unlock-type {
  font-size: 9px;
  text-transform: uppercase;
  opacity: 0.5;
}

.rarity-common .inventory-item-rarity { background: #e2e8f0; color: #475569; }
.rarity-uncommon .inventory-item-rarity { background: #dbeafe; color: #1d4ed8; }
.rarity-rare .inventory-item-rarity { background: #dcfce7; color: #15803d; }
.rarity-epic .inventory-item-rarity { background: #f3e8ff; color: #7e22ce; }
.rarity-legendary .inventory-item-rarity { background: #fef9c3; color: #a16207; }
.rarity-mythic .inventory-item-rarity { background: #ffe4e6; color: #be123c; }
