.rank-display {
  text-align: center;
  padding: 15px;
  background: linear-gradient(135deg, #1a2a3a 0%, #0d1520 100%);
  border-radius: 8px;
  margin-bottom: 20px;
}
.rank-name { font-size: 22px; color: #ffcc00; margin-bottom: 8px; }
.progress-bar-bg {
  height: 16px;
  background: #1a2a3a;
  border-radius: 8px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00ccff, #00ffcc);
  transition: width 0.3s;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.info-box {
  background: #0d1520;
  border: 1px solid #1a3a4a;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}
.info-label { font-size: 9px; color: #5a8a9a; text-transform: uppercase; }
.info-value { font-size: 18px; color: #00ffcc; margin-top: 4px; }
.ship-damage-section {
  background: #0d1520;
  border: 2px solid #ff4466;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}
.ship-damage-section h3 { font-size: 14px; color: #ff6666; margin-bottom: 10px; }
.damage-bar-container {
  height: 24px;
  background: #1a2a3a;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.damage-bar {
  height: 100%;
  background: linear-gradient(90deg, #ffaa22, #ff4466, #ff0044);
  transition: width 0.3s;
}
.damage-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 4px #000;
}
.damage-warning { font-size: 11px; color: #ff6666; margin-top: 8px; text-align: center; }
.repair-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: #ff6666;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  font-weight: bold;
}
.repair-btn:hover { background: #ff8888; }
.repair-btn:disabled { background: #3a4a5a; color: #5a6a7a; cursor: not-allowed; }
.upgrades-section {
  background: #0d1520;
  border: 1px solid #1a3a4a;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  max-height: 200px;
  overflow-y: auto;
}
.upgrades-section h3 { font-size: 14px; color: #00ccff; margin-bottom: 10px; }
.upgrade-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  margin: 6px 0;
  background: #1a2530;
  border: 1px solid #2a3a4a;
  border-radius: 6px;
}
.upgrade-item.owned { border-color: #00aa66; background: #1a2a1a; }
.upgrade-info { flex: 1; }
.upgrade-name { font-size: 12px; color: #00ccff; }
.upgrade-desc { font-size: 10px; color: #7ab; }
.upgrade-btn {
  padding: 6px 14px;
  background: #00aa66;
  color: #000;
  border: none;
  border-radius: 5px;
  font-family: inherit;
  cursor: pointer;
  font-size: 11px;
  font-weight: bold;
}
.upgrade-btn:hover { background: #00ff88; }
.upgrade-btn:disabled { background: #3a4a5a; color: #5a6a7a; cursor: not-allowed; }
.owned-badge { padding: 4px 10px; background: #00aa66; color: #000; border-radius: 5px; font-size: 10px; }

